Flash HELP!
Flash HELP!
Out of context: Reply #9
- Started
- Last post
- 11 Responses
- funkage0
Try the MovieClipLoader Class.
Assuming you're loading your image into a MovieClip by the name of 'image_mc':var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();mclListener.onLoadInit = function(target:MovieClip) {
trace(target._width);
trace(target._height);
// You should get both values, and do whatever you want to do to the image here.
}mcl.addListener(mclListener);
mcl.loadClip("01.jpg", image_mc);