Movieclip in EaselJS container to trigger main timeline
Hello
I am writing a game which has a single frame main timeline. On this, there is an easelJS container which has children added to it. The children are formed of a movieclip which has an animating character within it. - What I am struggling with is:
I need to find a way that the movieclip can trigger changes in the main timeline. For instance, at present I am toggling a variable in the main timeline by detecting if the child movieclip is at a particular frame. But this feels unreliable, what I want to do is to get the movieclip timeline to toggle the property of a child by stopping at a frame.
The game loop is 'tick' based and runs through each child to time various events, but I want the child to pass back to the game loop a status change in a property. Sorry, this isn't as clear asit could be.
Any help appreciated. Thank you.
