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 AS3 9切片缩放_Actionscript 3_Flash_Components - Fatal编程技术网

Actionscript 3 AS3 9切片缩放

Actionscript 3 AS3 9切片缩放,actionscript-3,flash,components,Actionscript 3,Flash,Components,我在Flash Professional CS4上制作窗口组件,现在我有一个问题。窗口顶部是标题的动态文本字段。缩放窗口时,文本也在缩放。那么,有没有办法使textfield固定在相同的位置和大小 p.S.9片缩放已启用。缩放窗口时(widow.scale=newScale),您只需执行textfield.scale=1/scale您应该将窗口的背景与其余部分分开: window > title > background 您的背景将是唯一一个9切片的剪辑,您将通过执行

我在Flash Professional CS4上制作窗口组件,现在我有一个问题。窗口顶部是标题的动态文本字段。缩放窗口时,文本也在缩放。那么,有没有办法使textfield固定在相同的位置和大小


p.S.9片缩放已启用。

缩放窗口时(
widow.scale=newScale
),您只需执行
textfield.scale=1/scale
您应该将窗口的背景与其余部分分开:

window > title
       > background
您的背景将是唯一一个9切片的剪辑,您将通过执行以下操作缩放窗口:

window.getChildByName("background").scaleX = newScaleX;
window.getChildByName("background").scaleY = newScaleY;

谢谢,但是孩子呢?子MCs将忽略父级的9层缩放辅助线进行缩放。有什么解决办法吗?你也可以通过编程来扩展MCs。