Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

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

0
skilleddesigner
Asked:
skilleddesigner
  • 4
  • 2
1 Solution
 
CyanBlueCommented:
The line 4 says you want to align the movie to the top left corner...  ;)

CyanBlue
0
 
MattKenefickCommented:
0
 
skilleddesignerAuthor Commented:
How can i made it totally center align??
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
skilleddesignerAuthor Commented:
How can i make it vertically and horizontally center align??
0
 
MattKenefickCommented:
"C"
Or just remove the line
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now