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
 
this.onEnterFrame=undefined or delete this.onEnterFrame

this.onEnterFrame=undefined or delete this.onEnterFrame

2004-03-14       - By Celso Gomes

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

But for this.onEnterFrame 'delete' is better, isn't it?

Because setting to undefinied, it still gets resources... ?

C.

-- --Original Message-- --
   From: "Keith Peters"<flashcoder@(protected)>
   Sent: 3/14/04 10:05:41 PM
   To: "flashcoders@(protected)"<flashcoders@(protected)>
   Subject: RE: [Flashcoders] this.onEnterFrame=undefined or delete this
.onEnterFrame
     Not sure if there's any difference in memory use, but deleting takes
   aboout twice as long as setting to undefined:
   
   startTime = getTimer();
   for(var i=0;i<10000;i++){
      x=0;
      x=undefined;
   }
   trace(getTimer()-startTime);
   startTime = getTimer();
   for(var i=0;i<10000;i++){
      x=0;
      delete x;
   }
   trace(getTimer()-startTime);
   
   
   -- --Original Message-- --
   From: martin weiser [mailto:weiser.m@(protected)]
   Sent: Sunday, March 14, 2004 7:19 AM
   To: flashcoders@(protected)
   Subject: [Flashcoders] this.onEnterFrame=undefined or delete
   this.onEnterFrame
   
   
       

[Message truncated. Tap Edit->Mark for Download to get remaining portion.]


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:106871
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)