cheathamlane
08-26-2007, 02:58 AM
Hey there:
OK, I'm really starting to have fun, animating hotspots and such on rollover/out, etc.
In the Tutorials files, looking at the parameters descriptions:
onOut="s1.rotation=0, 1000, elastic; s1.alignX=-0.5,3000, elastic;
...I understand pretty much what is happening. I attempted to have a hotspot slide out from left-to-right, and jsut by guessing I was able to get it sliding the right amount:
onOver="alignX=.68,2000, elastic;"
onOut="alignX=0,2000, elastic;"
So, exactly what is the first number (fe, .68) mean -- that is, is this a percentage of the width of the hotspot?
The second number I take to be the length of time for the sliding to happen.
The elastic bit is cute, but is there a way to make it more/less bouncy?
If I missed it somewhere, please let me know -- I think I've read thru the documentation pretty well, and can't find much discussion of these scriptlets.
Also... is it possible to use conditionals in the scriptlets? I may want something to fire only if something else is visible, or bounced out, or whatever.
And... What's the easiest way to turn a hotspot into a toggle switch? That is, click #1 sends it somewhere, and click #2 sends it back (similar to saying "visible+=1")... Without having to tell click #2 exactly where to go?
Thanks!
Patrick
(this should be visible at: http://www.cheathamlane.net/ )
OK, I'm really starting to have fun, animating hotspots and such on rollover/out, etc.
In the Tutorials files, looking at the parameters descriptions:
onOut="s1.rotation=0, 1000, elastic; s1.alignX=-0.5,3000, elastic;
...I understand pretty much what is happening. I attempted to have a hotspot slide out from left-to-right, and jsut by guessing I was able to get it sliding the right amount:
onOver="alignX=.68,2000, elastic;"
onOut="alignX=0,2000, elastic;"
So, exactly what is the first number (fe, .68) mean -- that is, is this a percentage of the width of the hotspot?
The second number I take to be the length of time for the sliding to happen.
The elastic bit is cute, but is there a way to make it more/less bouncy?
If I missed it somewhere, please let me know -- I think I've read thru the documentation pretty well, and can't find much discussion of these scriptlets.
Also... is it possible to use conditionals in the scriptlets? I may want something to fire only if something else is visible, or bounced out, or whatever.
And... What's the easiest way to turn a hotspot into a toggle switch? That is, click #1 sends it somewhere, and click #2 sends it back (similar to saying "visible+=1")... Without having to tell click #2 exactly where to go?
Thanks!
Patrick
(this should be visible at: http://www.cheathamlane.net/ )