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
383 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now