[AS3 SNIPPET] Convert Array to Vector
1 2 | var array : Array = ["a", "b", "c"]; var vector : Vector.<String> = Vector.<String>(array); |
1 2 | var array : Array = ["a", "b", "c"]; var vector : Vector.<String> = Vector.<String>(array); |
Additional comments powered by BackType
I get an error (in FDT) with that syntax.
Shouldn’t line 2 really be:
var vector : Vector. = Vector.(array);
Ah, I see what may have happened. I think the comment field seems to have stripped out the $lt; and > symbols when trying to write Vector.<String>
I’m guessing it did that with your source above?
Hi Ben,
That’s exactly what has happened in my post…Fixed it escaping the symbols.
Thanks for that
[AS3 SNIPPET] Convert Array to Vector: var array : Array = ["a", "b", "c"];
var vector : Vector. = Vector.(array); http://is.gd/9XyjO
This comment was originally posted on Twitter
[AS3 SNIPPET] Convert Array to Vector http://bit.ly/bUpJUi
This comment was originally posted on Twitter
[AS3 SNIPPET] Convert Array to Vector http://bit.ly/bUpJUi /via @gillesguillemin #flash #flashdev
This comment was originally posted on Twitter