Sie sind nicht angemeldet.

1

Sonntag, 17. Mai 2009, 01:09

Open a swf scroll window with hotspot

Hi,

Been at this for quite a while now but can't seem to load a swf file when i click on a hotspot.

Studying other peoples examples I managed to load an image from the polygon hotspot but I really need a scrolling text box (which includes images) and not really sure where to start because it's an swf .

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<plugin name="mainpanel" url="info/mainpanel.jpg" align="center" alpha="0" visible="false" onclick="action(hideallimages);" />



<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>

<action name="showimage">
action(hideallimages);
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1,distance(1,0.5),easeoutquad);
</action>



<hotspot name="mainpanel"
     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>


Could anyone please advise me on how to change the above code to switch the mainpanel.jpg to mainpanel.swf and get it to show.

many thanks,

Andrew

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Sonntag, 17. Mai 2009, 16:19

First, you have a hotspot and a plugin name "mainpanel" You should give them unique names. Now, the hotspot probably overrides the plugin.

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<plugin name="mainpanel" url="info/mainpanel.swf" align="center" alpha="0" visible="false" onclick="action(hideallimages);" />

<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>

<action name="showimage">
action(hideallimages);
set(plugin[%1].visible,true);
tween(plugin[%1].alpha,1,distance(1,0.5),easeoutquad);
</action>

<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>


This should work

3

Sonntag, 17. Mai 2009, 19:04

Hi Zephyr,

You got me excited then but unfortunately it didn't work. *sad* Thanks for trying though. I'll keep looking at other peoples xml files as there must be someone that has loaded a swf on screen from a hotspot.

I've just migrated from the FPP viewer so am basically starting from scratch again.

Andrew

4

Sonntag, 17. Mai 2009, 20:12

why did migrate from the FFP *confused*

5

Sonntag, 17. Mai 2009, 20:43

I'm more of a photographer than a xml coder and I was just spending way too much time trying to get things to work (he says while currently posting on a help forum)

The FPP viewer is excellent but clients always want something other than a rotating 360 degree image.

The two main plugin makers bailed ship (Z... ;-) )so no plugins looked like they were going to be made.

6

Montag, 18. Mai 2009, 01:07

Got the little monkey going. *g*

I was using ultimateScroller PRO for the swf and something in the code was preventing it from showing within the panorama. I made another 'real basic' scroller from scratch and it appeared.

Life is good again.

Andrew

Ähnliche Themen