# Fullscreen Video

**URL:** <https://forum.kirupa.com/t/fullscreen-video/261470>\
**Category:** Uncategorized\
**Created:** [May 27, 2008, 11:12pm UTC](https://forum.kirupa.com/t/fullscreen-video/261470 "2008-05-27T23:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpgenius](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cpgenius/32/854_2.png) [@cpgenius](https://forum.kirupa.com/u/cpgenius)\
**Post date:** [May 27, 2008, 11:12pm UTC](https://forum.kirupa.com/t/fullscreen-video/261470/1 "2008-05-27T23:12:32Z")

</div>

Maybe I’m delusional, but I have been searching over and over for clear, simple way in CS3 to play video full-screen in the browser window and have not found anything remotely helpful.

I understand there is the 100% HTML option in the publishing settings, but as far as I know, that won’t stretch a video to the browser’s width & height.

How do I display video playing in full-screen IN the browser window – and not the common esc/full-screen take over seen here [http://www.bezzmedia.com/swfspot/tutorials/intermediate/True\_Fullscreen\_Flash\_Mode](http://www.bezzmedia.com/swfspot/tutorials/intermediate/True_Fullscreen_Flash_Mode)

Thanks!

---

<div class="post-metadata">

**Author:** ![dail](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dail](https://forum.kirupa.com/u/dail)\
**Post date:** [May 29, 2008, 3:19am UTC](https://forum.kirupa.com/t/fullscreen-video/261470/2 "2008-05-29T03:19:47Z")

</div>

Try this, Where the “vid.x” etc will match the instance name of your video instance.

fullScreenBtn.addEventListener(MouseEvent.MOUSE\_UP,goFullScreen);

```auto
private function goFullScreen(event:MouseEvent):void {
			var scalingRect:Rectangle = new Rectangle(vid.x, vid.y, vid.width, vid.height);
			stage["fullScreenSourceRect"] = scalingRect;
			if (stage.displayState == StageDisplayState.NORMAL) {
				stage.displayState = StageDisplayState.FULL_SCREEN;
			} else {
				stage.displayState = StageDisplayState.NORMAL;
			}
		}

```
