[Flash 8] 3d animation stops after 4 seconds

[SIZE=2]Hello guys,

How can I make this 3d animation stop after 4 seconds?

Here is the code and I’m attaching the .fla so you can see what I’m talking about.

 ActionScript Code:
 [FONT=Courier New][LEFT][COLOR=#000000]**var**[/COLOR] sensitivity:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]2[/COLOR];

[COLOR=#808080]//Sensitivity of movement[/COLOR]
[COLOR=#000000]var[/COLOR] followmouse:[COLOR=#0000ff]Boolean[/COLOR] = [COLOR=#000000]false[/COLOR];
[COLOR=#808080]//Turn with the mouse?(true or false) true = yes, false = no[/COLOR]
[COLOR=#000000]var[/COLOR] XRadius:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]220[/COLOR];
[COLOR=#808080]//How wide to make the X spread[/COLOR]
[COLOR=#000000]var[/COLOR] YRadius:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]50[/COLOR];
[COLOR=#808080]//How wide to make the Y spread[/COLOR]
[COLOR=#000000]var[/COLOR] Xpos:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#0000ff]Stage[/COLOR].[COLOR=#0000ff]width[/COLOR]/[COLOR=#000080]2[/COLOR];
[COLOR=#808080]//The X point to move around[/COLOR]
[COLOR=#000000]var[/COLOR] Ypos:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]300[/COLOR];
[COLOR=#808080]//The Y point to move around[/COLOR]
[COLOR=#000000]var[/COLOR] ballNumber:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]1[/COLOR];
[COLOR=#808080]//The number of the first ball[/COLOR]
[COLOR=#000000]var[/COLOR] perspective:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]100[/COLOR];
[COLOR=#808080]//Set the perspective, best between 0 and 150, varying with the Ypos[/COLOR]
[COLOR=#808080]//However, it will require tinkering until you happy with it[/COLOR]
[COLOR=#000000]var[/COLOR] root:[COLOR=#0000ff]MovieClip[/COLOR] = [COLOR=#0000ff]this[/COLOR];
[COLOR=#808080]//Store the parent as the root variable[/COLOR]
[COLOR=#0000ff]MovieClip[/COLOR].[COLOR=#0000ff]prototype[/COLOR].[COLOR=#000080]setBall[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]deg[/COLOR] = amount;
[COLOR=#808080]//Sets the starting degrees to the “amount” argument[/COLOR]
[COLOR=#000000]var[/COLOR] thisShad:[COLOR=#0000ff]MovieClip[/COLOR] = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]duplicateMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]“shadow”[/COLOR]+[COLOR=#0000ff]getNextHighestDepth[/COLOR]COLOR=#000000[/COLOR], [COLOR=#0000ff]getNextHighestDepth[/COLOR]COLOR=#000000[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#0000ff]_alpha[/COLOR]:[COLOR=#000080]60[/COLOR], [COLOR=#0000ff]_yscale[/COLOR]:-[COLOR=#000080]100[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#808080]//duplicate it to make a shadow[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]onEnterFrame[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]ang[/COLOR] = [COLOR=#000000]([/COLOR][COLOR=#0000ff]this[/COLOR].[COLOR=#000080]deg[/COLOR] += COLOR=#000000[/COLOR]/[COLOR=#000080]100[/COLOR]sensitivity[COLOR=#000000])[/COLOR][COLOR=#0000ff]Math[/COLOR].[COLOR=#0000ff]PI[/COLOR]/[COLOR=#000080]180[/COLOR];
[COLOR=#808080]//Rotate the angle[/COLOR]
thisShad.[COLOR=#0000ff]_xscale[/COLOR] = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_xscale[/COLOR]=[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_yscale[/COLOR]=COLOR=#000000[/COLOR]/COLOR=#000000[/COLOR][COLOR=#000080]100[/COLOR];
[COLOR=#808080]
//Scale the MovieClip depending on it’s position*[/COLOR]
thisShad.[COLOR=#0000ff]_yscale[/COLOR] = -[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_yscale[/COLOR];
[COLOR=#808080]//Scale the shadow[/COLOR]
thisShad.[COLOR=#0000ff]_x[/COLOR] = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR]=[COLOR=#000000]([/COLOR]XRadius*[COLOR=#0000ff]Math[/COLOR].[COLOR=#0000ff]sin[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]([/COLOR]followmouse ? -[COLOR=#000080]1[/COLOR] : [COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR]+Xpos;
[COLOR=#808080]
//Move along the X*[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]swapDepths[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Put the depth to it’s Y scale[/COLOR]
thisShad.[COLOR=#0000ff]swapDepths[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Put the shadow’s depth to it’s Y scale[/COLOR]
thisShad.[COLOR=#0000ff]_y[/COLOR] = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_y[/COLOR]=YRadius*[COLOR=#0000ff]Math[/COLOR].[COLOR=#0000ff]cos[/COLOR]COLOR=#000000[/COLOR]+Ypos;
[COLOR=#808080]//Move along the Y[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]onRollOver[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]//The rollOver actions[/COLOR]
thisShad.[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Set shadow to the rollOver Frame[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Go to the rollOver Frame[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]onRollOut[/COLOR] = [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]onReleaseOutside[/COLOR]=[COLOR=#000000]function[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#808080]//The rollOut actions[/COLOR]
thisShad.[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Set shadow to the rollOver Frame[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]gotoAndStop[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]//Go to the rollOut Frame[/COLOR]
[COLOR=#000000]}[/COLOR];
[COLOR=#000000]}[/COLOR];
[COLOR=#808080]// <!------ Note: This Is Automatic Spacing Only, Not required Otherwise [/COLOR]
[COLOR=#0000ff]while[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
ballNumber++;
[COLOR=#000000]}[/COLOR]
[COLOR=#808080]
//Scan for all ball Movie Clips
[/COLOR]
[COLOR=#0000ff]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]var[/COLOR] i:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#000080]1[/COLOR]; i<ballNumber; i++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]
root[COLOR=#000000][[/COLOR][COLOR=#ff0000]“ball”[/COLOR]+i[COLOR=#000000]][/COLOR].[COLOR=#000080]setBall[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]

bar.[COLOR=#0000ff]swapDepths[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#808080]*//Put the bar’s depth to it’s 300000 *[/COLOR]

[/LEFT]
[/FONT]

Please help! :frowning:
[/SIZE]