PDA

View Full Version : repeating and moving


Mindslave
08-28-2007, 08:17 AM
I have a bit of a problem i have animated and modelt a seagull for in my docks panorama.
now the problem is i want it to fly in the background and moves up and down how can i script that it tilts up and down again and keeps repeating that.....

and if i put music in a swf file why can't I hear sound pan? does soundpan only work with .flv movies?...

last question: if i move over swf and try to look an other direction in the panorama it doesn't work the panorama stays still if i click on swf and try to rotate... but i did use buttonmode="0" is there a way to fix that...

thanks in advance :)

jaaaab
08-28-2007, 06:28 PM
Hi

question 1: as there is no event handler in FPP xml script, the best way (to my mind) in intend to automate tilt up and tilt down is to write a first global function that makes the panorama tilting down.
In a normal way we should then test pano tilt and if it's equal to -90 launch the next function that makes the tilt goes up.
But it's impossible to write that with xml script. You'll have to find how many time your function takes to make your panorama to be completly tilted down, and then put a timer, something like this:

<global onStart = "tiltDOWN();"

tiltDOWN = "
pano.tilt=-90,5000,smooth; (5000 is the the time you want your pano to be completly tilted down)
timer+=1,6000,,tiltUP; (6000 is the time when tiltUP will be launched, 1000 after pano is tilted down so there's a little pause)
"

tiltUP = "
pano.tilt=90,5000,smooth;
timer+=1,6000,,tiltDOWN;
"

>

question 2: i think that soundpan was made only for flvplayer, ask Denis...

question 3: can we see your script?

Regards

Mindslave
08-29-2007, 08:02 AM
Hi

question 1: as there is no event handler in FPP xml script, the best way (to my mind) in intend to automate tilt up and tilt down is to write a first global function that makes the panorama tilting down.
In a normal way we should then test pano tilt and if it's equal to -90 launch the next function that makes the tilt goes up.
But it's impossible to write that with xml script. You'll have to find how many time your function takes to make your panorama to be completly tilted down, and then put a timer, something like this:

<global onStart = "tiltDOWN();"

tiltDOWN = "
pano.tilt=-90,5000,smooth; (5000 is the the time you want your pano to be completly tilted down)
timer+=1,6000,,tiltUP; (6000 is the time when tiltUP will be launched, 1000 after pano is tilted down so there's a little pause)
"

tiltUP = "
pano.tilt=90,5000,smooth;
timer+=1,6000,,tiltDOWN;
"

>


question 2: i think that soundpan was made only for flvplayer, ask Denis...

question 3: can we see your script?



Regards

question1:

Thx for the reply but i don't want the panorama to tilt up and down but the seagull swf. this is what ive got
<box id="bird" url="seagull2.swf" scale="0.5" blur="2" pan="-128.5" tilt="3" refreshRate="8" segmentsX="4" segmentsY="4" buttonMode="0" />
how do i tilt it up and down?...

question2:

ok thx I'll ask ;)


question3:

<?xml version="1.0" ?>
<panorama>
<parameters>
layer_5 = hotspots.swf
layer_10 = glassMeter.swf
</parameters>
<hotspots>
<global>
<pano pan="0" tilt="0" />
<box url="door.png" onLoad="alpha=0:alpha=1,1000" pan="-0.55" tilt="-0.19" onOver="alpha=1,300" onLoad="alpha=0" onOut="alpha=0,300" scale="1.4" />
<box id="flag" url="vlag1.swf" scale="0.5" blur="2" pan="-6.5" tilt="14.8" scale="0.5" orientation="front" refreshRate="20" segmentsX="4" segmentsY="4" buttonMode="0" />
<box id="flag" url="vlag2.swf" scale="0.5" blur="2" pan="-21" tilt="14" scale="0.5" orientation="front" refreshRate="20" segmentsX="4" segmentsY="4" buttonMode="0" />
<box id="flag" url="vlag3.swf" scale="0.5" blur="2" pan="10" tilt="14.8" scale="0.5" orientation="front" refreshRate="20" segmentsX="4" segmentsY="4" buttonMode="0" />
<box id="flag" url="vlag4.swf" scale="0.5" blur="2" pan="25" tilt="13.8" scale="0.5" orientation="front" refreshRate="20" segmentsX="4" segmentsY="4" buttonMode="0" />
<box id="bird" url="seagull1.swf" scale="1" blur="2" pan="130" tilt="20" scale="0.5" refreshRate="20" segmentsX="4" segmentsY="4" buttonMode="0" />
<box id="bird" url="seagull2.swf" scale="0.5" blur="2" pan="-100" tilt="12" refreshRate="8" segmentsX="4" segmentsY="4" buttonMode="0" />
</global>
</hotspots>
</panorama>

Mindslave
08-29-2007, 10:25 AM
ive got the seagull working :D

my script:
<box url="seagull.swf" blur="2" scale="0.4" pan="-128.5" refreshRate="20" segmentsX="4" segmentsY="4" onLoad="tilt=3; timer+=1,2100,,tiltBack" tiltBack="tilt=35,5000,,scale=1; timer+=0,100,,scaleBack" scaleBack="scale=5,5000,,pan=1; timer+=0,400,,panBack" panBack="pan=12,5000,,distance=1; timer+=0,1800,,distanceBack" distanceBack="distance=50,9000,smooth" blockMouse="0" />

but can't I use tilt 2 times? so it tilts up first then do scale,pan and distance and then i want him to tilt down again...


edit:

nvm i got it :D

<box url="seagull5.swf" blur="2" soundRadius="200" enableSoundPanning="2" scale="0.4" pan="-129.4" refreshRate="20" segmentsX="4" segmentsY="4" onLoad="tilt=3.1; timer+=1,2100,,tiltBack" tiltBack="tilt=30,5000,,scale=1; timer+=0,100,,scaleBack" scaleBack="scale=2.5,5000,,pan=1; timer+=2,400,,panBack" panBack="pan=-20,4000,,distance=1; timer+=0,1800,,distanceBack" distanceBack="distance=30,8000,smooth,,tilt=25,5000; timer+=0,2000,,tiltstart" tiltstart="tilt=20,3000" blockMouse="0" />