# Full screen issue on enter site

**URL:** <https://forum.kirupa.com/t/full-screen-issue-on-enter-site/314735>\
**Category:** flash\
**Created:** [October 7, 2010, 8:46am UTC](https://forum.kirupa.com/t/full-screen-issue-on-enter-site/314735 "2010-10-07T08:46:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Mo](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@J\_Mo](https://forum.kirupa.com/u/J_Mo)\
**Post date:** [October 7, 2010, 8:46am UTC](https://forum.kirupa.com/t/full-screen-issue-on-enter-site/314735/1 "2010-10-07T08:46:47Z")

</div>

Hi,

I am having trouble with an ‘enter site in full screen’ button.

I have a title screen on one frame which on a button click should advance to the next frame & set full screen.

Basically, when I test the movie it is fine, when I then test it live in a browser the movie loads but on button click doesn’t go to my next frame or fullscreen.

```auto
stop();

this.addEventListener(Event.ADDED_TO_STAGE, init);

function init(ev:Event):void {
	scripthold_mc.x = stage.stageWidth / 2;
	scripthold_mc.y = stage.stageHeight / 2;

	stage.addEventListener(Event.RESIZE, resizeListenerscript);
	//then in the resize handler:
}

	import com.greensock.*;
import com.greensock.easing.*;

function resizeListenerscript(Event) {
		scripthold_mc.x = stage.stageWidth / 2;
		scripthold_mc.y = stage.stageHeight / 2;
	}

scripthold_mc.enter_mc.addEventListener(MouseEvent.MOUSE_DOWN,
entersite);
scripthold_mc.enter_mc.buttonMode = true;

function setFullScreen1():void {
if (stage.displayState== "normal") {
stage.displayState="fullScreen";
stage.scaleMode = StageScaleMode.NO_SCALE; } else { stage.displayState="normal"; } }

function entersite(MouseEvent):void {
	TweenLite.to(scripthold_mc.tagline, 0.4, {alpha:0, y: -30, ease:Strong.easeOut});
	TweenLite.to(scripthold_mc.roberts, 0.4, {alpha:0, y: -50, ease:Strong.easeOut, onComplete: go});
	TweenLite.to(scripthold_mc.enter_mc, 0.4, {alpha: 
0,ease:Strong.easeOut});
	TweenLite.to(scripthold_mc.simply_mc, 0.4, {alpha: 
0,ease:Strong.easeOut});
	stage.removeEventListener(Event.RESIZE, resizeListenerscript);
	

	function go(param1:Number=0, param2:Number=0):void {
	setFullScreen();
	nextFrame();
	}
}

```

Any ideas??

Thanks  
Phil
