Beiträge von mario

    Hallo Daniel,

    das war nicht das Problem, google -> "Bildschirmschoner erstellen" ergibt runde 500.000 Ergebnisse.
    Mein Problem war, dass ich die Autorotation nicht von Beginn an habe starten lassen, denn dann bewegt sich in der
    swf nichts...

    Trotzdem Vielen Dank
    Mario

    Hi,
    is there a possibility to create a screensaver from a moving pano esp. turning little planet view?
    screen recording -> swf and then scr is not so good;
    in german, because my english is too bad:
    also, ich habe ein Pano, dreht sich über action look too ein paar mal und ist im little planet view.
    Dieses Drehen sollte sich als wiederholender screensaver in Windows installieren lassen.
    Die Version mit Screen recording, dann swf, dann scr ist wegen dem Ruckeln nicht gut.
    Gibt es eine andere Lösung?
    Danke Mario

    Hi Klaus,

    definitely it works well outside krpano, the files and directory I have not changed,
    I copied the krpano files with them,
    so here is the as-file, perhaps it helps otherwise let it be....

    __________________________________________________________________________________________
    /*
    * MegaZine3 - Pageflip Engine
    *
    * Copyright (c) 2007-2009, VservU GmbH (Florian Nuecke and Hans J. Nuecke)
    *
    * Permission is hereby granted, free of charge, to any person obtaining a copy
    * of this software and associated documentation files (the "Software"), to deal
    * in the Software without restriction, including without limitation the rights
    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    * copies of the Software, and to permit persons to whom the Software is
    * furnished to do so, subject to the following conditions:
    *
    * The above copyright notice and this permission notice shall be included in
    * all copies or substantial portions of the Software.
    *
    * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    * THE SOFTWARE.
    */

    package de.mightypirates.megazine {
    import de.mightypirates.megazine.interfaces.IMegaZine;

    import flash.display.*;
    import flash.events.*;

    /**
    * Main class for building the containing swf...
    *
    * @author fnuecke
    */
    public class Main extends MovieClip {

    // ---------------------------------------------------------------------- //
    //{ region Variables

    /**
    * The megazine object (main part, of course).
    */
    private var megazine_:MegaZine = new MegaZine();

    /**
    * Adjust size of the megazine instance to the available stage size.
    */
    private var fitToStage_:Boolean = false;

    //} endregion
    // ---------------------------------------------------------------------- //


    // ---------------------------------------------------------------------- //
    //{ region Construction

    /**
    * Program entry.
    *
    * <p>
    * Creates the <code>MegaZine</code> instance, checks if this is the root
    * object (i.e. if this SWF was loaded by another one or is the main one),
    * and takes the following steps:
    * <ul>
    * <li>if this is the <b>actual main SWF</b>, sets stage align to top left
    * and stage scale mode to no scale. Furthermore disables some context menu
    * entries (<code>showDefaultContextMenu = false</code>). Adds the MegaZine
    * instance (to this), set <code>fitToStage</code> to <code>true</code>
    * and begins loading.</li>
    * <li>if this is <code>loaded by another SWF</code>, adds the MegaZine
    * instance (to this) and waits until this object is added to the stage
    * (<code>Event.ADDED_TO_STAGE</code>), then begins loading.
    * </ul>
    * </p>
    */
    public function Main() {
    if (stage) {
    // Disable scaling of the content. Hide most entries of the right
    // click menu.
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    stage.showDefaultContextMenu = false;

    fitToStage = true;

    init();
    } else {
    // Wait until added to stage.
    addEventListener(Event.ADDED_TO_STAGE, init);
    }
    }

    /**
    * Actual initialization.
    */
    private function init(e:Event = null):void {
    // Only once.
    removeEventListener(Event.ADDED_TO_STAGE, init);

    // Scale?
    if (fitToStage_) {
    // Resizing to fill the available space.
    stage.addEventListener(Event.RESIZE, handleStageResize);
    handleStageResize(null);
    }

    // Add the megazine and the console to the stage.
    addChild(megazine_);

    // Begin loading.
    megazine_.load(stage.loaderInfo.parameters["xmlFile"]);
    }

    //} endregion
    // ---------------------------------------------------------------------- //


    // ---------------------------------------------------------------------- //
    //{ region Accessors

    /**
    * Adjust the size of the MegaZine instance so that it always fills the
    * stage to 100%%. Not that <code>stage.align</code> must be set to
    * <code>StageAlign.TOP_LEFT</code> for this to work. Also,
    * <code>stage.scaleMode</code> should be set to
    * <code>StageScaleMode.NO_SCALE</code>.
    */
    public function get fitToStage():Boolean {
    return fitToStage_;
    }

    /**
    * @private
    */
    public function set fitToStage(newValue:Boolean):void {
    fitToStage_ = newValue;
    if (stage) {
    if (newValue) {
    // Resizing to fill the available space.
    stage.addEventListener(Event.RESIZE, handleStageResize);
    handleStageResize(null);
    } else {
    stage.removeEventListener(Event.RESIZE, handleStageResize);
    }
    }
    }

    /**
    * The actual MegaZine instance.
    */
    public function get megazine():IMegaZine {
    return megazine_;
    }

    //} endregion
    // ---------------------------------------------------------------------- //


    // ---------------------------------------------------------------------- //
    //{ region Event Handling

    /**
    * For liquid scaling, handle stage resize events.
    *
    * @param e
    * unused.
    */
    private function handleStageResize(e:Event):void {
    megazine_.width = stage.stageWidth;
    megazine_.height = stage.stageHeight;
    }

    //} endregion
    // ---------------------------------------------------------------------- //

    }
    } // end package


    _________________________________________________________________________________________


    Thank you very much
    Mario

    perhaps the plugin doesn't work with krpano? I don't know:
    The megazine page flip you can find here: http://megazine.mightypirates.de/?c=home&l=en
    My xml:
    <krpano version="1.0.8">

    <include url="global.xml" /> <!--only control-buttons-->


    <preview type="sphere" url="%SWFPATH%/preview/innenhofpreview.jpg" details="10" />


    <image type="CUBE">
    <left url="pano/innenhof_l.jpg" />
    <front url="pano/innenhof_f.jpg" />
    <right url="pano/innenhof_r.jpg" />
    <back url="pano/innenhof_b.jpg" />
    <up url="pano/innenhof_u.jpg" />
    <down url="pano/innenhof_d.jpg" />
    </image>


    <plugin name="showgallery" url="files/showgallery.png" origin="left" edge="center" y="280" x="120" visible="true" alpha="1" autoscale="180,180"
    onclick="action(showgallery);"
    onover=""
    onout=""
    onhover="showtext(klicken zum Einblenden der Fotogalerie);"/>

    <plugin name="hidegallery" url="files/hidegallery.png" origin="left" edge="center" y="280" x="120" visible="false" alpha="1" autoscale="150,150"
    onclick="action(hidegallery);"
    onhover="showtext(klicken zum Schließen der Fotogalerie);"
    />

    <plugin name="gallery" url="" visible="false" alpha="0" zorder="5"/>

    <action name="showgallery">
    freezeview(true);
    set(plugin[showgallery].enable,false);
    tween(plugin[showgallery].alpha,0,distance(1,0.15),,set(plugin[showgallery].visible,false));
    set(plugin[hidegallery].enable,true);
    set(plugin[hidegallery].visible,true);
    tween(plugin[hidegallery].alpha,1,distance(1,0.15));
    set(plugin[gallery].url,megazine.swf?xmlDataPath=megazine.xml);
    set(plugin[gallery].visible,true);
    tween(plugin[gallery].alpha,1,distance(1,0.15));
    tween(image.alpha,0.5);
    </action>

    <action name="hidegallery">
    tween(plugin[gallery].alpha,0,distance(1,0.15),,action(closegallery));
    </action>

    <action name="closegallery">
    set(plugin[gallery].visible,false);
    freezeview(false);
    set(plugin[hidegallery].enable,false);
    tween(plugin[hidegallery].alpha,0,distance(1,0.15),,set(plugin[hidegallery].visible,false));
    set(plugin[showgallery].enable,true);
    set(plugin[showgallery].visible,true);
    tween(plugin[showgallery].alpha,1,distance(1,0.15));
    </action>


    </krpano>

    <!-- Thanks Mario -->

    Hi everybody,
    first sorry about my english...
    and to Klaus: excellent job,
    but for me as a "NOT-Coder" without a good documentation it is very hard to find the code for the
    thing I will do, you understand? I know, documentation is a hard job and the last thing to do...
    Now my problem:
    I used the code of Klaus' example for this floating objekt in the nadir, but the problem is:
    how to turn the object into the correct hlook?! so that it is possible to read the word on the pic?
    you know what I mean?
    the object has to turn horizontally to the monitor on every "onover"
    example:
    http://www.planorbis.de/tmp/test

    thanks Mario

    sorry, but I find a new problem: when I click on a video the turning hotspot is no more visible, so if you try this,
    not click on a video; I am trying to solve this