If you’re trying to develop a flex app that can go fullscreen (allowFullScreen) you’ll get an error in Flex Builder when you try and run code that launches fullscreen mode.
The issue is that allowing fullscreen is set as a param in the code of that embeds the SWF in it’s HTML page not in MXML or ActionScript. Here’s how to use swfobject instead of Adobe’s default AC_OET.js so that Flex Builder’s generated HTML allows fullscreen during debugging.
Download swfobject to your Flex Builder project’s ‘html-template’ directory (unzipping it so swfobject.js is in that folder). Then change index.template.html to the following:
${application}
This text is replaced by the Flash movie.
That’s it! Now when you debug from within Flex Builder you can try out your fullscreen code.