Hello,

 

I'm probably missing something very simple here. I would like to load an
external jpg into a movieclip. When the user resizes the stage, the width
and height of the jpg match that of the stage. The below script does not
seem to be working. I can't seem to figure out what's missing. Any ideas?

 

Thanks in advance,

Mike

 

 

//SET STAGE PROPERTIES

Stage.showMenu = false;

Stage.scaleMode = "noScale";

Stage.align = "LT";

 

//RESIZE EXTERNAL JPG

var tmp:MovieClip;

tmp = this.createEmptyMovieClip("bgExpand_mc", 1);

tmp.loadMovie("images/background/bg_image1.jpg");

 

tmp.onResize = function(){

            this._width = Stage.width;

            this._height = Stage.height;

}           

 

Stage.addListener(tmp);

 

 

 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to