Backgroundimage 100%*100%

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

pleac help me! :-/

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

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 ^^

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.

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

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.

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.

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.

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 if anyone’s interested.

Glad you figured it out,your files work well.

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 :wink:

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

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.

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.

I will try it then thank you!