Toogle planet button : how to fix the little planet view ?

  • Hello Everybody

    When my page loads, the little planet rotates on itself but it doesn't switch to normal view (That's what i want).
    Toogleplanet button works fine but when we pass the normal view to the little planet view, the view of the little planet is no longer fixed : it turns on itself but can also be switched in another type of view.
    I would get my start state that is filling the planet rotates on itself without going on another view.

    Here is my code (It's the example code of KR Pano files)


    <view
    hlookat="0"
    vlookat="170"
    fisheye="1.0"
    stereographic="true"
    maxpixelzoom ="0"
    camroll ="0.000000"
    architectural ="0.0"
    fov="170"
    limitfov="true"
    fovmin ="150"
    fovmax="150"
    limitview ="range"
    hlookatmin ="NaN"
    hlookatmax ="NaN"
    vlookatmin ="90"
    vlookatmax ="90"
    />


    <action name="toggleplanet">
    if(islittleplanet == false,
    set(islittleplanet,true);
    set(display.flash10,off);
    set(view.stereographic,true);
    tween(view.hlookat, 0.0, 1.0);
    tween(view.fisheye, 1.0, 1.0);
    tween(view.vlookat, 90.0, 1.0);
    tween(view.fov, 200.0, 1.0);
    tween(view.fovmax, 150.0, 1.0);
    ,
    set(islittleplanet, false);
    tween(view.fisheye, 0.0, 1.0, default, set(display.flash10,on));
    tween(view.hlookat, 0.0, 1.0);
    tween(view.vlookat, 0.0, 1.0);
    tween(view.fov, 90.0, 1.0);
    tween(view.fovmax, 100.0, 1.0);
    );
    </action>

    <style name="button"
    url="plugins/textfield.swf"
    css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
    children="false"
    visible="false"
    width="200"
    height="22"
    backgroundcolor="0x000000"
    roundedge="5"
    shadow="1"
    borderwidth="0"
    glow="4"
    onover="tween(alpha,0.7,distance(0.3,0.2));"
    onout="tween(alpha,1.0,distance(0.3,0.2));"
    onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
    />

    <plugin name="littleplanetbutton"
    style="button"
    html="[p]Normal / little planet view[/p]"
    align="righttop" x="10" y="10"
    onclick="toggleplanet();"
    />

    What I missed ? Thank you in advance for your help...it makes me crazy *wink*

    Michael

Participate now!

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