actionscript 3 - How do I ignore a Flash component's ADDED_TO_STAGE event during authoring time? -
I created a UIComponent in AS3. When I drag it to the stage during authoring time, the event ADDED_TO_STAGE starts to fire.
I have an event handler, but this is actually to act on the runtime only, when I'm leaving the component on the platform to design the layout. Is there a way to see if the component "is running" in "SDF"?
Actually, I do not want ADDED_TO_STAGE to do anything on the event handler design time.
The CS3 component checks the following types:
Secure function Check live preview (): Boolean {if (parent == faucet) {return false; } Var className: string; Try {className = getQualifiedClassName (parent); } Hold (e: error) {} return (classname == "fl.livepreview :: LivePreviewParent"); }
You should allow it to apply a different behavior by checking it in your ADDED_TO_STAGE
handler.
Comments
Post a Comment