# Backgroundimage 100%\*100%

**URL:** <https://forum.kirupa.com/t/backgroundimage-100-100/60266>\
**Category:** Uncategorized\
**Created:** [August 8, 2004, 11:40am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266 "2004-08-08T11:40:28Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![nessie](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@nessie](https://forum.kirupa.com/u/nessie)\
**Post date:** [August 8, 2004, 11:40am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/1 "2004-08-08T11:40:28Z")

</div>

Haw do you make 1 movie (backgroundimage) 100%\*100% and the other movie (meny) to not resize on top of the 100%\*100% movie. Like this

> **[Buy Domains - albaspina.com is for sale!](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.

pleac help me! :-/

---

<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:** [August 8, 2004, 9:49pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/2 "2004-08-08T21:49:53Z")

</div>

it looks like the movie loaded on top is just well, loaded on top, of the background movie.

---

<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:** [August 8, 2004, 10:09pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/3 "2004-08-08T22:09:07Z")

</div>

Layer \<\<\<

use layer to do them

and use actionscript to order them

such as …

button1.onRelease = function () {  
mc1inBack.\_visible = true;  
}

…  
I suggest to use " loadMovies(); "  
but above script is easy to understand ^^

---

<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:** [August 9, 2004, 5:05am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/4 "2004-08-09T05:05:26Z")

</div>

i’ve also been trying to figure this out. as you have discovered, it’s not as easy as just setting it to 100% in the html b/c the mc’s within it will resize. i am going to keep trying until i get 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:** [August 9, 2004, 11:44am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/5 "2004-08-09T11:44:54Z")

</div>

hi bwh2 !

yes i know i have got so much help from so many people but no one seems to know the anser.I if you figur it out pleace mail me ! :ear:

---

<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:** [August 9, 2004, 4:18pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/6 "2004-08-09T16:18:07Z")

</div>

> [@nessie](#):
>
> hi bwh2 !
> 
> yes i know i have got so much help from so many people but no one seems to know the anser.I if you figur it out pleace mail me ! :ear:

[http://www.gifsrus.com/testfile/scalething.zip](http://www.gifsrus.com/testfile/scalething.zip)

---

<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:** [August 9, 2004, 6:16pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/7 "2004-08-09T18:16:58Z")

</div>

Hi stringy !

Thank you so very much thats exacly wath i was locking for love it. And thank you again for all the help you have ben giving me :p: :krazy:

/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:** [August 9, 2004, 6:45pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/8 "2004-08-09T18:45:57Z")

</div>

> [@nessie](#):
>
> Hi stringy !
> 
> Thank you so very much thats exacly wath i was locking for love it. And thank you again for all the help you have ben giving me :p: :krazy:
> 
> /M

Glad to help.  
I made this one a little simpler, its not the best way to do it and you will still need to make preloaders for each of the files or modify my preloader code on the main timeline.

---

<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:** [August 10, 2004, 7:48pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/9 "2004-08-10T19:48:03Z")

</div>

stringy, i’m having a bit of a problem w/your example. the night skyline loads correctly, but the other 2 photos don’t resize until you actually try to resize the window. i included some screenshots to show you what i mean.

i figure the AS in m3.fla is different than the other two, but you didn’t include that in the zip. do you know why this is happening?

---

<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:** [August 10, 2004, 8:12pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/10 "2004-08-10T20:12:28Z")

</div>

> [@bwh2](#):
>
> stringy, i’m having a bit of a problem w/your example. the night skyline loads correctly, but the other 2 photos don’t resize until you actually try to resize the window. i included some screenshots to show you what i mean.
> 
> i figure the AS in m3.fla is different than the other two, but you didn’t include that in the zip. do you know why this is happening?

No, the script is the same, just a much bigger file.  
Try putting in each movie this.onresize()  
or/resize it after you preload (in main).checking bytesLoaded()/bytesTotal() in a loop  
I wouldn`t normally make the movies like this but Nessie was unable to edit the movies i sent him/her.

---

<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:** [August 10, 2004, 8:21pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/11 "2004-08-10T20:21:25Z")

</div>

> [@stringy](#):
>
> I wouldn`t normally make the movies like this but Nessie was unable to edit the movies i sent him/her.

how would you normally make them?

// edit: actually, i also take back what i said before. none of them really resize until you try to resize the window, even the nightline one.

---

<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:** [August 10, 2004, 8:31pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/12 "2004-08-10T20:31:55Z")

</div>

> [@bwh2](#):
>
> how would you normally make them?
> 
> // edit: actually, i also take back what i said before. none of them really resize until you try to resize the window, even the nightline one.

so have you tried what i said?  
I would normally load into a clip and resize (after it has finished loading).Also i would tween it to the new size rather than just make it equal to width/height.  
Also nice to tween the buttons so they always stay in the same area of the stage.

---

<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:** [August 10, 2004, 11:05pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/13 "2004-08-10T23:05:56Z")

</div>

yeah. i figured out what i was doing wrong with my files that i made. i used easing to resize the photos and it came out pretty good. here’s the [Zip File](http://www.haveri-media.com/bigscale.zip) if anyone’s interested.

---

<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:** [August 11, 2004, 4:55am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/14 "2004-08-11T04:55:48Z")

</div>

> [@bwh2](#):
>
> yeah. i figured out what i was doing wrong with my files that i made. i used easing to resize the photos and it came out pretty good. here’s the [Zip File](http://www.haveri-media.com/bigscale.zip) if anyone’s interested.

Glad you figured it out,your files work well.

---

<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:** [August 11, 2004, 5:47am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/15 "2004-08-11T05:47:05Z")

</div>

simply use Stage.width as the width setting and height similarly for the width and height of the image, and then use stage.scale=“noScale” and everything works 😉

---

<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:** [August 11, 2004, 10:31am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/16 "2004-08-11T10:31:24Z")

</div>

Hi stringy / bwh2 !

I wonder if one of you guys know how to putt in a fading script or a brightOffset script on the images when they apper.thanks!

/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:** [August 13, 2004, 2:45pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/17 "2004-08-13T14:45:38Z")

</div>

All your examples are useing buttons to reload the backgrounds. But it is possible to do it with a random background, right? In this case which code should be implemented in the “randomizer”?

Thanks.

---

<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:** [August 13, 2004, 4:53pm UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/18 "2004-08-13T16:53:54Z")

</div>

you can do randomly like this:[AS]totalbg=5; // total # of photos  
whichbg=Math.round(Math.random()\*totalbg+1)); // pick a random # between 1 and totalbg  
container.loadMovie(“background”+whichbg+".swf"); // load the swf[/AS]then make background swf’s like background0.swf, background1.swf, background2.swf, etc, etc.

---

<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:** [August 16, 2004, 9:25am UTC](https://forum.kirupa.com/t/backgroundimage-100-100/60266/19 "2004-08-16T09:25:38Z")

</div>

I will try it then thank you!
