Groups | Blog | Home
all groups > macromedia flash sitedesign > june 2005 >

macromedia flash sitedesign : How was this done?



EnergonCube
6/18/2005 10:01:55 PM
http://www.domanistudios.com, a NY creative firm, has an all-Flash site that I
really like. What I like most is the background. No matter how I size my
browser window, the background never seems to scale. As the browser window gets
smaller, it clips left, right, and bottom. I'm not a flash designer (still
learning the basics) and I'm sure it's something simple.

How was this done?

Thanks in advance.
EnergonCube
6/26/2005 9:25:18 PM
lander222
6/26/2005 10:05:51 PM
margin:0 0 0 0;
padding:0 0 0 0;
height:100%;
overflow-y: hidden;

embedflash("main.swf","100%","100%",7,'#E1DEDC','');

this is the important part of the code for in your html-file. in flash you use
a listener for the stage and rescale the movie containing the background
according to this. movie._x = Stage.x (not sure if x property from the stage
has an underscore) movie._yscale = movie._xscale.
if you also want to include the possibility that the height of the window can
be larger than the width, you'll have to perform some extra calculations but
the basics are described here.

please do have a look at my question titled 'animated sketching' :-), if you
have ideas, let me know!

Lander Beeuwsaert


AddThis Social Bookmark Button