case SCALE_SHOWALL:
canvasWidth = realWidth = Math.round(desginWidth * scaleX);
canvasHeight = realHeight = Math.round(desginHeight * scaleY);
var minScale:Number= Math.min(scaleX, scaleY);
_width=desginWidth/minScale*scaleX;
_height=desginHeight/minScale*scaleY;
scaleX = scaleY =minScale;
break;
我对这showall适配方案进行了修改,可以完成等比缩放,但是舞台按不等比缩放显示。允许开发者自己完成更贴合的适配效果。亲测有效。可否把这个加入到适配方案中,增加一个新的类型