Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 Flash Pro cc为什么我手机上的舞台宽度和高度设置为Flash Pro内部的宽度和高度?_Actionscript 3_Flash_Actionscript_Flash Cs6 - Fatal编程技术网

Actionscript 3 Flash Pro cc为什么我手机上的舞台宽度和高度设置为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.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;