Flex Flash Action Script Form Events
Posted
by peiklk
on Stack Overflow
See other posts from Stack Overflow
or by peiklk
Published on 2010-05-12T14:27:07Z
Indexed on
2010/05/15
0:34 UTC
Read the original article
Hit count: 580
Doing some development in Flash Builder 4 using Action Script 3.0. I'm trying to have some code run each time the form is displayed. The form is not always recreated, but sometimes hidden and reused. Visual Basic used to have an Activate event that does similar to what I want.
I tried Render, but that fires every time the form changes (via click, text-edit, etc.)
We tried the FlexEvent.ADD, but it only fires when the form is first created, same as creation_complete.
Is there a good resource that shows the form "life cycle" and all the events and when they are fired and in what order?
TIA!
NOTE: I'm trying to get our forms to close when the ESC is pressed.
© Stack Overflow or respective owner