Mike Orth – Booya!

Flex, Actionscript

[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

No comments yet. Be the first.

Leave a reply

Spam Protection by WP-SpamFree

Mexico

Google Tracking Code