|  | pause resume |  | |
| | | newmfa |  |
| Posted: Sat May 31, 2008 6:33 pm Post subject: pause resume |  |
Hi, i made tween motion to an image using flash 2004 , (Fading Effect), i want motion pause at frame 10 then after 5 seconds the tween resume.. i used this code in frame 1 but nothing happen...!!!!
function wait() { stop(); var myInterval = setInterval(function () { play(); clearInterval(myInterval); }, 2*1000); // stop for 2 seconds }
where my wrong?
regards newmfa |
| |
| | | clbeech |  |
| Posted: Sat May 31, 2008 6:42 pm Post subject: Re: pause resume |  |
sorry there there's quite a few things wrong there - restructure the code on that frame like this:
stop();
var myInterval:Number;
clearInterval(myInterval); myInterval = setInterval(wait, 2000);
function wait() { clearInterval(myInterval); play(); } |
| |
| | | newmfa |  |
| Posted: Sat May 31, 2008 7:09 pm Post subject: Re: pause resume |  |
| all done well, thanks clbeech.. |
| |
| | | newmfa |  |
| Posted: Sat May 31, 2008 7:15 pm Post subject: Re: pause resume |  |
ooh, i forgot ask you...,, i trying develop online game with flash, I'll be pleased if you work with me, I'm graphic designer and i hope find action script coder to develop free online games..
i hope tell me yes or no... greeting newmfa |
| |
| | | clbeech |  |
| Posted: Sat May 31, 2008 7:39 pm Post subject: Re: pause resume |  |
well, I would be willing to assist you occasionally with you codes - at flashgods.org we do have a 'live' chat server were it's a bit easier to communicate quickly and solve small problems - I in fact already do currently develop online casual games for AddictingGames.com - but i am willing to give you a hand developing your own  |
| |
| | | newmfa |  |
| Posted: Sat May 31, 2008 7:48 pm Post subject: Re: pause resume |  |
I'm PLEASED with your quick replay, i will enter flashgods site.... thanks |
| |
| | | clbeech |  |
| Posted: Sat May 31, 2008 7:59 pm Post subject: Re: pause resume |  |
you're welcome  |
| |
|
|