onEnterFrame is callback function binded to certain event which can be triggered every frame passed. your three lines all have same effects but the third one did different work from the first two, delete means to destroy or kill, but set it to null just means nothing can will be triggered with this event.
onEnterFrame is callback function binded to certain event which can be triggered every frame passed.
hi black,
Ok fine. Then what abt 'eventOnEnterFrame' ?. I saw that type of code in one of the reply thread posted by Mr/Ms oldnewbie. But i can't understand the use of it fully. Thats why im asking.
That's just the name I gave to a function I'm assigning to an onClipEvent(enterFrame) on movie clips... It could of been myOnEnterFrame or whatever else! It has noting to do with a usual onEnterFrame per say. I am using that function rather than hard coding the onClipEvent(enterFrame) itself, and that way I can null it (without deleting it) and even re-assign it back to the clip whenever I need to...
Any clearer?
Ok fine. Then what abt 'eventOnEnterFrame' ?. I saw that type of code in one of the reply thread posted by Mr/Ms oldnewbie. But i can't understand the use of it fully. Thats why im asking.
Jsam..
seems oldnewbie explained it perfectly, i did not see the code but i guess it may be something like this:
Code:
function eventOnEnterFrame()
{
// ...
}
_root.onEnterFrame = eventOnEnterFrame;