If I define it like this: var vertices:Vector<Float> = new Vector<Float>([0.0, -20.0, -30.0, 10.0, 30.0, 10.0]);
it works fine if targeting Flash.
If the target is html5 I get the following errors: src/Main.hx:14: characters 55-92 : Array<Float> should be Int src/Main.hx:14: characters 55-92 : For optional function argument 'length'
While going through the new Vector.hx class file I’ve stumbled over the new ofArray() function too.
Thanks for helping!
By the way, is this the appropriate, not to say official, way to initialize an vector now?