Solved

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

Posted on 2008-10-16
7
397 Views
Last Modified: 2013-11-11
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
Comment
Question by:skilleddesigner
  • 4
  • 2
7 Comments
 
LVL 37

Expert Comment

by:CyanBlue
ID: 22737417
The line 4 says you want to align the movie to the top left corner...  ;)

CyanBlue
0
 
LVL 4

Expert Comment

by:MattKenefick
ID: 22737559
0
 
LVL 2

Author Comment

by:skilleddesigner
ID: 22738640
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!

 
LVL 2

Author Comment

by:skilleddesigner
ID: 22739300
How can i make it vertically and horizontally center align??
0
 
LVL 4

Accepted Solution

by:
MattKenefick earned 500 total points
ID: 22740606
"C"
Or just remove the line
0
 
LVL 2

Author Comment

by:skilleddesigner
ID: 22740947
i tried removing the line or i did tried putting "C"
but both the way it align bottom left of the screen
0
 
LVL 2

Author Closing Comment

by:skilleddesigner
ID: 31506977
thanks
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question