Shoot'em up game isn't working

been trying to get this thing to generate a movie clip randomly on the _x at any random position on the _y 250. Here’s the source file i got from a site and erased all the script so i could start from scratch on my own, it doesn’t seem to be working.

http://www.feverupload.com/download.php?file=2edfb4282160e7241ef1eb424513dc40

 ActionScript Code:
 [FONT=Courier New][LEFT]<b>[COLOR=#808080]*//box.startDrag(true, 0, 350, 550, 100 );*[/COLOR]

[COLOR=#0000ff]start[/COLOR].[COLOR=#0000ff]onPress[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR]:[COLOR=#0000ff]Void[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]attachMovie[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“enemy”[/COLOR], [COLOR=#ff0000]“mcEnemy”[/COLOR], [COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR];
mcEnemy.[COLOR=#0000ff]_xscale[/COLOR] = [COLOR=#000080]25[/COLOR];
mcEnemy.[COLOR=#0000ff]_yscale[/COLOR] = [COLOR=#000080]25[/COLOR];
mcEnemy.[COLOR=#0000ff]_y[/COLOR] = [COLOR=#000080]225[/COLOR];
mcEnemy.[COLOR=#0000ff]_x[/COLOR] = [COLOR=#0000ff]random[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]/var begin:Number = setInterval(animate, 100);/[/COLOR]
[COLOR=#000000]}[/COLOR]
box.[COLOR=#0000ff]onMouseDown[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR]:[COLOR=#0000ff]Void[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]play[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR];
[COLOR=#000000]function[/COLOR] animateCOLOR=#000000[/COLOR]:[COLOR=#0000ff]Void[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#808080]//this.attachMovie(“enemy”, “mcEnemy”, 1);[/COLOR]
mcEnemy.[COLOR=#0000ff]_y[/COLOR] = [COLOR=#000080]225[/COLOR];
mcEnemy.[COLOR=#0000ff]_x[/COLOR] = [COLOR=#0000ff]random[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000ff]if[/COLOR][COLOR=#000000]([/COLOR]mcEnemy.[COLOR=#0000ff]_x[/COLOR] < [COLOR=#000080]300[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
mcEnemy.[COLOR=#0000ff]_x[/COLOR]++;
mcEnemy._y–;
mcEnemy.[COLOR=#0000ff]_xscale[/COLOR]++;
mcEnemy.[COLOR=#0000ff]_yscale[/COLOR]++
[COLOR=#000000]}[/COLOR]
[COLOR=#0000ff]else[/COLOR][COLOR=#000000]{[/COLOR]
mcEnemy._x–;
mcEnemy._y–;
mcEnemy.[COLOR=#0000ff]_xscale[/COLOR]++;
mcEnemy.[COLOR=#0000ff]_yscale[/COLOR]++;
[COLOR=#000000]}[/COLOR]
[COLOR=#0000ff]if[/COLOR][COLOR=#000000]([/COLOR]mcEnemy.[COLOR=#0000ff]_y[/COLOR] == [COLOR=#000080]300[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]clearInterval[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]function[/COLOR] thisWorksCOLOR=#000000[/COLOR]:[COLOR=#0000ff]Void[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]Mouse[/COLOR].[COLOR=#0000ff]hide[/COLOR]COLOR=#000000[/COLOR];
crosshair.[COLOR=#0000ff]_x[/COLOR] = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_xmouse[/COLOR];
crosshair.[COLOR=#0000ff]_y[/COLOR] = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_ymouse[/COLOR];
box.[COLOR=#0000ff]_x[/COLOR] = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_xmouse[/COLOR];
box.[COLOR=#0000ff]_y[/COLOR] = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_ymouse[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]var[/COLOR] workNOW:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#0000ff]setInterval[/COLOR]COLOR=#000000[/COLOR];
</b>
[/LEFT]
[/FONT]

by the way, i want the movie clip to move to 300 x , 300 y that’s when it is supposed to hit the person and then disappear, just saw that the y-- is supposed to be y++ let me go test that out.

here are the changes


//box.startDrag(true, 0, 350, 550, 100 );
start.onPress = function():Void{
    this.attachMovie("enemy", "mcEnemy", 1);
    mcEnemy._xscale = 25;
    mcEnemy._yscale = 25;
    mcEnemy._y = 225;
    mcEnemy._x = random(550);
    /*var begin:Number = setInterval(animate, 100);*/
}
box.onMouseDown = function():Void{
    this.play();
};
function animate():Void{
    //this.attachMovie("enemy", "mcEnemy", 1);
    mcEnemy._y = 225;
    mcEnemy._x = random(550);
    if(mcEnemy._y == 300 && mcEnemy._x == 300){
        clearInterval(begin);
    }
    if(mcEnemy._y < 300){
        mcEnemy._y++;
    }
    else{
        mcEnemy._y--;
    }
    if(mcEnemy._x < 300){
            mcEnemy._x++;
            mcEnemy._xscale++;
            mcEnemy._yscale++
    }
    else{
            mcEnemy._x--;
            mcEnemy._xscale++;
            mcEnemy._yscale++;
    }

}
function thisWorks():Void{
    Mouse.hide();
    crosshair._x = _root._xmouse;
    crosshair._y = _root._ymouse;
    box._x = _root._xmouse;
    box._y = _root._ymouse;
}
var workNOW:Number = setInterval(thisWorks,10);

ok i see the problem now, i’ve been attaching the movieclip to the button movieclip called “start”, i said “this.attachMovie” when i shoudl have said “_root.attachMovie” to tell the movieclip to go on the main timeline.

testing… it works! now just need to add a bit more scripting to finish it off