I have some code in the first frame of my movie. It loads a streaming video using netstream (fl_NS) and displays it in fl_Vid.
I want the user to be able to click a button to make the video fullscreen then press a keyboard key to make the video back to the small view - which almost works. I can make the video fullscreen and make the video shrink back down. Unfortunately, the last frame of the enlarged video is stuck in the background (on top of the HUD).
Here’s the code I’m using to make the video no longer full screen.
case Keyboard.SPACE:
event.preventDefault();
removeChild(fl_Vid);
var fl_Vid:Video = new Video(720,405);
fl_Vid.attachNetStream(fl_NS);
addChild(fl_Vid);
break;
Thanks for any help you can give.