I am new to AS3 and i need to make a game that can juggle several balls on a platform (controlled by a user). So far i've got one ball that can juggle, but i dont know how to import more balls. I want the user to be able to select a number from one to ten, then the program imports that many balls onto the screen and the user has got to try and keep them all up. HELP? My coding isn't very good, but if u want to see my code, i suppose i could email it to you.

Member Avatar for rajarajan2017

You can create many balls for a single ball clip in library. Just with the loop

for (i=0;i<100;i++)
{
  this["ball"+i]=new ball();
  addChild(this["ball"+i]);
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.