Hi Zeh,
I tested the theory and put the onEnterFrame = null inside if(loaded
== filesize) right at the beginning and it did not finish the alpha
that was under it.
Does that mean that my code does not finish because I made it null or
does that mean that it does matter where you place the termination?
Thank you for the quick response BTW.
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Apr 10, 2009, at 11:29 PM, Zeh Fernando wrote:
When you have an "onEnterFrame" and you want to terminate it but
call on a
function at the end of it, what is the best way of doing this?
Do you call the function first and then end the onEnterFrame or do
you end
the onEnterFrame and then call the function?
It doesn't matter. You nulify the reference and the current call
continues
to execute. So it makes no difference in practice (unless your
function SETS
onEnterFrame of course).
Also, do you use onEnterFrame = null or is it better to delete
onEnterFrame?
Someone made tests about it to see what was faster a long time ago,
but I
can't remember the results. :( IIRC, it was better to set it as
undefined
(same effect as delete in this case?)
Zeh
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders