浏览代码

Use flash.Vector.ofArray only for flash10.

As it is, it causes a compiler error for flash9
Juraj Kirchheim 10 年之前
父节点
当前提交
29591471e0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/ds/Vector.hx

+ 1 - 1
std/haxe/ds/Vector.hx

@@ -205,7 +205,7 @@ abstract Vector<T>(VectorData<T>) {
 	static public inline function fromArrayCopy<T>(array:Array<T>):Vector<T> {
 		#if python
 		return cast array.copy();
-		#elseif flash
+		#elseif flash10
 		return fromData(flash.Vector.ofArray(array));
 		#elseif java
 		return fromData(java.Lib.nativeArray(array,false));