Load image into movie

ok help needed plz.

I have some buttons that i want to click which loads up a movie in flash. i want to be able to say that when a certain button is pressed, it sets the dimentions of the movie so that a jpg can be viewed, ie different resolutions and portrait / landscape. Each button must be able to specify a different set of instructions so i guess on(release) will be ok to use with the extra code. Also how do i then tell it to load image1.jpg into that movie. i just want one movie to be called, but to have the power to tell it what size and what image. Im sure this is easy but i carnt think!

Cheers