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
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

626 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