[Flashcoders] Is this error prone? [loading multiple images]
I'm wondering if I can use a for loop to create local Loader objects, assign listeners to their LoaderInfo objects without overwriting any of them and still be able to clean up after. Say I have the following inside a function body var img:Loader = new Loader(); img.contentLoaderInfo.addEventListener(Event.COMPLETE, onThumb, false, 0, true); img.load(new URLRequest("someImage.jpg")); and the following handler private function onThumb(e:Event):void { var loader:Loader = Loader( LoaderInfo(e.target).loader ); loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onThumb); var thumbNail:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData); thumbNail.x = (itemWidth - thumbNail.width) / 2; addChild(thumbNail); } Will the handler work its way back to the Loader that was created temporarily and remove a listener from it? Is there a better way to using throw away loaders? -- --Joel Stransky stranskydesign.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 Loader failing under 10,0,22,87
This problem appears to be related to a bug in the Array method "forEach" which I have posted in a separate thread. Reading through some archives on other forums, it looks like there are/were some known issues with the Loader object getting garbage collected if no instance of it were on stage. I changed my model so it was added to the display list before loading, but the problem persisted. What I found when looking at both ProgressEvent.PROGRESS and Event.COMPLETE was that all of the bytes would get loaded, but the COMPLETE event would never fire. I don't entirely have my head around what is going on, but at least I've fixed the problem. Andrew Sinning wrote: Are there known issues with player 10,0,22,87 with the Loader class failing when there are multiple Loader children in the display list at the same time?I had a prototype working just fine under Windows with an older plugin, but after updating the plugin only one Loader will complete at a time. I'm also seeing the problem under FF and Safari on my Mac, both of which have 10,0,22,87 installed. The user gets to choose which images get loaded. If I refresh the movie and choose a different image, each individual image will load. But if I have one Loader displayed and then choose a 2nd image to get displayed next to it, it won't load. If I remove the first Loader before selecting a 2nd one then the 2nd one seems to work just fine, but even doing this it eventually fails. I guess the next step is to install a older plugin to see if that fixes it Thanks! ___ 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
Re: [Flashcoders] Error #1107 in player 10,0,22,87
http://bugs.adobe.com/jira/ Andrew Sinning wrote: How do I report this bug? After updating to player 10,0,22,87 (both the debug player and the standard player), I am getting the following error when calling the built-in "forEach" method on an array. It doesn't happen every time, but it does happen consistently. VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds. at Array$/_forEach() I'm not sure why I was using it in the first place, as the syntax of "for each" is easier to read. I just changed to that and the problem is solved. ___ 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] Error #1107 in player 10,0,22,87
How do I report this bug? After updating to player 10,0,22,87 (both the debug player and the standard player), I am getting the following error when calling the built-in "forEach" method on an array. It doesn't happen every time, but it does happen consistently. VerifyError: Error #1107: The ABC data is corrupt, attempt to read out of bounds. at Array$/_forEach() I'm not sure why I was using it in the first place, as the syntax of "for each" is easier to read. I just changed to that and the problem is solved. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] GIF -IMAGE LOADING
Hey there Yuva, I would suggest doing a google for "mc_tween2.as" or "flash tweening" and look for a link with the mc_tween2 in it. You can tween your MCs with this #include file. Not to hard to get a hold of how to use and is in AS2. HTH Karl DeSaulniers Design Drumm http://designdrumm.com On Jul 7, 2009, at 1:46 AM, yuva rani wrote: Hi All, For my project i need load GIF Animated GIF's from Xml and want to show in SLIDESHOW.. I' ve used Timer for loading but i'm not able to make fade ON/OFF one by one.. as like in AS2.. I've try with SPRite still it is not worked out.. Thanks! For any one help me! bye Yuva ___ 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