PDA

View Full Version : FMX - fullscreen and load movie displaying at actual size



meisje
May 21st, 2003, 12:53 PM
hello there,

here is a site:
http://www.piip-show.no/PiipShow.htm

when you resize the browser window you'll notice that the background pattern remains the same size but there's never a browser-scrollbar, besides that the movie in the center that is loaded stays centered when resizing while keeping it's window-dimension constant (it's actually 2 seperate movies forming the center window).

how do i do this ? ?

meisje :toad:

Clown Staples
May 21st, 2003, 02:16 PM
Stage.onResize is the event
Stage.height and Stage.width give the info.

Stage.scaleMode="noScale";//no distortion or resizing
Stage.align = "" will center it, and you can use math to place the lower left logo in the corner like that.

The tricky part, having the background with no scrollbars, could be done with a scripted mask that would make only the part of the background that is in the window visible.
You would just have to say bgMask._width=Stage.width;

RvGaTe
May 21st, 2003, 02:17 PM
oh wait, now i noticed its all flash :P sorry bout that

Clown Staples
May 21st, 2003, 02:18 PM
There's no background image in the html source.

meisje
May 21st, 2003, 03:46 PM
hello clownstaples,

thanks for the reply.. i am not a total novice but i'm not quite sure where to put what..

shall i hang:

Stage.onResize ;
Stage.scaleMode="noScale";
Stage.align = "";

to the movieclip in which i load the movie
or had this better be a framescript?

i tried some things out, like hanging it to a movieclip results in everything on the stage not scaling (when publish dimensions is set to 100%)

i tried:
_this.onResize ;
_this.scaleMode="noScale";
_this.align = "";
as a movieclipscript but that didn't help..

can you please help me further :)

meisje

Clown Staples
May 21st, 2003, 05:44 PM
I gave it a try. More complicated than I thought. Heres a (ugly) sample with some of the stuff working.

It doesnt preview right in Flash - you have to view it from the html.

meisje
May 21st, 2003, 06:16 PM
hurray it works :) :) :)

it took a while before i noticed what i was constantly missing
when trying to redo your file
it was the flash alignment in the publish settings (left and top)

very much thanks clownstaples :flower:

meisje