Thanks Pedro
So is it possible to define an Image Array without a repeater? I'd
like to run through 64 Images using:
for each (var img:Image in ImageArray)
{
... etc
}
Back to google.
Tried this but it failed:
In Model.as
public var a_red:Array=new Array();
then later:
Model.getInstance().a_red[1].source=Model.getInstance().red_source;
where red_source is a png image.
for (var i:int=0;i<64;i++)
{
Model.getInstance().a_red.push(Model.getInstance().red);
}
then:
trace("Red I
It works - please ignore the previous post. Wow, the ability to push
components into arrays like this opens up so many possibilities -
especially when working with flex frameworks. I find it strange the
documentation doesn't highlight this feature - otherwise I missed it.
Thanks again!
s.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of smitade
> Sent: Thursday, February 26, 2009 9:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Define repeaters at runtime
>
>
> It works - please ignore the previous post. Wow, the ability to push
> co
1 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Define repeaters at runtime
--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Gordon
Smith wrote:
>
> So that the doc team understands... What is it that you found
surprising? That an Array can hold an
If you are adding the images to some container , you can get it as
var ImageArray:Array = yourContainer.getChildren();
Subeesh
http://subeesh.co.nr
, 2009 9:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Define repeaters at runtime
It works - please ignore the previous post. Wow, the ability to push
components into arrays like this opens up so many possibilities -
especially when working with flex frameworks. I find it strange
7 matches
Mail list logo