« Is Flex looking for friends in MySpace? | Main | New APIs from Adobe Labs »

Typing Arrays in ActionScript 3.0

It would be very useful if we are able to type the Arrays as we do in Java.

Here is the solution:

http://www.dannypatterson.com/Resources/Blog/EntryDetail.cfm?id=98

You can basically add the following metadata tag to have a type-safe Array:

[ArrayElementType("Number")]
public var numlist:Array;

Quite useful! Is it not?

TrackBack

TrackBack URL for this entry:
http://www.subbusos.com/cgi-bin/mt-tb.cgi/3

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on April 12, 2007 7:28 PM.

The previous post in this blog was Is Flex looking for friends in MySpace?.

The next post in this blog is New APIs from Adobe Labs.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.34