本文介绍了如何对齐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.

推荐答案

您应该看一看的 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项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 00:49