[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
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.

[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
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

[flexcoders] Re: Define repeaters at runtime

2009-02-26 Thread smitade
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!

[flexcoders] Re: Define repeaters at runtime

2009-02-27 Thread smitade
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

RE: [flexcoders] Re: Define repeaters at runtime

2009-03-09 Thread Gordon Smith
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

Re: [flexcoders] Re: Define repeaters at runtime

2009-02-27 Thread subeesh a
If you are adding the images to some container , you can get it as var ImageArray:Array = yourContainer.getChildren(); Subeesh http://subeesh.co.nr

RE: [flexcoders] Re: Define repeaters at runtime

2009-02-27 Thread Gordon Smith
, 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