[flexcoders] Re: Complete event error for Image control within Repeater

2008-10-03 Thread Marielle Lange
Humm, correction on my previous post. Listening to an image component should be possible. This: http://livedocs.adobe.com/flex/3/langref/mx/controls/Image.html#eventSummary confirms that mx.controls. Image components dispatch a creationComplete event. Livedocs

[flexcoders] Re: Complete event error for Image control within Repeater

2008-10-03 Thread Marielle Lange
Check out this presentation: http://www.ananth.info/files/54923-48191/FlexEventDataManagement10April2007.ppt slide 10 * Every object in the display list can trace its class inheritance to DisplayObject class * The DisplayObject class inherits from EventDispatcher * EventDispatcher is the base

[flexcoders] Re: Complete event error for Image control within Repeater

2008-10-03 Thread gwangdesign
Hi guys, Thanks for the replies. The code below actually works. In my AS version, I did import all the classes including mx.events.FlexEvent, etc. For events, I use complete on Image as opposed to other events is that I am interested in when the SWFLoader (parent class of Image) completes

[flexcoders] Re: Complete event error for Image control within Repeater

2008-10-03 Thread gwangdesign
I figured it out. It has to do with how Repeater initializes it's inner components. I guess Flex doesn't know the actual type of the innercomponent until repeatEnd gets fired. Please see the code below. Here init() is the callback for my component's creationComplete event: private function

[flexcoders] Re: Complete event error for Image control within Repeater

2008-10-02 Thread Amy
--- In flexcoders@yahoogroups.com, gwangdesign [EMAIL PROTECTED] wrote: I am loading 50-ish something images using an Image control wrapped in a repeater wrapped in a VBox component. I want to do some stuff once I know the full dimensions of the VBox, which is when all the images have been