Type was not found or was not a compile type constant at compile time.
BUT I have imported import flash.display.MovieClip; amd my vector variable declaration is correct.
private var myVect:Vector.<MovieClip > = new Vector.<MovieClip > (5,true);
I am even copying and pasting from a tutorial so this is very strange.
Sorry won't let me insert image BUT I have enabled debugging and I get those three errors about the same MovieClip.
The error I quoted above and the following.
1120: access of undefined property MovieClip (twice)
package
{
import flash.display.MovieClip;
import flash.media.Sound;
import flash.events.MouseEvent;
import flash.display.Sprite;
import flash.events.Event;
public class as3circle extends Sprite
{
public var keyboard_input:keys;
public var circle_hero = new circle ;
private var energyHit:Boolean = false;
private var enemy:Enemy = new Enemy();
private var myVect:Vector.<MovieClip > = new Vector.<MovieClip > (5,true);
public function as3circle()
{
//Gerry hack. Make the helicopter smaller via code as I can't edit it properly
circle_hero.scaleX = .25;
circle_hero.scaleY = .25;
addChild(circle_hero);
circle_hero.init();
var keyboard_sprite = new Sprite();
addChild(keyboard_sprite);
keyboard_input = new keys(keyboard_sprite);
//add the enemies
for (var i:int=0; i< 5; i++)
{
//enemy = new Enemy ;
enemy.x = Math.random() * stage.stageWidth;
enemy.y = 0 + i * stage.stageHeight / 6;
myVect[i] = enemy;//populate the vector array with enemies. Vectors only hold one type but they are so efficient.
addChild(enemy);
enemy.cacheAsBitmap = true;
}
stage.addEventListener(Event.ENTER_FRAME,on_enter_fram e);
North America
Europe, Middle East and Africa
Asia Pacific