Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-10-2004, 04:18 AM   #1
jsam
Registered User
 
Join Date: Jun 2004
Posts: 59
Default onEnterFrame & eventOnEnterFrame diff?

hi,

im confused abt the following ...
Difference between onEnterFrame and eventOnEnterFrame events.

then, i think that these three lines of code doing the same work..

anyMc.onEnterFrame=null;
anyMc.onEnterFrame=undefined;
delete anyMc.onEnterFrame;

Am i right?.


Thx in advance...


Jsam..
jsam is offline   Reply With Quote
Old 08-10-2004, 04:27 AM   #2
black
flashing vampire
 
black's Avatar
 
Join Date: Dec 2001
Location: nowhere
Posts: 1,406
Default

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.
__________________
Never end on learning~
black is offline   Reply With Quote
Old 08-10-2004, 06:30 AM   #3
jsam
Registered User
 
Join Date: Jun 2004
Posts: 59
Default Re: onEnterFrame diff

Quote:
Originally Posted by black
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.


Jsam..
jsam is offline   Reply With Quote
Old 08-10-2004, 08:19 AM   #4
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

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?

Oh! And it's not Ms!
oldnewbie is offline   Reply With Quote
Old 08-10-2004, 10:04 AM   #5
black
flashing vampire
 
black's Avatar
 
Join Date: Dec 2001
Location: nowhere
Posts: 1,406
Default

Quote:
Originally Posted by jsam
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.

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;
you can see it is actually a function itself.
__________________
Never end on learning~
black is offline   Reply With Quote
Old 08-11-2004, 08:19 AM   #6
jsam
Registered User
 
Join Date: Jun 2004
Posts: 59
Default eventOnEnterFrame...

Quote:
Originally Posted by black
seems oldnewbie explained it perfectly,
Ya,
ur guess is exactly right.
oldnewbie explained briefly.
eventOnEnterFrame is nothing but a func name.

Anyhow thx a lot for ur reply,...



Jsam
jsam is offline   Reply With Quote
Old 08-11-2004, 08:26 AM   #7
jsam
Registered User
 
Join Date: Jun 2004
Posts: 59
Default eventOnEnterFrame..

Quote:
Originally Posted by oldnewbie
That's just the name I gave to a function.
Oh! And it's not Ms!
Hi,
i thought that, its an seperate event for MCs.

'OldNewBie' - is this ur nick name. sorry for 'Ms'.

C U...

Jsam
jsam is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.