Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2008, 07:03 AM
shanweid shanweid is offline
Junior Member
 
Join Date: May 2008
Posts: 1
Downloads: 0
Uploads: 0
Default Need help with as3 and fpp

This is my file "nature.xml" Autorotator and Borders seem to work. I am clueless about hotspots. At the bottom is my as3 for my embedpano to compare. I am a beginner at this and I'm sure it must be something simple that I am misssing. Thankyou, in advance for any help, you may provide. Sincerely, Shanweid

NATURE.XML

<?xml version="1.0" ?>
<panorama>
<parameters>
layer_2 = autorotator.swf
layer_3 = borders.swf
layer_4 = hotspots.swf
</parameters>
<autorotator>
speed = -0.1
interval = 30
pause = 1000
quality = low
</autorotator>
<borders>
pan_min = -40
pan_max = 40
tilt_min = -10
tilt_max = 80
</borders>
<hotspots>
<spot id="arrow1" url="arrow.png" onClick="loadPano(?panoName=snow.swf&pan=100)"/>
</hotspots>
</panorama>

THIS IS MY AS3

// you can store XML's for panoramas directly in code:
var xml_1:XML =
<panorama>
<parameters>
panoName=nature.swf
layer_4=hotspots.swf
</parameters>
<hotspots>
<spot id="arrow1" url="arrow.png" onClick="loadPano(?panoName=snow.swf&pan=100)"/>
</hotspots>
</panorama>
Reply With Quote
  #2  
Old 05-13-2008, 01:21 AM
zleifr's Avatar
zleifr zleifr is offline
Senior Member
 
Join Date: May 2007
Posts: 609
Downloads: 0
Uploads: 0
Default

This little piece of the XML:
<hotspots>
<spot id="arrow1" url="arrow.png" onClick="loadPano(?panoName=snow.swf&pan=100)"/>
</hotspots>

needs to be like this:
<hotspots>
<global>
<spot id="arrow1" url="arrow.png" onClick="loadPano(?panoName=snow.swf&pan=100)"/>
</global>
</hotspots>
__________________
Zephyr Renner - AdvancedVirtualTours.com - zleifr @t yahoo

Improving the panoramic one mighty fine plug-in at a time: http://www.flashpanos.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:07 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.