Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Shakespeare87

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Newbie

About Shakespeare87

  • Rank
    Newbie
  1. Guys, I used Memory Tracker for AS3 : http://divillysausages.com/blog/tracking_memory_leaks_in_as3 And I confirmed that the target that I sent in for tween wasn't been null (as going through TweenLite codes and also ThrowProps codes) causing memory reference to the target itself retained. As when I commented the .to method and the reference for that target is no longer there (comment off the tweening). Please do get back to me ASAP on this, the leak is blocking our project forwarding. Thanks and Regards, Wilson
  2. Thanks for your effort, I made my work around though. Is a good will to inform about this. I did the above codes as a test, I'm optimizing BitmapData memory reference, from class (library) and url. Your team made below claim : [new in version 1.89:] When you load() an ImageLoader, it will automatically check to see if another ImageLoader exists with a matching url that has already finished loading. If it finds one, it will copy that BitmapData to use in its own Bitmap in order to maximize performance and minimize memory usage. After all, why load the file again if you've already loaded
  3. var imgLoader:ImageLoader = new ImageLoader("data/img/global_ui/blue/ButtonStd1.jpg", {onComplete : onComplete}); var imgLoader2:ImageLoader = new ImageLoader("data/img/global_ui/blue/ButtonStd1.jpg", {onComplete : onComplete}); imgLoader2.load(); imgLoader.load(); var tempBD:BitmapData = null; function onComplete(evt:LoaderEvent):void{ if(tempBD == null) tempBD = evt.target.rawContent.bitmapData; else trace(tempBD == evt.target.rawContent.bitmapData); } How about this, suppose the same url should return the same bitmapData but it doesn't. I'm creating a central bitmapData reference for memor
  4. var imgLoader:ImageLoader = new ImageLoader("data/img/global_ui/blue/ButtonStd1.jpg", {onComplete : onComplete}); var imgLoader2:ImageLoader = null; imgLoader.load(); var tempBD:BitmapData = null; function onComplete(evt:LoaderEvent):void{ tempBD = imgLoader.rawContent.bitmapData; tempBD.dispose(); // imgLoader.dispose(true); imgLoader2 = new ImageLoader("data/img/global_ui/blue/ButtonStd1.jpg", {onComplete : onComplete2}); imgLoader2.load(); } function onComplete2(evt:LoaderEvent):void{ trace(imgLoader2.rawContent.bitmapData.height); } If I comment dispose(true), on
×