14 March 2010 [Sunday] @ March 14, 2010 edit
anyone knows how make a delay in flash?help?
pom 0]
Mail me at ilyas.usal@club-internet.fr if you don't want to write your address on the board.
pom 0]
pom 0]
Achnor
www.skillfish.com/delay.swf (http://www.skillfish.com/delay.swf)
I'm wondering if there is a script that can be attached to a moving movie( object) that will produce similar results
thanks again
start = getTimer ();
while (start+XXXX>now) {
now = getTimer ();
}
Where XXXX is the delay in milliseconds, e.g. 1000 = 1 sec.
Maybe not the most elegant solution but with this you can tweak the delay individually in each frame, I like it a lot ;)
Achnor
I have use for delay-scripts all the time and the more the merrier :-)
Thanks
Achnor
onClipEvent (enterFrame) {
if (_root.delay) {
if (_root.waitHowLong<=(getTimer()/1000)-_root.startTime) {
// Time is up!
_root.delay = false;
} else {
// Keep waiting...
}
}
}
Source:
www.actionscript.org/tuto...ndex.shtml (http://www.actionscript.org/tutorials/intermediate/delaying_events/index.shtml)
pom 0]
pom 0]
its very similar to the delay im talking about.- except that it moves with the mouse. Can i extract it and apply it to a movie?
pom 0]
What I meant is that this script runs as fast as it can. It's not bound by the framerate. If you have a slow computer, the script executes slow but the delay is the same as with a fast computer where the script executes fast.
If you know a better method (stop, timing?) please let me/us know.
Achnor
If not, I'd still love a copy of any code (as long as I know what its supposed to do) for my records.
Thanks a million!
Iammontoya@yahoo.com
Achnor
#If you have any other info about this subject , Please add it free.# |
| More »