Hi,
After looking at numerous xml filesI have set up a swf which is basically a text and image scroller.
<plugin name="toppanel" url="info/overhead_panel.swf" zorder="20" align="center" alpha="0" visible="false" onclick="action(hideallimages);" />
I have assigned it to appear when a hotspot is clicked on
<hotspot name="overpanel_hotspot"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="0xffffff" borderalpha ="0.00"
fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
onover=""
onhover="showtext(VIEW DETAILS,style2)"
onout=""
ondown=""
onup=""
onclick="action(showimage,toppanel);"
>
<point ath="-16.0287" atv=" 19.2338" />
<point ath=" 16.8424" atv=" 26.6108" />
<point ath=" 17.5392" atv=" 44.5072" />
<point ath=" 16.1113" atv=" 45.0294" />
<point ath=" 14.5786" atv=" 45.2628" />
<point ath=" 12.5888" atv=" 45.1151" />
<point ath="-14.8930" atv=" 36.0485" />
<point ath="-15.8619" atv=" 34.9577" />
<point ath="-16.5409" atv=" 33.7376" />
<point ath="-16.5489" atv=" 32.8822" />
</hotspot>
Display More
and the actions
<action name="hideimage">
tween(plugin[%1].alpha,0,distance(1,0.5),easeoutquad,set(plugin[%1].visible,false));
</action>
<action name="hideallimages">
action(hideimage,toppanel);
</action>
<action name="showimage">
action(hideallimages);
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1,distance(1,0.5),easeoutquad);
</action>
Display More
Problem is, the scroller shows up but when I click on the actual scroll bar to scroll down and view the rest of the content it makes the swf disappear because of the onclick="action(hideallimages) code which is in place to close it. I'm not bright enough to make a X in the top right hand part of the swf scroller and somehow make the scroller disappear.
Could anyone please point me in the right direction on how to set up such an 'X' button?
I noticed that Milo has floating windows with an 'X' on at https://krpano.com/forum/wbb/www.milotimbol.com but they seem have something to do with YUI and not flash.
My brain hurts
Thanks,
Andrew