| Author |
Scalable Flash background with a fixed flash movie size loaded on top
|
|
| frank_ddc_8@hotmail.com 2005-06-26, 7:18 pm |
| Hi,
I'm trying to do something like this:
http://777.newairplane.com/
I'm trying to set a movie clip (with image) as a background of a
browser window which
stretches as the browser is re-scaled. The content loaded on top will
have a fixed size (centrered in the browser window).
Here's what I tried:
On the stage i've put the MC which contains my background image
(instance name = bgresize). I positioned it left-top.
On a new layer I've put the action script that instructs my MC:
---------------
Stage.scaleMode = "noScale";
Stage.align = "cc";
this.onResize = function () {
newPosition();
};
Stage.addListener(this);
newPosition = function () {
stageW = Stage.width;
stageH = Stage.height;
bgresize._width = stageW;
bgresize._height = stageH;
};
---------------
The content that loads on top (and that is non-scalable) is on the main
timeline and not in a separate movie clip.
Here's what happens: the background MC is in the left-top of my stage.
In stead it should start in the left top of the browser window.
http://users.skynet.be/sb01963 6/00_base07.html
?? Any help/advise would be appreciated.
Thx
| |
| George Harold Hartshorn III 2005-06-26, 7:18 pm |
| how about just two movies and the background moive is full screen and the
front movie is centered? bygeorge
<frank_ddc_8@hotmail.com> wrote in message
news:1119779219.066511.86090@g49g2000cwa.googlegroups.com...
> Hi,
>
> I'm trying to do something like this:
> http://777.newairplane.com/
>
> I'm trying to set a movie clip (with image) as a background of a
> browser window which
> stretches as the browser is re-scaled. The content loaded on top will
> have a fixed size (centrered in the browser window).
>
> Here's what I tried:
> On the stage i've put the MC which contains my background image
> (instance name = bgresize). I positioned it left-top.
> On a new layer I've put the action script that instructs my MC:
> ---------------
> Stage.scaleMode = "noScale";
> Stage.align = "cc";
> this.onResize = function () {
> newPosition();
>
> };
>
> Stage.addListener(this);
> newPosition = function () {
> stageW = Stage.width;
> stageH = Stage.height;
> bgresize._width = stageW;
> bgresize._height = stageH;
> };
>
> ---------------
>
> The content that loads on top (and that is non-scalable) is on the main
>
> timeline and not in a separate movie clip.
>
> Here's what happens: the background MC is in the left-top of my stage.
> In stead it should start in the left top of the browser window.
> http://users.skynet.be/sb01963 6/00_base07.html
>
> ?? Any help/advise would be appreciated.
>
> Thx
>
| |
| frank_ddc_8@hotmail.com 2005-06-26, 7:18 pm |
| That would mean I have to work with layers in HTML? I prefer a complete
Flash solution to this.
Thx for your reply!
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |