Mike Orth – Booya!

Flex, Actionscript

Archive for December, 2011

[RemoteClass] must specify alias

Most metadata tags in Flex have default property values. For example, the following are equivalent:

[Embed(source="/path/img.png")]
[Embed("/path/img.png")]

However, when using RemoteClass, even though it only has 1 possible parameter (”alias”), it still requires that you specify the property name as follows:

// Correct:
[RemoteClass(alias="com.myDTO")]

// NOT correct:
[RemoteClass("com.myDTO")]
No comments

Google Tracking Code