[flexcoders] Re: what is a reliable way to know when your component is re-displayed

2008-08-13 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Most folks use the Viewstack's change event. You don't want to wait until they are displayed to update them, you want to do it just before, which is when the viewstack is changing. I've found that sometimes in this

[flexcoders] Re: what is a reliable way to know when your component is re-displayed

2008-08-13 Thread andrew.0000
So far I have been able to rely on the implicit set thing(thing : Thing) as the init for a given component. Seems a strange thing to rely on though. Would like some sort of onPaint or onDisplay event. Keeping track of what is null and what isn't is a pain sometimes.

RE: [flexcoders] Re: what is a reliable way to know when your component is re-displayed

2008-08-13 Thread Alex Harui
That's because you don't really paint or display in Flash. You set up your display list and until you change it, that's what the player will display. You can try capturing show/hide events, but knowing what can make you visible (viewstack change) should be most efficient