Hi jack,
Removed the play() call from the avm1 class, it was a loaded swf which I had no access to, the others I had created to test and worked. Basically I let them all play, so I can not test it and resolve the issue. Sorry.
The issue with the "proprtionalInside" which you pointed was correct, however I required the ability to load any asset into a fixed aspect (10x10) which could be dynamically set with swfobject and to any dimension and have the assets internally resize to fit that potentially random configuration - I used to use the DisplayUtils package I found years ago - but nothing worked as the stage was being stretched.
How does one determine things ??
My head almost exploded at the end, as I was sure it was a really simple fix somewhere and was determined to find it - couldn't and ended up writing this HEINOUS function
private function setSize() : void {
var targ:DisplayObject=holder.getChildByName(media[counter].value);
if(displayWidth / targ.width >= displayHeight / targ.height) {
var sc : Number = (stage.stageHeight / targ.height);
targ.width *= (stage.stageHeight / targ.height);
targ.height = stage.stageHeight;
if(targ.height > targ.width && (displayHeight/displayWidth)>1) {
targ.width*=displayHeight/displayWidth;
targ.height*=displayHeight/displayWidth;
}
} else {
targ.height *= (stage.stageWidth / targ.width);
targ.width = stage.stageWidth;
if(targ.width > targ.height && (displayWidth/displayHeight)>1) {
targ.width*=displayWidth/displayHeight;
targ.height*=displayWidth/displayHeight;
}
}
setPositions(targ);
}
private function setPositions(targ : DisplayObject) : void {
TweenMax.to(targ, 0, {x:(targ.width - stage.stageWidth) * -.5, y:(targ.height - stage.stageHeight) * -.5})
targ.alpha = .5;
}