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
389 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.

777 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