Search  

STOP FUNCTION

HomeForumsFlash DiscussionStop Function
41382 Nythe
121 posts
Sold between 100 and 1 000 dollars

How can you stop ( or rather, pause) a function in AS2 . For example, i have a code like this:

function myFunction() {
       // function code goes here....
}

how can i pause, not delete, this function.

Posted about 1 month ago
50143 MSFX
297 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

where you want it to stop just put

return;

Posted about 1 month ago
43926 the_asman
20 posts
Sold between 1 and 100 dollars
With not knowing exactly what you are trying to achieve .
You could call a secondary function using the setTimeOut method.
A return statement will just exit out of the function not pause it.

button_mc.onRelease = function(){
 var pauseTime = 5000
 setTimeOut(gotoUrl, pauseTime , “http://www.flzone.com”;);
}

// go to the given url
function gotoUrl(url){
 getURL(url);
} Posted about 1 month ago
50143 MSFX
297 posts
Referred at least one person Sold between 100 and 1 000 dollars Bought between 1 and 9 items

@asman, nice avatar, not so clever name :p lol

Posted about 1 month ago