Copy link to clipboard
Copied
I have an enter frame event and a function running that event, I have place a trace statement within the function and the stage is running at 25fps.
My problem is how do you make the trace statement run just once only? Since it get really annoying when the output panel keep tracing the same thing and slow down my swf....
Thanks in advance
//outside your function
var alreadyDone:Boolean
//inside your listener function
if(!alreadyDone){
alreadyDone=true;
trace(...);
}
Copy link to clipboard
Copied
//outside your function
var alreadyDone:Boolean
//inside your listener function
if(!alreadyDone){
alreadyDone=true;
trace(...);
}
Copy link to clipboard
Copied
Thanks
Copy link to clipboard
Copied
you're welcome.