if ( myArrayCollection)
callLater(checkArrayCollection);

This might also help u out, callLater is a inbuilt function.

-- 
Regards,
Paresh M. More
Senior Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com

On Tue, Apr 14, 2009 at 7:25 PM, Gregor Kiddie <gkid...@inpses.co.uk> wrote:

>
>
>  The array collection dispatches a CollectionEvent when the Array
> Collection is filled in…
>
> http://livedocs.adobe.com/flex/3/langref/mx/events/CollectionEvent.html
>
> Just listen for that event when you create the ArrayCollection and have the
> function you wish to call as the handler.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:       01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>   ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *sailorsea21
> *Sent:* 14 April 2009 14:51
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How can I create an event that calls a function?
>
>
>
>
>
>
>  Hi everyone,
> How can I create an event that calls a function once an ArrayCollection is
> filled?
>
> This is what I'm using at the moment but I would like to avoid setTimeout:
>
> public function checkArrayCollection():void
> {
> if(myArrayCollection)
> {
>
> }
> else
> {
> setTimeout(checkArrayCollection, 200);
> }
> }
>
>  
>

Reply via email to