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]