This content has been marked as final. Show 3 replies
However it appears you are in AS3. You can have a document class with the properties window or import the document class and instantiate. At this point best I can differentiate between the two is the latter allows passing parameters to the constructor.
In any case, you should have the document class instantiate the navigation classes and add to the display structure you have designed.
Thanks Lon...its all starting to make sense..(finally:)) At this point I'm thinking I should start to embrace the eventDispatcher. Since I want my buttons to be encapuslated with the panels object but control objects instantiated in main. I guess writting the eventHander functions in the panel class doesn't really make much since the objects they will be manipulating will be objects instantiated in main. I'm thinking now to have the buttons trigger an eventDispatcher and have the handler functions in main listen for them. If I'm understanding everything correctly this seems to be at least one way to do it.
I was kicking this around a few weeks back. Here are the scraps of code I had. However got switched back to Flex so ... Actually I was doing this in Flex as an Actionscript project. But it should kick in Flash CS3.