# Loaded swf full screen not parent swf

**URL:** <https://forum.kirupa.com/t/loaded-swf-full-screen-not-parent-swf/288818>\
**Category:** Uncategorized\
**Created:** [May 21, 2009, 11:36am UTC](https://forum.kirupa.com/t/loaded-swf-full-screen-not-parent-swf/288818 "2009-05-21T11:36:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noodleoodle](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@noodleoodle](https://forum.kirupa.com/u/noodleoodle)\
**Post date:** [May 21, 2009, 11:36am UTC](https://forum.kirupa.com/t/loaded-swf-full-screen-not-parent-swf/288818/1 "2009-05-21T11:36:54Z")

</div>

Hi all,

I have an flv player swf with a full screen button included. Works fine when it is used on it’s own. My intention is to load this player swf into another (main) movie. When I do this, the full screen button in the flv player swf, causes the the main swf to go full screen. I only want the flv player swf to go full screen. Can this be achieved.

Thanks so much.

This is the code for the full screen button.

fullscreen.onRelease = function() {  
toggleFullScreen();  
}

Stage.scaleMode=“showAll”;  
function toggleFullScreen(){  
if(Stage[“displayState”]==“normal”){  
Stage[“displayState”]=“fullScreen”;  
}else{  
Stage[“displayState”]=“normal”;  
}  
}  
var resizeListener:Object = new Object();  
resizeListener.onResize = function () {  
toggleFullScreenButton.\_x=Stage.width/2;  
toggleFullScreenButton.\_y=Stage.height/2;  
}  
Stage.addListener(resizeListener);
