[Flashcoders] Memory Issue

2008-04-09 Thread Omar Fouad
I have a Loader Object that is childAdded to MovieClip Container, and each
time the application needs, the loader loads a different image in it.

.

private var Photoldr:Loader = new Loader();

public function LoadPhoto():void {
   var PhotoPath:String = String(DataArray[0].LocationMapLink);
   var PhotoReq:URLRequest = new URLRequest(PhotoPath);
   Photoldr.load(PhotoReq);
}


where LoadPhoto is called from an outside Class.

Would this mean that the Loader Instance is overridden each time and frees
up memory? Or I should null the Photoldr and recreate it again?

thanks

-- 
Omar M. Fouad - Digital Emotions
http://www.omarfouad.net

This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Memory issue with large images

2007-07-26 Thread Lori Hutchek

Hi All,

Sorry if this is an old issue thats been discussed but couldn't find 
anything in google or the archives. I'm building a program that loads in 
images that could be over 2mb and we have noticed that the memory usage 
spikes after the image is loaded. Not only that but depending on if u 
use AS2 or AS3, memory usage could be higher in one while the other is 
lower.


We are assuming this is Flash decompressing the image for view, but I'm 
curious if thats the truth. Any one know??


Here are some test results:
File size: 4.26mb - Memory usage: (AS2) 61.2mb  - (AS3) 55mb
File size: 88k - Memory usage: (AS2) 9.9k - (AS3) 11k

Thanks!
Lori-


___
[email protected]
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