Hi all
I am trying to make a button (plugin) open up another plugin (a photo) in the centre of my pano but it isn't working.
Here is the code;
Code
<plugin name="ibutton" keep="true" url="plugins/info_button.swf"
align="rightbottom" x="5" y="5" scale="0.8"
onclick="action(show_gym_field);"
/>
<action name="show_gym_field">
set(plugin[gympic].y,-1500);
tween(plugin[button].alpha,0,,,set(plugin[button].visible,false));
tween(plugin[gympic].alpha,1,0);
tween(plugin[gympic].textblur,0,0);
tween(plugin[gympic].blur,0,0);
set(plugin[gympic].visible,true);
set(plugin[gympic].enabled,true);
tween(plugin[gympic].y,0);
</action>
<plugin name="gympic" url="%SWFPATH%/plugins/gym.png"
align="center" x="0" y="-1100" visible="false"
borderwidth="1"
selectable="false"
shadow="6"
autosize="center"
onclick="event:action(hidegymwindow,gympic);"
/>
<action name="hidegymwindow">
set(plugin[%1].enabled,false);
tween(plugin[%1].alpha,0);
tween(plugin[%1].blur,20);
tween(plugin[%1].textblur,20,,,set(plugin[%1].visible,false));
</action>
Display More
Any help would be appreciated.
Thank you.