Load plugin Map after action ?

  • Hi at all,
    how i am able to load plugin called map after the normalview (normalview1 )is set? delayedcall ? wait? I tryed but i won´t get the point;) KLAUS?????;) BR Carlo


    <!-- first scene/pano -->
    <scene name="start" onstart="action(startscene);">

    <action name="startscene">
    showtext(, infostyle);
    action(activatespot,scene1, 260);

    </action>

    <events onstart="set(autorotate.enabled,false);" />
    <events onloadcomplete=" delayedcall(0, normalview1() );" />



    <display details="14"
    movequality="LOW" stillquality="HIGH"
    flash10="off"/>

    <view hlookat="-80"
    vlookat="85"
    fov="180" fovmin="40" fovmax="150"
    stereographic="true" fisheye="1.0"
    />

    <action name="normalview1">

    tween(view.hlookat,0.0, 1.5, easeInOutQuad );
    tween(view.vlookat, 0, 1.5, easeInOutQuad );
    tween(view.fov, 60, 1.5, easeInOutQuad );
    tween(view.fisheye, 0.0, 1.0, easeInOutQuad);
    set(display.flash10,on);
    set(autorotate.enabled,true);
    </action>


    <display details="40"
    tessmode="-1"
    movequality="LOW"
    stillquality="HIGH"
    stilltime="0.25"
    />


    <plugin name="mapmask" url="pano2_mapmask.png" parent="map" enabled="false" onloaded="updatemask();" />

    <image type="sphere">
    <sphere url="pan1_sm.jpg" />
    </image>


    <control fovspeed="0" />


    <hotspot name="spot2" url="hotspot_ani.swf" ath="190" atv="5" scale="1.5" zoom="true"
    alpha="0.6"
    onover="tween(alpha,2);tween(scale,2.0);"
    onout="tween(alpha,0.6);tween(scale,1.5);"
    onclick="looktohotspot(spot2); loadscene(scene2, null, MERGE, BLEND(1));"
    />
    </scene>

  • Hi,

    do you mean how to show the map after the "normalview" action?

    in this case set the map hide to map at the beginning by setting
    visible to false and alpha to 0.0,

    e.g.

    Code
    <plugin name="map" ... visible="false" alpha="0.0" ... />


    and then in your "normalview1" action you could add a wait or delayedcall,
    where visible of the map will be set to true and alpha 'tweened' to 1.0,

    e.g.

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!