fLASH ALIGNMENT
- Started
- Last post
- 5 Responses
- donal
How do you align flash movies (within a swf) to the browser? Is it complex?
- ozhanlion0
it is as complex as pressing that find button at the bottom.
- ********0
moock's thinger.
- donal0
thanks for your help, ozhanlion , you are not a dickhead.
- F_180
i assume you also want to publish your swf as a full screen, in which case:
Stage.scaleMode = "noScale";
Stage.align = "tl";
this.onResize = function()
{
updateStageStuff();
}Stage.addListener(this);
_global.updateStageStuff = function()
{var sw = Stage.width;
var sh = Stage.height;bg._width = sw;
bg._height = sh;
}where “bg” is the instance name of the movie clip you are using as the background.
note: see the "tl" after stage.Align? thats the alignment value "top left" you can set it to c (center) or tr (top right) or whatever else....
set the height and width values to 100% in your html and use a little css to set all the borders to 0.
hope this helps.
- donal0
nice one mate!