# How is this done? Help required!

**URL:** <https://forum.kirupa.com/t/how-is-this-done-help-required/57564>\
**Category:** flash\
**Created:** [July 14, 2004, 10:35am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564 "2004-07-14T10:35:56Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexandr3](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@alexandr3](https://forum.kirupa.com/u/alexandr3)\
**Post date:** [July 14, 2004, 10:35am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/1 "2004-07-14T10:35:56Z")

</div>

Hello, I’m new here, so hello everyone :alien2:

I would like to know if any of you know how to make this thing with the background like [www.hi-res.net](http://www.hi-res.net) do. When you scale your window, the background automatically adapts itself to fit the new window size with no white gaps between the image and the browser’s window.

Does anyone have a clue on how this was done?

And is it possible to place a flash movie in a html page without the “white frame”, i mean, without that space between the animation and the browser limits?

Thanks in advance. Great site. Great help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 10:46am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/2 "2004-07-14T10:46:03Z")

</div>

Don’t know about the resizing image.  
But to remove the margin around an html page you need to alter the \<body\> tags or your css…

In the html change the bit that says:  
\<body\>  
\</body\>

to:  
\<body leftmargin=“0” rightmargin=“0” topmargin=“0” bottommargin=“0”\>  
\</body\>

You may have known that so sorry if I’m stating the obvious!!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 10:59am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/3 "2004-07-14T10:59:49Z")

</div>

you set the size in falsh under publish settings and then html and ther you chose demension to procent and it will be 100%\*100% defolt. But how you set the size on the meny to not resize when you resize you browser i dont know to i rely wona know that. Is there eny body how knows this i wold be mor then happy.

[http://www.mikaelnaslund.com](http://www.mikaelnaslund.com) :evil2:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 12:53pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/4 "2004-07-14T12:53:46Z")

</div>

> **[Buy Domains - Find a Premium Domain & Open Your Doors, BuyDomains.com](https://www.buydomains.com/lander/albaspina.com?domain=albaspina.com&utm_source=albaspina.com&utm_medium=click&utm_campaign=TDFS-OO-BDLander&traffic_id=TDFS-OO-BDLander&traffic_type=tdfs)**
>
> Buy a domain and see how a premium domain can be the best investment. Your business starts here. Buy a domain today.

like this !!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 4:57pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/5 "2004-07-14T16:57:34Z")

</div>

thanks anyway. I’m starting to understand that it will be a hard task to do this

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 5:30pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/6 "2004-07-14T17:30:49Z")

</div>

> [@alexandr3](#):
>
> thanks anyway. I’m starting to understand that it will be a hard task to do this

if its something like this that you are after [http://www.gifsrus.com/testfile/Stageresize004.html](http://www.gifsrus.com/testfile/Stageresize004.html)  
then you need to look at the Stage object (Stage.onResize) and then just some simple easing equation.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 14, 2004, 5:57pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/7 "2004-07-14T17:57:04Z")

</div>

could you plice send me the cood i am a beginner att flash and not so good.

/M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 10:42am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/8 "2004-07-15T10:42:48Z")

</div>

i think ot’s something similar to this. did you went to [www.hi-res.net](http://www.hi-res.net)? That’s what I want to know how it’s done.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 2:00pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/9 "2004-07-15T14:00:50Z")

</div>

that´s exakly woth i wont to bur it´s seame to be mor dificult than i tought no one answers uss and can help uss whith whot we wont. But if i get the help i promis to send you a mail .

/M

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 3:32pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/10 "2004-07-15T15:32:54Z")

</div>

thanks nessie. i’ll do the same. If i can’t figure it out I probably won’t do it because I have timelines, but maybe in some other opportunity!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 15, 2004, 10:04pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/11 "2004-07-15T22:04:57Z")

</div>

> [@alexandr3](#):
>
> thanks nessie. i’ll do the same. If i can’t figure it out I probably won’t do it because I have timelines, but maybe in some other opportunity!

This might get you started, make your background image a movieclip, instance name mc.  
on the timeline type  
Stage.scaleMode = “noScale”;  
Stage.align = “tl”;  
this.onLoad = function () {  
mc.\_width = Stage.width;  
mc.\_height = Stage.height;  
};  
this.onResize = function() {  
change();  
};  
Stage.addListener(this);  
\_global.change = function() {  
mc.\_width = Stage.width;  
mc.\_height = Stage.height;  
};

when you publish - 100%-noScale-set margins as you wish

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 2:45pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/12 "2004-07-16T14:45:00Z")

</div>

Thanks, but still isn’t working… ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2004, 4:22pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/13 "2004-07-16T16:22:59Z")

</div>

> [@alexandr3](#):
>
> Thanks, but still isn’t working… ☹

[http://www.gifsrus.com/testfile/egg.fla](http://www.gifsrus.com/testfile/egg.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 10:46am UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/14 "2004-07-19T10:46:05Z")

</div>

it´s geat but now the movie:2 dono stay in its x,y place?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 12:45pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/15 "2004-07-19T12:45:51Z")

</div>

Hi guys,

looks like the background may be an invidual movie (loaded into a container clip on ‘main’ behind the navigation) and within the background movie itself the programmer has used the FS “allowscale” command?

Oh and for maximising flash to ‘extend to the limits of the browser’ check out:

[http://www.kirupa.com/developer/flash5/fullscreen.htm](http://www.kirupa.com/developer/flash5/fullscreen.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 1:11pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/16 "2004-07-19T13:11:22Z")

</div>

that migth bee but how do you get the first movie to not resize while resizing the browser window ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 24, 2004, 1:09pm UTC](https://forum.kirupa.com/t/how-is-this-done-help-required/57564/17 "2004-07-24T13:09:20Z")

</div>

I got this from a nother forun but i dont get it mayby you cann figur it out?

* * *

Hi Mikael,  
you do load the first with the size in the html object tag, usualy 100% \* 100%.

Then you load new movies into an empty movie clip with this:

Code:  
\_root.createEmptyMovieClip(instanceName, depth);  
instanceName.loadMovie(“moviename.swf”);  
instanceName.\_x=xPosition;  
instanceName.\_y=yPosition;  
instanceName.\_xscale=scalingInPercent;  
instanceName.\_yscale=scalingInPercent;

Just replace my words with real values, and you will have what you’ve been asking for.

* * *
