常用的UIComponent屬性

以下是常用的UIComponent屬性,可以透過這些屬性來控制Flex的元件。

屬性名稱 型別 說 明
doubleClickEnabled Boolean Setting to true lets the component dispatch a doubleClickEvent when a user presses and releases the mouse button twice in rapid succession over the component.
height Number The height of the component, in pixels.In MXML tags, but not in ActionScript, you can set this property as a percentage of available space by specifying a value such as 70%; in ActionScript, you must use the percentHeight property.The property always returns a number of pixels. In ActionScript, you use the perCent
percentHeight Number The height of the component as a percentage of its parent container, or for <mx:Application> tags, the full height of the browser. Returns NaN if a percent-based width has never been set or if a width property was set after the percentWidth was set.
styleName String Specifies the style class selector to apply to the component.
visible Boolean Specifies whether the container is visible or invisible. The default value is true, which specifies that the container is visible.
x Number The component’s x position within its parent container. Setting this property directly has an effect only if the parent container uses absolute positioning.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s