Thanks Gerry,

I have got the values this way, but the next problem is that I would like to
handle this in my Image class (which is the loader) but I can't seem to get
to these values from the parent class.
I tried it with public var but somewhere they get lost??


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gerry
Sent: zaterdag 25 juli 2009 14:42
To: Flash Coders List
Subject: Re: [Flashcoders] Image loader problem

Try...
loader.content.width
or
loader.contentLoaderInfo.width

To solve your issue you might write the code so that the next image in  
the sequence doesn't load
or start to load until the previous is complete.
or
You could bulk load the images and stuff them in an array then use a  
loop to run through
the array to get the image and it's properties so that you can align  
everything the way you want.

-Gerry

On Jul 25, 2009, at 6:35 AM, Cor wrote:

> Hi list,
>
> I am loading a lot of images dynamically from xml.
> Therefore I use a class file to handle the loading.
> When loaded I want to position them besides each other.
> Every image has a different width/height.
> So I want to grab the width from the first loaded and use that to  
> set the .x
> from the next image.
>
> When trace(loader.width) in the class file it return the correct size,
> BUT in the calling class trace(image.width) every image returns a 0  
> as.
>
> Any ideas how to handle this?
>
> Another odd thing is that the images store in a different order  
> every time
> they get loaded?
>
> TIA
> Cor
>
>
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to