Flex3 metadata tag(flex, flash)

swf 설정
[SWF(width='1024', height='768', backgroundColor='#ffffff', frameRate='120')]



Metadata tags(flex3)

The following table describes the metadata tags that you can use in ActionScript class files:


Tag

Description


[ArrayElementType]

Defines the allowed data type of each element of an Array. For more information, seeArrayElementType metadata tag.


[Bindable]

Identifies a property that you can use as the source of a data binding expression. For more information, see Bindable metadata tag.


[DefaultProperty]

Defines the name of the default property of the component when you use the component in an MXML file. For more information, see DefaultProperty metadata tag.


[Deprecated]

Marks a class or class element as deprecated so that the compiler can recognize it and issue a warning when the element is used in an application. For more information, see Deprecated metadata tag.


[Effect]

Defines the MXML property name for the effect. For more information, see Effect metadata tag.


[Embed]

Imports JPEG, GIF, PNG, SVG, and SWF files at compile time. Also imports image assets from SWC files.

This is functionally equivalent to the MXML @Embed syntax, as described in Embedding Assets.

이미지로부터 비트맵 상속 
[Embed(source = "../asset/doll.png")]
 public class Doll extends Bitmap


[Event]

Defines the MXML property for an event and the data type of the event object that a component emits. For more information, see Event metadata tag.

이벤트 설정
[Event(name="myClickEvent", type="flash.events.Event")]


[Exclude]

Omits the class element from the Flex Builder tag inspector. The syntax is as follows:

[Exclude(name="label", kind="property")]

[ExcludeClass]

Omits the class from the Flex Builder tag inspector. This is equivalent to the @private tag in ASDoc when applied to a class.


[IconFile]

Identifies the filename for the icon that represents the component in the Insert bar of Adobe Flex Builder. For more information, see IconFile metadata tag.


[Inspectable]

Defines an attribute exposed to component users in the attribute hints and Tag inspector of Flex Builder. Also limits allowable values of the property. For more information, see Inspectable metadata tag.


[InstanceType]

Specifies the allowed data type of a property of type IDeferredInstance. For more information, see InstanceType metadata tag.


[NonCommittingChangeEvent]

Identifies an event as an interim trigger. For more information, see NonCommittingChangeEvent metadata tag.


[RemoteClass]

Maps the ActionScript object to a Java object. For more information on using the [RemoteClass]metadata tag, see RemoteClass metadata tag.


[Style]

Defines the MXML property for a style property for the component. For more information on using the [Style] metadata tag, see Style metadata tag.


[Transient]

Identifies a property that should be omitted from data that is sent to the server when an ActionScript object is mapped to a Java object using [RemoteClass]. For more information, seeTransient metadata tag.


저작자 표시 비영리 변경 금지