RE: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread Kalani Bright
 
These are great articles!  They are helping me out a lot.
While browsing the links I also found grant's talk at flash forward austin.
His presentation explaining resource management can be found here
http://gskinner.com/talks/resource-management/ 
(free nicely animated slideshow application if anyone's interested ;)

Thanks James


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of JOR
Sent: Wednesday, February 28, 2007 4:22 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Flash 9 AS3 Resource Management

Grant Skinner has some good blog postings on the subject...

<http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html>
<http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html>
<http://www.gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html>
<http://www.gskinner.com/blog/archives/2006/09/garbage_collect.html>
<http://www.gskinner.com/blog/archives/2006/06/understanding_t.html>
<http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html>

-- JOR


James O'Reilly  -  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design . Code . Train



Kalani Bright wrote:
> Hi everyone,
>  
> Does anyone have some tips or tutorials on how to handle resources and 
> performance issues in flash.
>  
> I have more of an application than a flash file and things start to 
> slow down after a while.  I'm thinking the garbage collection 
> mechanism in flash isn't deleting the objects which aren't needed anymore.
> I was able to improve performance somewhat by overriding 
> addEventListener to put the event listener into an array of objects 
> which I then reference values from.  When a SuperMovieClip object is 
> removed from the stage an event listener for that event goes through 
> the array and removes each of the listeners.  If it is added to the 
> stage again all the listeners are re-added from the array.
>  
> Theres some other slow downs I can't account for.  It would be nice if 
> there was a debugging tool or something so I could see what types of 
> objects are in memory at any time so I can see whats not getting 
> deleted and what keeps taking up resources.  I am especially 
> interested in however strategies for dealing with the issues of 
> instantiation, deletion, events, for resource optimization.
>  
> Thank you, thank you, (thank you)
>  
> Kalani
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
> 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread Dave Watts
> I have tried several times to remove myself from this email 
> list to no avail.  Can someone please remove me?

In the future, if you need help on a list, PLEASE CONTACT THE LIST OWNER
DIRECTLY. It is a mistake to assume that the list owner will read every
message sent to the list, because the list owner has a day job. To contact
the list owner, you click on the link at the bottom of the list information
page:

http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Fortunately, in this case, your message subject, "RE: [Flashcoders] Flash 9
AS3 Resource Management", let me see in an instant that you needed help from
the list owner. Per your request, you have been unsubscribed.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread JOR

Grant Skinner has some good blog postings on the subject...









-- JOR


James O'Reilly  —  Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train



Kalani Bright wrote:

Hi everyone,
 
Does anyone have some tips or tutorials on how to handle resources and

performance issues in flash.
 
I have more of an application than a flash file and things start to slow

down after a while.  I'm thinking the garbage collection mechanism in flash
isn't deleting the objects which aren't needed anymore.
I was able to improve performance somewhat by overriding addEventListener to
put the event listener into an array of objects which I then reference
values from.  When a SuperMovieClip object is removed from the stage an
event listener for that event goes through the array and removes each of the
listeners.  If it is added to the stage again all the listeners are re-added
from the array.
 
Theres some other slow downs I can't account for.  It would be nice if there

was a debugging tool or something so I could see what types of objects are
in memory at any time so I can see whats not getting deleted and what keeps
taking up resources.  I am especially interested in however strategies for
dealing with the issues of instantiation, deletion, events, for resource
optimization.
 
Thank you, thank you, (thank you)
 
Kalani

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread Douglas Pearson
I'd be interested in tools for monitoring this too.

To avoid holding onto objects through addEventListener, have you tried the
weak reference option?  We've been using that increasingly as the default
way to add listeners, so objects don't hang around when we think we're
finished with them.

Doug 

-Original Message-
From: Kalani Bright [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 28, 2007 2:56 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash 9 AS3 Resource Management

Hi everyone,
 
Does anyone have some tips or tutorials on how to handle resources and
performance issues in flash.
 
I have more of an application than a flash file and things start to slow
down after a while.  I'm thinking the garbage collection mechanism in flash
isn't deleting the objects which aren't needed anymore.
I was able to improve performance somewhat by overriding addEventListener to
put the event listener into an array of objects which I then reference
values from.  When a SuperMovieClip object is removed from the stage an
event listener for that event goes through the array and removes each of the
listeners.  If it is added to the stage again all the listeners are re-added
from the array.
 
Theres some other slow downs I can't account for.  It would be nice if there
was a debugging tool or something so I could see what types of objects are
in memory at any time so I can see whats not getting deleted and what keeps
taking up resources.  I am especially interested in however strategies for
dealing with the issues of instantiation, deletion, events, for resource
optimization.
 
Thank you, thank you, (thank you)
 
Kalani


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread David Andersen
Hi all,

I have tried several times to remove myself from this email list to no avail.  
Can someone please remove me?  

Thanks!

-Dave

Kalani Bright <[EMAIL PROTECTED]> wrote: Hi everyone,
 
Does anyone have some tips or tutorials on how to handle resources and
performance issues in flash.
 
I have more of an application than a flash file and things start to slow
down after a while.  I'm thinking the garbage collection mechanism in flash
isn't deleting the objects which aren't needed anymore.
I was able to improve performance somewhat by overriding addEventListener to
put the event listener into an array of objects which I then reference
values from.  When a SuperMovieClip object is removed from the stage an
event listener for that event goes through the array and removes each of the
listeners.  If it is added to the stage again all the listeners are re-added
from the array.
 
Theres some other slow downs I can't account for.  It would be nice if there
was a debugging tool or something so I could see what types of objects are
in memory at any time so I can see whats not getting deleted and what keeps
taking up resources.  I am especially interested in however strategies for
dealing with the issues of instantiation, deletion, events, for resource
optimization.
 
Thank you, thank you, (thank you)
 
Kalani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Flash 9 AS3 Resource Management

2007-02-28 Thread Kalani Bright
Hi everyone,
 
Does anyone have some tips or tutorials on how to handle resources and
performance issues in flash.
 
I have more of an application than a flash file and things start to slow
down after a while.  I'm thinking the garbage collection mechanism in flash
isn't deleting the objects which aren't needed anymore.
I was able to improve performance somewhat by overriding addEventListener to
put the event listener into an array of objects which I then reference
values from.  When a SuperMovieClip object is removed from the stage an
event listener for that event goes through the array and removes each of the
listeners.  If it is added to the stage again all the listeners are re-added
from the array.
 
Theres some other slow downs I can't account for.  It would be nice if there
was a debugging tool or something so I could see what types of objects are
in memory at any time so I can see whats not getting deleted and what keeps
taking up resources.  I am especially interested in however strategies for
dealing with the issues of instantiation, deletion, events, for resource
optimization.
 
Thank you, thank you, (thank you)
 
Kalani
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com