when i do fullscreen flash why does the flash movie align in the left side of the browser?

Hi
I am using this code to do fullscreen flash but whenever its fullscreen the flash align in the left side of the browser
i really dont get it why??
//Don't scale the movie when the stage size changes
Stage.scaleMode="noScale";
//Align the stage to the top left
Stage.align = "TL";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen(){
	//if normal size, go to fullscreen, else go to normal size
	if(Stage["displayState"]=="normal"){
		Stage["displayState"]="fullScreen";
	}else{
		Stage["displayState"]="normal";
	}
}
//Create a listener for each time the Stage is resized
var resizeListener:Object = new Object();
//Called each time the stage is resized
resizeListener.onResize = function () {
	//Move the button to the center of the screen
	toggleFullScreenButton._x=Stage.width/2;
	toggleFullScreenButton._y=Stage.height/2;
}
//Add the listener to Stage
Stage.addListener(resizeListener);

Open in new window

LVL 2
skilleddesignerAsked:
Who is Participating?
 
MattKenefickConnect With a Mentor Commented:
"C"
Or just remove the line
0
 
CyanBlueCommented:
The line 4 says you want to align the movie to the top left corner...  ;)

CyanBlue
0
 
MattKenefickCommented:
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
skilleddesignerAuthor Commented:
How can i made it totally center align??
0
 
skilleddesignerAuthor Commented:
How can i make it vertically and horizontally center align??
0
 
skilleddesignerAuthor Commented:
i tried removing the line or i did tried putting "C"
but both the way it align bottom left of the screen
0
 
skilleddesignerAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.