    * SWF version 11 and above.  It is retained to preserve existing tests applicable to prior versions.
    */
 
-import avmplus.System;
+import avmplus.*;
+import flash.display.*;
+
+if (playerType == 'AVMPlus') {
+    swfVersion = System.swfVersion;
+} else {
+    swfVersion = LoaderInfo.swfVersion;
+}
+
 
 var SECTION = " ";
 var VERSION = "AS3";

}

// -5.1
if (System.swfVersion >= 11) {
    AddVectorReadExceptionTest    ("-5.1", -5.1, RANGE);
    AddVectorWriteExceptionTest   ("-5.1", -5.1, RANGE);
    AddVectorReadExceptionTest_D  ("-5.1", -5.1, RANGE);

}

test();

// restore prototype properties
delete Vector.<*>.prototype[3.14];
