hotspots doesn't work with flyback action implemented

  • ziacanaia0.xmlHello,
    I'm Alessandro and I'm new to this forum.
    could anybody help me. I've xml file which contain hotspot as well as flyback action.
    If the flyback action are implemented into the xml, the hotspots disappear.
    Here in short the xml an attached the complete file.
    Thanks.
    Alessandro
    ...
    <action name="flyout_by_name">
    flyback_others();
    if(hotspot[%1].flystate == 0,
    copy(hotspot[%1].backup_rx, hotspot[%1].rx);
    copy(hotspot[%1].backup_ry, hotspot[%1].ry);
    copy(hotspot[%1].backup_rz, hotspot[%1].rz);
    copy(hotspot[%1].backup_scale, hotspot[%1].scale);
    copy(hotspot[%1].backup_zorder, hotspot[%1].zorder);
    );
    set(hotspot[%1].flystate,1);
    set(hotspot[%1].zorder,99);
    tween(hotspot[%1].rx, 0);
    tween(hotspot[%1].ry, 0);
    tween(hotspot[%1].rz, 0);
    tween(hotspot[%1].scale, 1.5);
    tween(hotspot[%1].flying, 1.0, 0.5, default, set(hotspot[%1].flystate,2); );
    </action>

    <action name="flyback_by_name">
    if(hotspot[%1].flystate != 3,
    set(hotspot[%1].flystate,3);
    tween(hotspot[%1].rx, get(hotspot[%1].backup_rx) );
    tween(hotspot[%1].ry, get(hotspot[%1].backup_ry) );
    tween(hotspot[%1].rz, get(hotspot[%1].backup_rz) );
    tween(hotspot[%1].scale, get(hotspot[%1].backup_scale) );
    copy(hotspot[%1].zorder, hotspot[%1].backup_zorder);
    tween(hotspot[%1].flying, 0.0, 0.5, default, set(hotspot[%1].flystate,0); );
    );
    </action>
    ...
    <hotspot name="spot0" onclick="set(state,autoratate.enabled);set(autoratate.enabled,false);lookto(-119.762,3.28571,10,smooth(400,20,100));loadpano(ziacanaia5.xml,null,null,BLEND(1));set(autoratate.enabled,state);" bordercolorhover="0xffffffff" borderalphahover="1" fillcolorhover="0xffffffff" fillalphahover="0.25">
    <point ath="235.385" atv="-5.14286"/>
    <point ath="235.956" atv="11.7143"/>
    <point ath="245.091" atv="11.1429"/>
    <point ath="244.806" atv="-5.14286"/>
    </hotspot>
    <hotspot name="spot1" onclick="set(state,autoratate.enabled);set(autoratate.enabled,false);lookto(60.0952,8.85714,10,smooth(400,20,100));loadpano(ziacanaia11.xml,null,null,BLEND(1));set(autoratate.enabled,state);" bordercolorhover="0xffffffff" borderalphahover="1" fillcolorhover="0xffffffff" fillalphahover="0.25">
    <point ath="416.669" atv="-19.1429"/>
    <point ath="416.669" atv="36.8571"/>
    <point ath="422.95" atv="30"/>
    <point ath="423.521" atv="-14.2857"/>
    </hotspot>
    ...
    <hotspot name="spot0"
    url="0.jpg"
    keep="false"
    ath="-64.28039874202878" atv="21.346400907657575"
    zoom="false" distorted="true"
    width="573" height="573"
    scale="0.17859537198099437" scale9grid="" scalechildren="false" rotate="0"
    rx="-53.5" ry="11.75" rz="14.988684956195346"
    edge="center" ox="" oy=""
    crop="" ondowncrop="" onovercrop=""
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="1"
    alpha="1.00" blendmode="normal" smoothing="true"
    refreshrate="auto"
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick="if(flystate == 0, flyout_by_name(get(name)), flyback_by_name(get(name)) );"
    backup_rx="-53.5"
    backup_ry="11.75"
    backup_rz="14.45784846735247"
    backup_scale="0.2468944366437868"
    backup_zorder="1"
    flying="0"
    flystate="0"
    />
    ...

Participate now!

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