all groups > macromedia flash sitedesign > june 2005 >
You're in the

macromedia flash sitedesign

group:

Scalable Flash background with a fixed flash movie size loaded on top



Scalable Flash background with a fixed flash movie size loaded on top frank_ddc_8 NO[at]SPAM hotmail.com
6/26/2005 2:46:59 AM
macromedia flash sitedesign: 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
Re: Scalable Flash background with a fixed flash movie size loaded on top George Harold Hartshorn III
6/26/2005 5:12:23 AM
how about just two movies and the background moive is full screen and the
front movie is centered? bygeorge


[quoted text, click to view]

Re: Scalable Flash background with a fixed flash movie size loaded on top frank_ddc_8 NO[at]SPAM hotmail.com
6/26/2005 6:09:31 AM
That would mean I have to work with layers in HTML? I prefer a complete
Flash solution to this.
Thx for your reply!
AddThis Social Bookmark Button