Hey everyone,

Ok so I have this orangeBall that I would like to attach onto the main movie. Now the problem is not that I dont know how to do it rather that Im going to need more then one orange ball.

These orange balls when placed on the screen (middle/right) will move across the screen and the unload themselves. I can do that just fine and have done it in the past.

The problem lies however in getting the orange ball to appear multiple times because it requires concatentation (sp?) and I dont think Im doing it right haha.




Anyways, heres what the code looks like:

code:

onLoad = function () {
orangeBalls = 1;
};
//
onEnterFrame = function () {
seconds = Math.floor(getTimer()/1000);
if (seconds/5 == 1) {
_root.attachMovie("orange", "orange"+[orangeBalls], 0);
_root.orange[orangeBalls]._x = 620;
_root.orange[orangeBalls]._y = 292;
}
};



So when the movie loads, it sets orangeBalls to 1 which is used in concating the attached Movieclips. I then set a timer that checks the seconds.

Following that is an IF statment that checks if and when 5 seconds goes by and if so then it attempts to attach a movie.

It then sets the coordinates of the movie to 620 and 292. The problem is that its not attaching, its that its not putting them at those coordinates. Instead it sticks it at the upper left corner.

If anyone could please give me a hand I would be greatful