RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Well that is a good question and the answer is... http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-3.8/ com/jeroenwijering/utils/ImageLoader.as At least that seems to be the AS3 version I think. There is an AS2 version that I am using that is very smooth and with dynamic images (lost of them). Haven't used the AS3 version yet though. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Karl, THANK YOU!!! Regards, Cor van Dooren -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 12:59 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Well that is a good question and the answer is... http://developer.longtailvideo.com/trac/browser/tags/mediaplayer-3.8/com/jer oenwijering/utils/ImageLoader.as At least that seems to be the AS3 version I think. There is an AS2 version that I am using that is very smooth and with dynamic images (lost of them). Haven't used the AS3 version yet though. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
No problem. If you cant get it to work I can send you marti's version, but it is AS2. It takes the image loads the image in an empty mc then copies the bitmap data into another MC then deletes the original image then loads the bitmap image into what ever MC you have it assigned to and you are able to put smoothing on it as well. Its a very neat script. Kudos to those. Karl On Sep 18, 2010, at 6:02 AM, Cor wrote: Karl, THANK YOU!!! Regards, Cor van Dooren -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 12:59 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Well that is a good question and the answer is... http://developer.longtailvideo.com/trac/browser/tags/ mediaplayer-3.8/com/jer oenwijering/utils/ImageLoader.as At least that seems to be the AS3 version I think. There is an AS2 version that I am using that is very smooth and with dynamic images (lost of them). Haven't used the AS3 version yet though. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
There you go. GL Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
I have created one of my own, but it is surely not the best way to do it? Nevertheless, I will share it with you: Image.as: code /** * @class : Image * * @author : Cor van Dooren * @version : 1.0 * * @usage : Load a PNG, JPG, GIF or SWF file * @syntax : var myIMG:Image = new Image(param); * @param : String: bv. img/your_file.png */ package ecemel.codo { //--- I M P O R T S --- import com.greensock.*; import com.greensock.easing.*; import flash.display.*; import flash.errors.*; import flash.events.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.net.*; import flash.text.*; import flash.utils.*; import flash.media.*; import flash.system.*; import flash.ui.*; import flash.xml.*; import fl.containers.*; import fl.controls.*; import fl.controls.listClasses.*; import fl.data.*; import fl.video.*; import fl.transitions.*; import fl.transitions.easing.*; import fl.managers.*; //--- C L A S S --- public class Image extends MovieClip { //--- P R I V A T E V A R I A B L E S - public static var imgBreedte:Number; public static var imgHoogte:Number; //--- P R I V A T E V A R I A B L E S - private var ldr:Loader; private var url:String; //--- C O N S T R U C T O R - public function Image(psdURL:String=null) { url = psdURL; addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); }//end CONSTRUCTOR //-- - //# # # # P R I V AT EF U N C T I O N S # # # # # //-- - //--- i n i t --- private function init(e:Event):void { removeEventListener(Event.ADDED_TO_STAGE, init); loadImage(); }//end init //--- l o a d I m a g e - private function loadImage():void { ldr = new Loader(); ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler, false, 0, true); ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true); ldr.load(new URLRequest(url)); }//end loadImage //--- c o m p l e t e H a n d l e r - private function completeHandler(e:Event):void { if (url.slice(url.length - 3,url.length) != swf) { //trace(Het is een,url.slice(url.length - 3, url.length)); var bitmapImage:Bitmap = e.target.content; bitmapImage.smoothing = true; } e.target.removeEventListener(Event.COMPLETE, completeHandler); e.target.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); imgBreedte = ldr.contentLoaderInfo.width; imgHoogte = ldr.contentLoaderInfo.height; //trace(Image.imgBreedte,Image.imgBreedte,Image.imgHoogte,Image.imgHoogt e) addChild(ldr); }//end completeHandler //--- i o E r r o r H a n d l e r --- private function ioErrorHandler(e:IOErrorEvent):void { addChild(new Pagina404(Image +url+ niet gevonden.)); }//end ioErrorHandler }//end CLASS }//end PACKAGE /code Regards Cor -Original
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Hi All, I went ahead and zipped it up in a folder and put it on my server if anyone else would like to enjoy this script as much as I have. Blew my mind on what it did for me. But I may be easily impressed. :) ***Reminder: These files are AS2 http://designdrumm.com/martijndevisser.zip Another good one is PreloadAssetManager.as, but I am not sure who makes that one. It is a little more technical I think than ImageLoader. http://designdrumm.com/gs.zip This has PreloadAsset.as and PreloadAssetManager.as Have fun! :) Best, Karl On Sep 18, 2010, at 6:09 AM, Karl DeSaulniers wrote: There you go. GL Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
I guess gs = Grant Skinner He makes awesome tools like TimeLineMax and TweenMax Best, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:24 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Hi All, I went ahead and zipped it up in a folder and put it on my server if anyone else would like to enjoy this script as much as I have. Blew my mind on what it did for me. But I may be easily impressed. :) ***Reminder: These files are AS2 http://designdrumm.com/martijndevisser.zip Another good one is PreloadAssetManager.as, but I am not sure who makes that one. It is a little more technical I think than ImageLoader. http://designdrumm.com/gs.zip This has PreloadAsset.as and PreloadAssetManager.as Have fun! :) Best, Karl On Sep 18, 2010, at 6:09 AM, Karl DeSaulniers wrote: There you go. GL Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Ahh yes. Thank you. I should have at least guessed that. :( Karl On Sep 18, 2010, at 6:29 AM, Cor wrote: I guess gs = Grant Skinner He makes awesome tools like TimeLineMax and TweenMax Best, Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:24 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Hi All, I went ahead and zipped it up in a folder and put it on my server if anyone else would like to enjoy this script as much as I have. Blew my mind on what it did for me. But I may be easily impressed. :) ***Reminder: These files are AS2 http://designdrumm.com/martijndevisser.zip Another good one is PreloadAssetManager.as, but I am not sure who makes that one. It is a little more technical I think than ImageLoader. http://designdrumm.com/gs.zip This has PreloadAsset.as and PreloadAssetManager.as Have fun! :) Best, Karl On Sep 18, 2010, at 6:09 AM, Karl DeSaulniers wrote: There you go. GL Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
grant skinner didn't make the greensock stuff. credit for that goes to Jack Doyle :) On 18 September 2010 13:29, Cor c...@chello.nl wrote: TimeLineMax ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Yep, I think he is right. I think the gs actually stands for greensock. : / The credits are still in the files for anyone to see. Best, Karl On Sep 18, 2010, at 6:48 AM, tom rhodes wrote: grant skinner didn't make the greensock stuff. credit for that goes to Jack Doyle :) On 18 September 2010 13:29, Cor c...@chello.nl wrote: TimeLineMax ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
@Cor, Not sure if this is the same script, but this might be a close one. I do not know as3, but I believe this is an AS3 version. http://code.google.com/p/svgweb/source/browse/trunk/src/org/svgweb/ utils/ImageLoader.as?r=931 Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Thanks again Karl!!! This is indeed AS3 and has some beter approach then mine. Regards, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 14:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps @Cor, Not sure if this is the same script, but this might be a close one. I do not know as3, but I believe this is an AS3 version. http://code.google.com/p/svgweb/source/browse/trunk/src/org/svgweb/ utils/ImageLoader.as?r=931 Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps
Good to hear. Pay it forward. :) Best, Karl On Sep 18, 2010, at 7:08 AM, Cor wrote: Thanks again Karl!!! This is indeed AS3 and has some beter approach then mine. Regards, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 14:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps @Cor, Not sure if this is the same script, but this might be a close one. I do not know as3, but I believe this is an AS3 version. http://code.google.com/p/svgweb/source/browse/trunk/src/org/svgweb/ utils/ImageLoader.as?r=931 Karl On Sep 18, 2010, at 6:05 AM, Cor wrote: Oh know I see. And it is AS2!!! Can you help me to the other one?? Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: zaterdag 18 september 2010 13:02 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps That one is actually by jeroenwijering. But the one I have is from martijndevisser sry. Best, Karl On Sep 18, 2010, at 5:14 AM, Cor wrote: And where can I download THIS ImageLoader.as Regards Cor -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: maandag 13 september 2010 2:48 To: Flash Coders List Subject: Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps Martijndevisser - ImageLoader.as With this you can load the images as they scroll. if you will. :) Very smooth and memory efficient that I have seen. Best, Karl On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote: found this method quite interesting: http://insideria.com/2010/08/ advanced-blitting-bitmap-scrol.html not too sure it applies to mobile, but might help... On 12 Sep 2010, at 20:58, gamera wrote: make a benchmark and find out. On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote: What is the fastest way to animate a series of bitmaps (say 20 frames). Here's a couple of ideas: A single big image behind a frame sized mask, move it one frame onEnterFrame. A series of memory cached Bitmap objs, swap them using addChild/ removeChild (or set visible?) onEnterFrame. A series of memory cached BitmapData objs swap them by resetting bmp.bitmapData onEnterFrame. Anything faster is nice too - particularly on mobile. Thanks! Kevin N. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/09/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl
RE: [Flashcoders] Best (fastest/memory efficient) way to animatebitmaps
I guess gs = Grant Skinner He makes awesome tools like TimeLineMax and TweenMax Credit where credit is due, Grant Skinner is pretty awesome, but Jack Doyle is the author of TimelineMax, TweenMax, Tweenlite, TweenNano, etc. - not Grant Skinner. Jason Merrill Instructional Technology Architect Bank of America Global Learning tweets @ jmerrill_2001 Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available to Bank of America associates). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Best (fastest/memory efficient) way to animatebitmaps
PPP, you are so right!!! As always... Thanks for correcting me. Groeten, Cor van Dooren www.codobyte.com -- There are only 10 types of people in the world: Those who understand binary and those who don't. -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill, Jason Sent: zaterdag 18 september 2010 15:19 To: Flash Coders List Subject: RE: [Flashcoders] Best (fastest/memory efficient) way to animatebitmaps I guess gs = Grant Skinner He makes awesome tools like TimeLineMax and TweenMax Credit where credit is due, Grant Skinner is pretty awesome, but Jack Doyle is the author of TimelineMax, TweenMax, Tweenlite, TweenNano, etc. - not Grant Skinner. Jason Merrill Instructional Technology Architect Bank of America Global Learning tweets @ jmerrill_2001 Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available to Bank of America associates). ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Geen virus gevonden in het binnenkomende-bericht. Gecontroleerd door AVG - www.avg.com Versie: 9.0.851 / Virusdatabase: 271.1.1/3125 - datum van uitgifte: 09/17/10 20:34:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders