i have 2 scripts that work fine on their own… but i can’t figure a way to combine them. any help would be great!
the first part resizes an 800x600 image to match the screen size:
bgHolder_mc._width=Stage.width;
bgHolder_mc._height=Stage.width/4 *3;
this works fine on its own if the image is on the stage.
the other pulls a random image and loads it into bgHolder_mc:
backgrounds = new array (“background0.jpg”, “background1.jpg”, “background2.jpg”);
function randomBackground () {
randomNumber = random (backgrounds.length);
loadMovie (backgrounds[randomNumber],"_root.bgHolder_mc");
}
randomBackground();
this works well on its own.
any idea how i can combine them?