cptnemo
January 24th, 2008, 06:56 AM
Hey all,
I have the following:
A document class, extending from a custom class, extending from MovieClip. In my document class, I assign a handler to the FullScreenEvent like so:
addEventListener(FullScreenEvent.FULL_SCREEN, function(e) { toggle_fullscreen(); });
Also, I've set up a SimpleButton to call that same function, toggle_fullscreen, when clicked.
Here's the catch:
When I click the button, my app goes fullscreen. When I press Esc, the app goes back to normal but the FullScreenEvent doesn't get fired, so I can't catch it to re-align the elements on my stage.
I've also tried to add the event listener to the stage object of my document class, but that doesn't work either.
Any ideas?
I have the following:
A document class, extending from a custom class, extending from MovieClip. In my document class, I assign a handler to the FullScreenEvent like so:
addEventListener(FullScreenEvent.FULL_SCREEN, function(e) { toggle_fullscreen(); });
Also, I've set up a SimpleButton to call that same function, toggle_fullscreen, when clicked.
Here's the catch:
When I click the button, my app goes fullscreen. When I press Esc, the app goes back to normal but the FullScreenEvent doesn't get fired, so I can't catch it to re-align the elements on my stage.
I've also tried to add the event listener to the stage object of my document class, but that doesn't work either.
Any ideas?