Hi, You can resize the stage real time? I wasn't aware of that. If you mean you want to resize the picture when it loads to whatever the stage is, use MovieClipLoader.
Read up on it, and pay particular attention to onLoadInit -> that's where you put your resize code. Mon On 12/7/05, Brumm, Mike <[EMAIL PROTECTED]> wrote: > 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 > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Ramon Miguel M. Tayag _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders