Wow! Thanks for the replies. A look at both your info and I was able to get my swf scrolling window up and running using the idea of the close button on another layer, the 'Parent' feature and a bit of my old code for the open and close.
To be honest my head was that mashed from spending hours on this
The swf scrolling window
|
Quellcode
|
1
|
<plugin name="mainpanel" url="info/main_panel.swf" zorder="20" align="center" alpha="0" visible="false" />
|
The 'close' button
|
Quellcode
|
1
|
<plugin name="closewindow_01" url="skin/close.png" zorder="21" parent="mainpanel" align="topright" x="12" y="8" alpha="1" visible="true" onhover="showtext(CLOSE WINDOW,buttonstyle)" onclick="action(hideallimages);" />
|
Hotspot on 360 image
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<hotspot name="mainpanel_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,mainpanel);"
>
<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>
|
Actions to hide and show the swf scrolling window
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<action name="hideimage">
tween(plugin[%1].alpha,0,distance(1,0.5),easeoutquad,set(plugin[%1].visible,false));
</action>
<action name="hideallimages">
action(hideimage,mainpanel);
action(hideimage,toppanel);
action(hideimage,stickpanel);
action(hideimage,infobox);
</action>
<action name="showimage">
action(hideallimages);
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1,distance(1,0.5),easeoutquad);
</action>
|
And here's the viewer window with it in action. When I click on the helicopter panel within the 360 degree shot the swf appears. I have to make another 6 hotspots and scrollers. The actual scrolling swf needs a makeover but at least the damn thing works now.
I did notice that the two up and down arrows on the scroll bar are stretched which sounds like something similar to the problem you are having Graydon with that '
i' button in your demo button but the actual alignment of the X button has no issues at all with the plugin code.
Thanks again to the both of you and I'm sure there's enough info on here to help anyone out in the future with a similar question
Andrew