# Full screen video

**URL:** <https://forum.kirupa.com/t/full-screen-video/295566>\
**Category:** Uncategorized\
**Created:** [September 1, 2009, 1:14pm UTC](https://forum.kirupa.com/t/full-screen-video/295566 "2009-09-01T13:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snehansolomon](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@snehansolomon](https://forum.kirupa.com/u/snehansolomon)\
**Post date:** [September 1, 2009, 1:14pm UTC](https://forum.kirupa.com/t/full-screen-video/295566/1 "2009-09-01T13:14:53Z")

</div>

hi guys…

i am tryin to make a video player function that goes fullscreen… and i am using the following code…

on(press)  
{  
if (Stage[“displayState”] == “normal”)  
{  
Stage[“fullScreenSourceRect”] = new Rectangle(0,0,\_root.videoScreen.\_width,\_root.videoScreen.height);  
Stage[“displayState”] = “fullScreen”;  
}  
else  
{  
Stage[“displayState”] = “normal”;  
}  
}

but when i use this code… the whole stage goes full screen… if anybody could help me telling me where am goin wrong it will be very helpful…

thanks in advace…

snehan
