RE: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Cor
Thx Muzak, but this is about IE.
Flash can load up to maximum 4 items at once.
 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 14 februari 2008 2:08
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Multiple moviecliploaders

Guess again:
http://www.google.com/search?hl=enq=windows+simultaneous+downloadsmeta=
http://support.microsoft.com/kb/282402

- Original Message -
From: Cor [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 6:17 PM
Subject: Re: [Flashcoders] Multiple moviecliploaders


I tkink that 4 object at a time
 
  EECOLOR [EMAIL PROTECTED] schreef:
 If I remember well the MovieClip loader can only load 2 images
 simultaniously. This also might be a browser restriction.
 
 
 Greetz Erik

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Muzak

Then I guess what Jason posted makes sense.. HTTP1.0 - 4 requests.


- Original Message - 
From: Cor [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 3:03 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders



Thx Muzak, but this is about IE.
Flash can load up to maximum 4 items at once.



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Cor
M, maybe I did understand it incorrect?
Sorry, I am dutch... 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 14 februari 2008 15:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Multiple moviecliploaders

Then I guess what Jason posted makes sense.. HTTP1.0 - 4 requests.


- Original Message -
From: Cor [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 3:03 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders


 Thx Muzak, but this is about IE.
 Flash can load up to maximum 4 items at once.
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Glen Pike

Thought it was the Australians week to apologize? :)

Cor wrote:

M, maybe I did understand it incorrect?
Sorry, I am dutch... 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 14 februari 2008 15:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Multiple moviecliploaders

Then I guess what Jason posted makes sense.. HTTP1.0 - 4 requests.


- Original Message -
From: Cor [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 3:03 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders


  

Thx Muzak, but this is about IE.
Flash can load up to maximum 4 items at once.




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Muzak

Well from what I understand, this is not a Flash/IE/.. etc.. thing, but an 
OS/server thing, defined by an HTTP standard.
HTTP 1.1 Server - 2 simultaneous connections
HTTP 1.0 Server - 4 simultaneous connections

Muzak

- Original Message - 
From: Cor [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 4:02 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders



M, maybe I did understand it incorrect?
Sorry, I am dutch... 


-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 14 februari 2008 15:45
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Multiple moviecliploaders

Then I guess what Jason posted makes sense.. HTTP1.0 - 4 requests.


- Original Message -
From: Cor [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 3:03 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders



Thx Muzak, but this is about IE.
Flash can load up to maximum 4 items at once.





___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Multiple moviecliploaders

2008-02-14 Thread Cor
THANKS Muzak! 

-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Muzak
Verzonden: donderdag 14 februari 2008 17:18
Aan: Flash Coders List
Onderwerp: Re: [Flashcoders] Multiple moviecliploaders

Well from what I understand, this is not a Flash/IE/.. etc.. thing, but an
OS/server thing, defined by an HTTP standard.
HTTP 1.1 Server - 2 simultaneous connections HTTP 1.0 Server - 4
simultaneous connections

Muzak

- Original Message -
From: Cor [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Thursday, February 14, 2008 4:02 PM
Subject: RE: [Flashcoders] Multiple moviecliploaders


 M, maybe I did understand it incorrect?
 Sorry, I am dutch... 
 
 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Namens Muzak
 Verzonden: donderdag 14 februari 2008 15:45
 Aan: Flash Coders List
 Onderwerp: Re: [Flashcoders] Multiple moviecliploaders
 
 Then I guess what Jason posted makes sense.. HTTP1.0 - 4 requests.
 
 
 - Original Message -
 From: Cor [EMAIL PROTECTED]
 To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
 Sent: Thursday, February 14, 2008 3:03 PM
 Subject: RE: [Flashcoders] Multiple moviecliploaders
 
 
 Thx Muzak, but this is about IE.
 Flash can load up to maximum 4 items at once.
 
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.5/1278 - Release Date: 14-2-2008
10:28
 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Muzak
Never said I would ask users to change anything, just said that *I* have changed it, cos 2 simultaneous up/downloads doesn't cut it 
for me.

However, it's something to be aware of when loading multiple external assets 
into a Flash application, they'll be queued.

- Original Message - 
From: Martin Klasson [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 8:16 AM
Subject: Re: [Flashcoders] Multiple moviecliploaders



changing it on its own computer would not be of my taste,
since I am developing for users that has windows installed
at its default settings.

/ m


2008/2/13, Muzak [EMAIL PROTECTED]:


It's a Windows restriction, which can be manually changed in the registry
(or with some 3rd party tools).
Mine is set to 20 or something ;-)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Alistair Colling
I've written a simple class that loads multiple objects and triggers  
a function when all have downloaded. If you needed to trigger  
multiple sets of objects loading you could just create a new instance  
of the class. You need the loadObj class also.

Hope this help
Ali





//
//  LoadChecker

// this class is passed am array and calls a function when all of the  
objects in the array are loaded

//
//  Created by Alistair Colling on 2008-01-30.
//
// pass mcs to load and start loading

//  FLA CODE
//  import mc.LoadObj
//
//  import mc.LoadChecker
//  function completed(){   }
//  function percentLoad(pc:Number){};
//  this.createEmptyMovieClip(loader, 1);
//  var ob1:LoadObj = new LoadObj(Content/roseAnim.swf, loader);
//  var load_ar:Array = [ob1]
//		var myLoader:LoadChecker =  new LoadChecker(load_ar, completed,  
percentLoad);

//
//
//

import mc.*;
import mx.utils.Delegate;
//
class mc.LoadChecker {
private var allLoadedFn:Function;
private var progFn:Function;
public var itemsToLoad_ar:Array;

private var itemsLoaded:Array;
//total Bytes to load of all objects passed
private var totalBytes:Number;
private var totalLoaded:Number;

public function LoadChecker(a:Array, f:Function, pF:Function) {
trace(loadchecker! created:+a.toString());
totalBytes = 0;
totalLoaded = 0;
allLoadedFn = f;
progFn = pF;
itemsLoaded = new Array();
itemsToLoad_ar = a; 
for (var i = 0; iitemsToLoad_ar.length; i++) {
var arRef:Number = i;
var tempLoad:LoadObj = itemsToLoad_ar[arRef];
//array  contains custom objects taht contain url and 
mc vars
myLoader(tempLoad.targURL,tempLoad.targMC);
}
}
 private function myLoader(str:String, mc:MovieClip) {
//  trace(MY LOADER   loading file:+str+   mc:+mc);
var loadListener = new Object();
loadListener.onLoadInit = Delegate.create(this, mcLoaded);
loadListener.onLoadProgress = Delegate.create(this, 
loadProgress);
var mcLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
		//create holder inside of movie clip--remove this when finished  
lenor!!
		//var holder:MovieClip = mc.createEmptyMovieClip(holder,  
mc.getNextHighestDepth());

mcLoader.loadClip(str, mc);
}
//returns pos of mc in array
private function mcInAr(mc:MovieClip, ar:Array):Number{
var retNum:Number = undefined;
for (var i=0; iar.length; i++){
//trace(--CHECKING MC:+mc+  arrray 
MC:+ar[i].targMC);
if (mc == ar[i].targMC){
retNum = i;
}   

}
return retNum;
}   
	private function loadProgress(target:MovieClip, bytesLoaded:Number,  
bytesTotal:Number):Void {

var posInAr:Number = mcInAr(target, itemsToLoad_ar);
//add totalBytes up when first progress comes thru for each 
object
		//trace(load progress mc+target+ total bytes:+bytesTotal+ so  
far+bytesLoaded);

if (itemsToLoad_ar[posInAr].totalBytes==undefined){
itemsToLoad_ar[posInAr].totalBytes = bytesTotal;
totalBytes += bytesTotal;
//  trace(TOTAL BYTES UPDATED TO:+totalBytes);
}
itemsToLoad_ar[posInAr].bytesLoaded = bytesLoaded;
		///update total bytes loaded-- could think of a better way to code  
this so it doesnt  reset to 0

totalLoaded = 0;
for ( var i=0; iitemsToLoad_ar.length; i++ ) {
totalLoaded+= itemsToLoad_ar[i].bytesLoaded;
};
//  trace(total bytes loaded now:+totalLoaded);
calcPercent()

//calculate total % bytes loaded
}
	//triggers function that shows total percentage loaded-- could be  
extended to return an array of values to show individual fiels  
loading status

private function calcPercent() {
var pcLoaded:Number = Math.round((totalLoaded/totalBytes)*100);
//  trace(--- Total PERCENT NOW LOADED:+pcLoaded);  
progFn(pcLoaded);   
}

private function mcLoaded(mcl:MovieClip) {

Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Glen Pike

Look at QLOD Loader class - I think this lets you queue a load of clips.

http://www.helpqlodhelp.com/blog/index.html

http://www.helpqlodhelp.com/stuff/loaderclass/LoaderClass.doc.html

Allandt Bik-Elliott (Receptacle) wrote:

is there a good way of queueing the loading in flash?

my first guess would be to run some kind of while/for loop using 
movieClipLoader.onLoadInit to recursively call the function to load 
the next clip from an array but i don't know if that's a hack



On 13 Feb 2008, at 11:28, Muzak wrote:

Never said I would ask users to change anything, just said that *I* 
have changed it, cos 2 simultaneous up/downloads doesn't cut it for me.
However, it's something to be aware of when loading multiple external 
assets into a Flash application, they'll be queued.


- Original Message - From: Martin Klasson 
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 8:16 AM
Subject: Re: [Flashcoders] Multiple moviecliploaders



changing it on its own computer would not be of my taste,
since I am developing for users that has windows installed
at its default settings.

/ m


2008/2/13, Muzak [EMAIL PROTECTED]:


It's a Windows restriction, which can be manually changed in the 
registry

(or with some 3rd party tools).
Mine is set to 20 or something ;-)



___
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




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Allandt Bik-Elliott (Receptacle)

is there a good way of queueing the loading in flash?

my first guess would be to run some kind of while/for loop using  
movieClipLoader.onLoadInit to recursively call the function to load  
the next clip from an array but i don't know if that's a hack



On 13 Feb 2008, at 11:28, Muzak wrote:

Never said I would ask users to change anything, just said that *I*  
have changed it, cos 2 simultaneous up/downloads doesn't cut it for  
me.
However, it's something to be aware of when loading multiple  
external assets into a Flash application, they'll be queued.


- Original Message - From: Martin Klasson  
[EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 8:16 AM
Subject: Re: [Flashcoders] Multiple moviecliploaders



changing it on its own computer would not be of my taste,
since I am developing for users that has windows installed
at its default settings.

/ m


2008/2/13, Muzak [EMAIL PROTECTED]:


It's a Windows restriction, which can be manually changed in the  
registry

(or with some 3rd party tools).
Mine is set to 20 or something ;-)



___
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] Multiple moviecliploaders

2008-02-13 Thread Marcelo Wolfgang
Thanks for all the replies, and yes ... 2 is the hardcoded limit in 
simultaneous http streams unless you change it you better have this in 
mind, and it's because of it that I need to have a loding graph inside 
my mc ...


The main.hideMc(target._parent.loading_mc) did the trick for me

Thanks again

Marcelo Wolfgang
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Cor
I tkink that 4 object at a time

 EECOLOR [EMAIL PROTECTED] schreef:
If I remember well the MovieClip loader can only load 2 images
simultaniously. This also might be a browser restriction.


Greetz Erik


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Muzak

Guess again:
http://www.google.com/search?hl=enq=windows+simultaneous+downloadsmeta=
http://support.microsoft.com/kb/282402

- Original Message - 
From: Cor [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 6:17 PM
Subject: Re: [Flashcoders] Multiple moviecliploaders



I tkink that 4 object at a time

 EECOLOR [EMAIL PROTECTED] schreef:
If I remember well the MovieClip loader can only load 2 images
simultaniously. This also might be a browser restriction.


Greetz Erik


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-13 Thread Jason Van Cleave
I was certain I remember having to change this years ago to be able to
download more than 4 files in IE. Here is the page that references the limit
of 4 (2)

MaxConnectionsPerServer REG_DWORD (Default 2)
Sets the number of simultaneous requests to a single HTTP 1.1 Server

MaxConnectionsPer1_0Server REG_DWORD (Default 4)
Sets the number of simultaneous requests to a single HTTP 1.0 Server

http://support.microsoft.com/default.aspx?scid=KB;en-us;q183110

On Feb 13, 2008 8:07 PM, Muzak [EMAIL PROTECTED] wrote:

 Guess again:
 http://www.google.com/search?hl=enq=windows+simultaneous+downloadsmeta=
 http://support.microsoft.com/kb/282402

 - Original Message -
 From: Cor [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, February 13, 2008 6:17 PM
 Subject: Re: [Flashcoders] Multiple moviecliploaders


 I tkink that 4 object at a time
 
   EECOLOR [EMAIL PROTECTED] schreef:
  If I remember well the MovieClip loader can only load 2 images
  simultaniously. This also might be a browser restriction.
 
 
  Greetz Erik

 ___
 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] Multiple moviecliploaders

2008-02-12 Thread Muzak

It's a Windows restriction, which can be manually changed in the registry (or 
with some 3rd party tools).
Mine is set to 20 or something ;-)

- Original Message - 
From: EECOLOR [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 13, 2008 12:20 AM
Subject: Re: [Flashcoders] Multiple moviecliploaders



If I remember well the MovieClip loader can only load 2 images
simultaniously. This also might be a browser restriction.


Greetz Erik


On 2/12/08, Muzak [EMAIL PROTECTED] wrote:


Get rid of the nested function, avoid it at all times (IMO).


var img_mcl:MovieClipLoader;

function onLoadInit(t:MovieClip) {
main.hideMc(t);
}
function loadImage(imagePath, targetMc) {
var container_mc:MovieClip = targetMc.img_mc;
var loading_mc:MovieClip = targetMc.loading_mc;
img_mcl.loadClip(imagePath,container_mc);
}
img_mcl = new MovieClipLoader();
img_mcl.addListener(this);



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-12 Thread EECOLOR
If I remember well the MovieClip loader can only load 2 images
simultaniously. This also might be a browser restriction.


Greetz Erik


On 2/12/08, Muzak [EMAIL PROTECTED] wrote:

 Get rid of the nested function, avoid it at all times (IMO).


 var img_mcl:MovieClipLoader;

 function onLoadInit(t:MovieClip) {
 main.hideMc(t);
 }
 function loadImage(imagePath, targetMc) {
 var container_mc:MovieClip = targetMc.img_mc;
 var loading_mc:MovieClip = targetMc.loading_mc;
 img_mcl.loadClip(imagePath,container_mc);
 }
 img_mcl = new MovieClipLoader();
 img_mcl.addListener(this);


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-12 Thread strk
On Tue, Feb 12, 2008 at 04:18:20PM -0200, Marcelo Wolfgang wrote:
 Hi all,
 
 I'm using the movieClipLoader class to load 6 different images
 'simultaneous' but since it's the same object that got called every
 time the .onLoadInit on happens for the last call, does anyone has a
 clue how I can make this:
..
   mclListener.onLoadInit = function() {
   main.hideMc(loading_mc);
   };


onLoadInit takes an argument being the load target..

--strk;
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Multiple moviecliploaders

2008-02-12 Thread Marcelo Wolfgang
Hi all,

I'm using the movieClipLoader class to load 6 different images
'simultaneous' but since it's the same object that got called every
time the .onLoadInit on happens for the last call, does anyone has a
clue how I can make this:

function displayThumbs() {
for (i = 0; i  modelsArray.length; i++) {
var path:String = 
http://www.bottero.net/2008/images/modelos/s/ref;
+ modelsArray[i] + s.png;
loadImage(path,thumb_mc);
}
}
function loadImage(imagePath, targetMc) {
var container_mc:MovieClip = targetMc.img_mc;
var loading_mc:MovieClip = targetMc.loading_mc;
mclListener.onLoadInit = function() {
main.hideMc(loading_mc);
};
img_mcl.addListener(mclListener);
img_mcl.loadClip(imagePath,container_mc);
}

var mclListener:Object = new Object();
var img_mcl:MovieClipLoader = new MovieClipLoader();

work for multiple loadings at the same time ?

TIA
Marcelo Wolfgang
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-12 Thread Muzak

Get rid of the nested function, avoid it at all times (IMO).


var img_mcl:MovieClipLoader;

function onLoadInit(t:MovieClip) {
   main.hideMc(t);
}
function loadImage(imagePath, targetMc) {
var container_mc:MovieClip = targetMc.img_mc;
var loading_mc:MovieClip = targetMc.loading_mc;
img_mcl.loadClip(imagePath,container_mc);
}
img_mcl = new MovieClipLoader();
img_mcl.addListener(this);



- Original Message - 
From: Marcelo Wolfgang [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Tuesday, February 12, 2008 7:18 PM
Subject: [Flashcoders] Multiple moviecliploaders



Hi all,

I'm using the movieClipLoader class to load 6 different images
'simultaneous' but since it's the same object that got called every
time the .onLoadInit on happens for the last call, does anyone has a
clue how I can make this:

function displayThumbs() {
for (i = 0; i  modelsArray.length; i++) {
var path:String = http://www.bottero.net/2008/images/modelos/s/ref;
+ modelsArray[i] + s.png;
loadImage(path,thumb_mc);
}
}
function loadImage(imagePath, targetMc) {
var container_mc:MovieClip = targetMc.img_mc;
var loading_mc:MovieClip = targetMc.loading_mc;
mclListener.onLoadInit = function() {
main.hideMc(loading_mc);
};
img_mcl.addListener(mclListener);
img_mcl.loadClip(imagePath,container_mc);
}

var mclListener:Object = new Object();
var img_mcl:MovieClipLoader = new MovieClipLoader();

work for multiple loadings at the same time ?

TIA
Marcelo Wolfgang


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Multiple moviecliploaders

2008-02-12 Thread Martin Klasson
changing it on its own computer would not be of my taste,
since I am developing for users that has windows installed
at its default settings.

/ m


2008/2/13, Muzak [EMAIL PROTECTED]:

 It's a Windows restriction, which can be manually changed in the registry
 (or with some 3rd party tools).
 Mine is set to 20 or something ;-)

 - Original Message -
 From: EECOLOR [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, February 13, 2008 12:20 AM
 Subject: Re: [Flashcoders] Multiple moviecliploaders


  If I remember well the MovieClip loader can only load 2 images
  simultaniously. This also might be a browser restriction.
 
 
  Greetz Erik
 
 
  On 2/12/08, Muzak [EMAIL PROTECTED] wrote:
 
  Get rid of the nested function, avoid it at all times (IMO).
 
 
  var img_mcl:MovieClipLoader;
 
  function onLoadInit(t:MovieClip) {
  main.hideMc(t);
  }
  function loadImage(imagePath, targetMc) {
  var container_mc:MovieClip = targetMc.img_mc;
  var loading_mc:MovieClip = targetMc.loading_mc;
  img_mcl.loadClip(imagePath,container_mc);
  }
  img_mcl = new MovieClipLoader();
  img_mcl.addListener(this);
 

 ___
 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] Multiple moviecliploaders

2008-02-12 Thread Jason Van Cleave
I usually would break out the thumbs into their own class with a
MovieClipLoader for each but this may give you the same effect:

function displayThumbs()
{
for (i = 0; i  modelsArray.length; i++)
{
var img_mcl:MovieClipLoader = new MovieClipLoader();
img_mcl.addListener(this);
var path:String = http://www.bottero.net/2008/images/modelos/s/ref;
+ modelsArray[i] + s.png;
img_mcl.loadClip(path, thumb_mc.img_mc);
}
}
function onLoadInit(target:MovieClip)
{
main.hideMc(target._parent.loading_mc);

}

On Feb 12, 2008 10:13 PM, Muzak [EMAIL PROTECTED] wrote:

 It's a Windows restriction, which can be manually changed in the registry
 (or with some 3rd party tools).
 Mine is set to 20 or something ;-)

 - Original Message -
 From: EECOLOR [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, February 13, 2008 12:20 AM
 Subject: Re: [Flashcoders] Multiple moviecliploaders


  If I remember well the MovieClip loader can only load 2 images
  simultaniously. This also might be a browser restriction.
 
 
  Greetz Erik
 
 
  On 2/12/08, Muzak [EMAIL PROTECTED] wrote:
 
  Get rid of the nested function, avoid it at all times (IMO).
 
 
  var img_mcl:MovieClipLoader;
 
  function onLoadInit(t:MovieClip) {
  main.hideMc(t);
  }
  function loadImage(imagePath, targetMc) {
  var container_mc:MovieClip = targetMc.img_mc;
  var loading_mc:MovieClip = targetMc.loading_mc;
  img_mcl.loadClip(imagePath,container_mc);
  }
  img_mcl = new MovieClipLoader();
  img_mcl.addListener(this);
 

 ___
 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