I have a parent SWF (Parent) that handles user navigation between multiple children SWFs (Child_1, Child_2, Child_3).
How do I add event listeners to the navigation buttons on the children SWFs so that the user can move laterally between Child_1, Child_2 and Child_3?
I can think of two options but can't get either one to work:
1) The parent SWF sets up the event listeners when it loads a child. So, I use a loader on Parent to load Child_1 and in Parent add eventlisteners to Child_1.myNavigationform.myButton.
The problem here is that the Parent is only handing the loader instance and I can't think of how it would drill down to the individual objects within Child_1.
2) Child_1 adds the event listeners to its own objects. This just reverses the problem. Child_1 has no problem accessing its own buttons but when a user clicks them it has no way of accessing methods on parent so that Child_2 can be loaded.
What's the solution here? I'm sure this is done frequently I just haven't seen anything out there that explains how to handle this.
Thank you.