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
386 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

932 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