I'm also attempting to do this. Seemingly, the above link has expired.
I have a game written in mxml and as3. The HUD and menus are MXML components. I'd like to keep them that way to save time on implementation; and would like to use Starling for the animations and scene transitions in the game.
Is there a way to establish communication between spark-or-MXML components and starling?
1.) on applicationComplete of an AIR WindowedApplication:
_starling = new Starling(Game, stage);
2.) inside the Game class, dispatch an event and have it handled in the WindowedApplication.
3.) in the WindowedApplication, have a reference to functions inside the Game() class.
For some reason, I can't get this to work. Is there ever an instance of Game()? If not, is there a work-around to achieve the same results?