Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
RE: [Flashcoders] this.onEnterFrame=undefined or delete
this.onEnterFrame

RE: [Flashcoders] this.onEnterFrame=undefined or delete
this.onEnterFrame

2004-03-14       - By EECOLOR

 Back
Like something said before. Setting to undefined is not a bad practice,
this depends on the case u are using it in. In some cases setting values to
undefined can improve speed. There can also be situations where u want a
value to be undefined and not resolve via the prototype chain.

Greetz Erik


At 15:10 14-3-2004, you wrote:
>We understand eachother now :)
>
> > So, it's actually more than just a speed issue, you could get very
> > different results if you are overriding methods.
>
>That is another aspect of this - and the effect of this could be important.
>
>That's why setting it to undefined is a bad practise, and why I don't do
>that.
>
>If anything, I set to null, like with the firstChild of an XMLNode if there
>is no child.
>
>// Morten Barklund
>// DKMMUG Manager


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106882
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)