简体   繁体   English

显示中心movieClip-Flex4

[英]Display centre movieClip - Flex4

How to have that movieClip created to be created at the centre of the screen? 如何在屏幕中心创建要创建的movieClip?

Thank, 谢谢,

http://pastebin.com/AkrW6e56 http://pastebin.com/AkrW6e56

like this: 像这样:

cp.x = stage.stageWidth/2 - cp.width/2;
cp.y = stage.stageHeight/2 - cp.height/2;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM