In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Shortcut to init vectors

Get Adobe Flash player
by makc3d 20 Apr 2011

    Talk

    wonderwhyer at 20 Apr 2011 19:04
    Heh, cool :) Did not know there was such short neat way :)
    Hasufel at 21 Apr 2011 00:30
    thx makc3d :)
    Embed
package {
    import com.actionscriptbible.Example;
    public class VectorInit extends Example {
        public function VectorInit () {
            // tip of the day!
            var a:Vector.<int> = new <int> [1, 2, 4];
            trace (a [0]);
            trace (a [1]);            
            trace (a [2]);
        }
    }
}