如何对齐ActionScript项目? [英] How to align the actionscript project?

查看:98
本文介绍了如何对齐ActionScript项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有çActionScript 3的项目纯粹$ C $在Flash Builder 4,我想调整的阶段。 现在我有我设置x属性为10的精灵,但精灵在屏幕的中间。如何设置这些种在code性能?我想这是一个需要以某种方式被设置舞台对象。

I have a pure code Actionscript 3 project in flash builder 4 and I want to align the stage. For now I have a sprite that I have set the x property to 10, but the sprites are in the middle of the screen. How to set these kind of properties in code? I suppose it's the stage object that needs to be set in some way.

推荐答案

您应该看一看的<一个href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#align"相对=nofollow> Stage.align 财产。 例如,如果你要调整你的舞台取决于左上角:

You should have a look at the Stage.align property. For example, if you want to align your Stage depending the top left corner :

stage.align = StageAlign.TOP_LEFT;

请确保该平台可以,但...

Make sure the stage is available though...

这篇关于如何对齐ActionScript项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆