Цитата:
|
Сообщение от ellis
Вот так?
 Код:
var clip_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc._width+','+target_mc._height);
xx = Math.round((Stage.width * 100) / target_mc._width);
yy = Math.round((Stage.height * 100) / target_mc._height);
trace(xx+','+yy);
target_mc._xscale = xx;
target_mc._yscale = yy;
};
clip_mc1.addListener(mclListener);
clip_mcl.loadClip(muv, target_mc);
|
У вас в предпоследней строчке ошибка: clip_mc1 вместо clip_mcl.
Вот рабочий код, проверил:

Код:
var clip_mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc._width+','+target_mc._height);
xx = Math.round((Stage.width * 100) / target_mc._width);
yy = Math.round((Stage.height * 100) / target_mc._height);
trace(xx+','+yy);
target_mc._xscale = xx;
target_mc._yscale = yy;
};
clip_mcl.addListener(mclListener);
clip_mcl.loadClip("Mystery MF-35.jpg", target_mc);