# Working with a Designers FLA, converting to AS3

**URL:** <https://forum.kirupa.com/t/working-with-a-designers-fla-converting-to-as3/248163>\
**Category:** flash\
**Created:** [January 4, 2008, 2:53pm UTC](https://forum.kirupa.com/t/working-with-a-designers-fla-converting-to-as3/248163 "2008-01-04T14:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1Riptide](https://avatars.discourse-cdn.com/v4/letter/1/a698b9/32.png) [@1Riptide](https://forum.kirupa.com/u/1Riptide)\
**Post date:** [January 4, 2008, 2:53pm UTC](https://forum.kirupa.com/t/working-with-a-designers-fla-converting-to-as3/248163/1 "2008-01-04T14:53:17Z")

</div>

[COLOR=black][FONT=Arial]Hi all…[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]I am converting a simple WhiteBoard (drawing) application from AS2/1 to AS3, and cannot find an easy way to tell the document class (or otherwise) when certain MovieClip elements on the stage have finished playing. Most of the examples I find seem to assume that no one uses a timeline to animate a GUI anymore, which is frustrating when converting AS1 style gui’s to AS3.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Trying to use Class members to reference MoviClip objects on the stage that do not exist when a class instance is created has become a big problem for me at this point.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]For example, consider a document class “WhiteBoard.as” that has a single child element “main\_mc”. This child element has many nested movieclips…some act as buttons and/or menus (with thier own custom classes), but do not actually exist until say, frame 20 of “main\_mc” (the container) where they are animated into existence. [/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]I need to set the state of these buttons ONLY when the “main\_mc” has loaded completely.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]My question is this:[/FONT][/COLOR]  
[COLOR=black][FONT=Arial]What is the best way to notify my document class when the “main\_mc” has loaded completely?[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]I have tried (or am in the process of trying):[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]1) [/FONT][/COLOR][COLOR=black][FONT=Arial]Creating a custom event that can be broadcast from frame 20 of the container mc, and likewise adding an event listener to the document class to handle the timeline complete event.[/FONT][/COLOR]  
[COLOR=black][FONT=Verdana]2) [/FONT][/COLOR][COLOR=black][FONT=Arial]Calling a function from the timeline that resides inside the document class that can handle further initialization of nested mc’s when the animation is complete.[/FONT][/COLOR]
