# Flash Video Drawing / Removing

**URL:** https://forum.kirupa.com/t/flash-video-drawing-removing/316677
**Category:** flash
**Created:** [November 29, 2010, 8:22pm UTC](https://forum.kirupa.com/t/flash-video-drawing-removing/316677 "2010-11-29T20:22:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![NickAllain](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NickAllain](https://forum.kirupa.com/u/NickAllain)
#### Post date: [November 29, 2010, 8:22pm UTC](https://forum.kirupa.com/t/flash-video-drawing-removing/316677/1 "2010-11-29T20:22:02Z")

</div>

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.

```auto
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.
