I've loaded a AS2 swf into a AS3 swf but the onLoadInit function for a MovieClipLoader object isn't executing; which leaves my images not centered and not reduced in dimensions (width/height)
It works if i run the AS2 swf (gallery) directly.
listenerObj.onLoadInit = function (target:MovieClip) {
if (target._height > _root.maxHeight)
{
var ratio = target._height / _root.maxHeight;
target._height = target._height/ratio;
target._width = target._width/ratio;
}
if (target_mc._width > _root.maxWidth)
{
var ratio = target._width / _root.maxWidth;
target._height = target._height/ratio;
target._width = target._width/ratio;
}
target._x = ((Stage.width/2)-(target._width/2));
target._y = ((Stage.height/2)-(target._height/2));
}
MCL.addListener(listenerObj);