This content has been marked as final. Show 7 replies
check this forum for playF(), a method for movieclips that allows you to play any movieclip from any frame to any other frame (forward or backward) at any rate (the host computer can handle).
this has been discussed before??
kool.. thanx dude! =)
Hey Kglad, I found the topics you had about playF(), i read all of them.. but im stil having problems understanding it..
if you have time and are willing, could you explain it to me plese?
I haven't ever worked with prototypes before, maybe thats why im not understanding it.. =(
oh, many times. here's my playF and stopF methods for movieclips. it works well for non-precision play. for anything where the frame rate has to be precise (like sync'ing voice and animation) i have a more complex method.
to play movieclip mc from frame n to m at fps (frames per second), add the code below the dotted line to your swf and use:
I still don't understand HOW it works.. i just tried to apply it to an old animation i had to see if i can get it to work, but i can't because i don't understand it at all..
im trying to incorporate your code to the idea i have for the website im making. so i would need to call mc.playF() from a onRelease action.. and i see you have added a stopF() in this one too, how can i call that function when the playhead reaches the corresponding frame of the button pressed?
ok nevermind, i got it to work.. i simply forgot to name my button =P
anyway... it works great, except that im calling the function from 3 buttons for testing, all with different params... and although it works great, it ALWAYS starts from the begining, then moves to n
i've tried changing:
and this works, but because the animation has a stop(); at the begining, this only works the first time through.
also, when im calling the function im using:
mc.playF(_currentframe, 20, 24);
_currentframe must be 1. if want to play mc from its current frame to frame 20 at 24 fps use mc.playF(mc._currentframe,20,24).