-
How to pause a function?
hey everyone,
i want to just pause a function called timerun,which starts when a button
is clicked.A want to do this only when another button is clicked.
there is only 1 layer,1 frame.
like this:
//button1
on(release)
{
function timerun()
{.....}
}
//the other button
on(release)
{
..........//pause timerun
}
thanks
-
FK'n_dog
does this method help ?
PHP Code:
//button1
on(release){
timerun("go");
}
//button2
on(release){
timerun("nogo");
}
//main timeline
function timerun(param){
if(param=="go"){
// run this function
} else {
// do something else
}
};
-
or possibly:
on(release) {
setTimeout(timerun,5000);// Delay function call for 5 seconds
}
function timerun() {
trace('You rang?');
}
-
-
FK'n_dog
-
now?
that is quite different.
now:
Untitled-2.fla
k plz help me wid have to type in pause button.
Do refer to my logic.
Thanks
-
plz help,my head is swimming!!!
-
FK'n_dog
does flash have a command for pausing a function.
NO.
you must use the logic in mine and sstadlers posts
ps.. if replying, please use good grammar and spell correctly.
this is a professional forum, not a teen-chat room
Last edited by a_modified_dog; 09-27-2008 at 11:51 AM.
-
Request
OK
I got it wat u are saying and I tried it.
But I am not able to make it work in the file.
Please put the code in the file i have attached earlier(2 comments earlier)
and attach the completed file and download it so that I can know the actual
idea behind it.
Thank You.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|