can you help me to this code...
need mcEnemy follow my mcMain...
help pls,., this can be appriciated much....
here's the code
enemyTime ++;
if(enemyTime == enemyLimit){
_root.attachMovie('mcEnemy', 'en'+enemyTotal,_root.getNextHighestDepth());
_root['en'+enemyTotal]._y = int(Math.random()*Stage.width);
_root['en'+enemyTotal]._y = -50;
_root['en'+enemyTotal].onEnterFrame = function(){
\\ i dont know what is the problem here
this._y = mcMain._y - this._y;
trace(this._y)
for(var cBullet:String in _root.bulletHolder){
if(this._y >= _root.bulletHolder[cBullet]._y-30 && this._y <= _root.bulletHolder[cBullet]._y){
if(this._x <= _root.bulletHolder[cBullet]._x+30 && this._x >= _root.bulletHolder[cBullet]._x -30){
this.removeMovieClip();
_root.bulletHolder[cBullet].removeMovieClip();
_root.score += 5;
_root.EnemyDown +=1;
}
}
}