• Hello

    I am stuck on getting this to work like the demo of it like in the Examples Folder of the KRpano Player. I have copy and pated the code from the xml in the example and have it within my xml page for my website - In the example the Back button on the first scene should be dimmed but mine is full on, when you click it it goes nowhere - other than that the buttons work perfect - the first and very last scene next will not dim down??? Is there something that needs a edit done?

    Thanks a bunch if you can help me get it correct!!!

    heres what i am using -- *wink* --------------------------------------------- url example - http://www.360icon.com/Panoramas/RenzFarm/front.html


    <!-- TEXT -->
    <textstyle name="infostyle"
    font="Helvetica"
    origin="top" edge="top"
    yoffset="20"
    textalign="center"
    background="false"
    border="false"
    fontsize="10"
    textcolor="0xFFFFFF"
    bold="false"
    effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    showtime="1.0"
    fadetime="0.5" />




    <textstyle name="scenetitle"
    font="Helvetica"
    origin="bottom"
    edge="top"
    yoffset="360"
    textalign="center"
    background="false"
    border="false" fontsize="18"
    textcolor="0xF5F5F5"
    bold="false"
    effect="glow(0x333333,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    showtime="4.0"
    fadetime="2.0" />


    <style name="buttonstyle"
    url="%SWFPATH%/plugins/textfield.swf" children="false"
    width="40" height="16"
    css="p{color:#999999; font-family:Arial; font-weight:bold; font-size:10; text-align:center; }"
    backgroundcolor="0x333333" roundedge="1" shadow="0" borderwidth="1" glow="2" glowcolor="0x888888"
    visible="false"
    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="prev scene" keep="true" style="buttonstyle"
    html="[p]Back[/p]"
    align="bottom" x="-168" y="10"
    onclick="prevscene();"
    onhover="showtext(Previous Panorama );"
    zorder="500"
    />

    <plugin name="next scene" keep="true" style="buttonstyle"
    html="[p]Next[/p]"
    align="bottom" x="-118" y="10"
    onclick="nextscene();"
    onhover="showtext(Next Panorama );"
    zorder="500"
    />


    <action name="enable_button">
    set(plugin[%1].enabled,%2);
    if(%2 == false, tween(plugin[%1].alpha, 0.2), tween(plugin[%1].alpha, 1.0));
    </action>

    <action name="update_prev_next_buttons">
    sub(maxsceneindex, scene.count, 1);
    if(%1 LE 0, enable_button('prev scene', false), enable_button('prev scene', true));
    if(%1 GE maxsceneindex, enable_button('next scene', false), enable_button('next scene', true));
    </action>

    <action name="prevscene">
    if(%1 != findnext, sub(i,scene.count,1));
    txtadd(scenexml,'<krpano>',get(scene[%i].content),'</krpano>');
    if(scenexml == xml.content,
    dec(i);
    if(i GE 0, loadscene(get(scene[%i].name), null, MERGE, BLEND(3)); );
    update_prev_next_buttons(get(i));
    ,
    dec(i);
    if(i GE 0, prevscene(findnext));
    );
    </action>

    <action name="nextscene">
    if(%1 != findnext, set(i,0));
    txtadd(scenexml,'<krpano>',get(scene[%i].content),'</krpano>');
    if(scenexml == xml.content,
    inc(i);
    if(i LT scene.count, loadscene(get(scene[%i].name), null, MERGE, BLEND(3)); );
    update_prev_next_buttons(get(i));
    ,
    inc(i);
    if(i LT scene.count, nextscene(findnext));
    );
    </action>

    </krpano> --------------------- *wink*

    All Else Passes, Art Alone Endures.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!