Actionscript 3 Flash Pro cc为什么我手机上的舞台宽度和高度设置为Flash Pro内部的宽度和高度?
我在为正在开发的应用程序设置舞台高度和宽度时遇到问题 我需要设置它所在设备屏幕的高度和宽度。所以我做stage.fullScreenHeight和stage.fullScreenWidth 但是我刚刚意识到它设置的全屏高度和宽度是flashprocc中properties下的stage的大小(stage size) 我无法根据手机的尺寸来确定舞台的宽度和高度。即使我做了Capabilities.screenResolutionX;或者舞台剧。它们都设置为图像大小或flash pro内的舞台,但没有一个是根据设备设置的 编辑:Actionscript 3 Flash Pro cc为什么我手机上的舞台宽度和高度设置为Flash Pro内部的宽度和高度?,actionscript-3,flash,actionscript,flash-cs6,Actionscript 3,Flash,Actionscript,Flash Cs6,我在为正在开发的应用程序设置舞台高度和宽度时遇到问题 我需要设置它所在设备屏幕的高度和宽度。所以我做stage.fullScreenHeight和stage.fullScreenWidth 但是我刚刚意识到它设置的全屏高度和宽度是flashprocc中properties下的stage的大小(stage size) 我无法根据手机的尺寸来确定舞台的宽度和高度。即使我做了Capabilities.screenResolutionX;或者舞台剧。它们都设置为图像大小或flash pro内的舞台,但没
尝试stage.scaleMode=StageScaleMode.NO\u SCALE
或者取消选中空气调节设置中的“全屏”复选框如果我将(例如按钮)设置为无刻度,是否可能?例如button.scaleMode=StageScaleMode.No_SCALE?据我所知,您不能。但也许.scaleX和.scaleY属性会对您有所帮助。例如,button.scaleX=1.5
E.g. var button = Button = new Button();
button.width = stage.stageWidth;
button.height = Button.width/stage.stageWidth * Button.height;