> tmp.loadMovie("images/background/bg_image1.jpg");
> tmp.onResize = function() {
>             this._width = Stage.width;
>             this._height = Stage.height;
> }
> Stage.addListener(tmp);

The onResize handler will be destroyed when the image is done loading.
There are several ways to achieve what you want, here are some:
- assign the resize handler after the jpg has been successfully loaded (use
a Loader class)
- create your movieclip and another nested inside. Load your image in the
nested clip and add the resize handler on the outer clip
- use an external controller for the resizing.

Tim

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

Reply via email to