Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-26-2005, 07:47 PM   #1
toddclare
wandering aimlessly
 
Join Date: Apr 2004
Location: Texas
Posts: 47
Default too many Loader instances? number of component limit?

I'm running into a problem with what looks like Flash's inability to handle the number of component instances I have, and was wondering if anyone has any ideas?

I've got a swf that reads a list of (jpg) files from XML and creates a loder component or each of them. Once created, it calls load() on each:

ActionScript Code:
for (var i:Number = 0; i < __paths.length; i++) {    //create a loader component       __topDepth = this.getNextHighestDepth();       createClassObject(Loader, "view"+ i, __topDepth);       this["view" + i].move(0,0);       this["view" + i].addEventListener("progress", this); } for (var i:Number = 0; i < __paths.length; i++) {       this["view" + i].load(__paths[i]); }

Once all of them are done loading, I set them to a specific size and tell them to scaleContent, so that it'll display the whole image:

ActionScript Code:
for (var i:Number = 0; i < __paths.length; i++) {    this["view" + i].scaleContent = true;    this["view" + i].setSize(__width, __height); }

Problem is, when I run it, if I send it, say 24 image paths, all is well. If I send it 84, then about the last 1/2 do not seems to obey the setSize, and they don't seem to move to 0,0 either.

It seems odd to me that a generic code loop would generate different behavior on different loop intervals. Am I running into some limit of Flash for the number of components allowed or something?

Thanks, and I can provide files, swfs, etc. if needed.

-- TC
toddclare is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:16 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.