PDA

View Full Version : Hot spot tween repeating


athoughtbytim
04-18-2008, 09:33 PM
If i have a hot spot tween working, but it will only work once. onOut, onOver, and onClick will only work once. Any way to keep them working over and over again with a parameter or something else I'm simply missing?
--timbo

cheathamlane
04-18-2008, 11:27 PM
Hey timbo:

Do you have a link to an online example?

lc8b105
04-19-2008, 01:55 AM
yes,post an example or the code that you're not satisfied. Then we can see where is the problem.

athoughtbytim
04-21-2008, 08:31 PM
Well I don't have access to a server right now. I'll post the xml code if it helps.

I have info. loading globally. But again it will only do each action once.
If I want to mouse over more than once it will not do it. Is it the fact I have the box objects referencing the global commands? Sorry I can't give you more than this right now. And thanks for the help.



<?xml version = '1.0'?>
<panorama>
<parameters>
layer_1 = hotspots.swf
</parameters>
<hotspots>
<global onLoad="alpha=0; alpha=1,1000"

showInfo="
pano.qualityStatic = medium;
info.onclick=
info.scale=20,1200,bounce;"

moveInfo="
infoscreen.visible = 1;
infoscreen.alignY = -8;
infoscreen.alignY = -1,1200,bounce;
timer = 1,1300,,restoreQuality;
"


hideInfo="
info.onOver=
info.rotationY=100,1200,bounce;
info.rotationX=10,1200,bounce;
infoscreen.visible = 0;
"

restoreInfo="
info.onOut=
info.rotationX=0,1300,,restoreQuality;
info.rotationY=90,1300,,restoreQuality;"

restoreQuality = "pano.qualityStatic = medium;"

>

<box id="infoscreen" url="images/logoInfo.png" align="B" pan="-18.00" tilt="-38.00" orientation="down" rotationX="30.00" rotationY="90.00" segmentsX="4" segmentsY="3" scale="3.50" visible="0" onClick="hideInfo" onOver="" onOut="" onPress="blendMode=hardlight" onRelease="blendMode=normal" />

<box id="info" url="images/01kayleigh.png" align="B" pan="-31.00" tilt="-28.00" orientation="down" rotationX="0" rotationY="90.00" scale="3.50"
onClick="showInfo()"
onOver="hideInfo()"
onOut="restoreInfo()"
/>


</global>
</hotspots>
</panorama>

cheathamlane
04-21-2008, 08:53 PM
Things like "info.onOut=" will remove the function completely (that is, set it to empty), and so in this example "onOut" won't do anything the next time since it's set to empty.

athoughtbytim
04-28-2008, 07:49 PM
Okay... so to fix this can I reload just the distorted hot spots or the whole pano on an onOut function? I guess that's probably not the best solution. What about a double click to get the distorted hotspot to return to its original state?
--tim