Changing displayState and listening for fullScreen events
The Flex snippet below listens for fullscreen events so that you can react and change layout, or whatever, when changing screen modes. One subtle tidbit to remember is that to set up the listeners you have to wait for applicationComplete. If you use creationComplete you’ll get a runtime error.
| view source |
Note: I got most of this code off of some other tutorial and modified it. Now I don’t know where the source came from. If it’s you then please comment so that I can give you some credit.
Addendum: In the comments Jared was nice enough to point out the entry at FlexExamples.com that was the inspiration for this post.
If something here has proved valuable to you then feel free to drop a couple of bucks in the tip-jar.






