[AS3] Help with containers (add/rem displayObjects)

Hello,
I do not understand how to add dynamically set objects into a container.
To my understanding I have the following code:


package  {
	import ... ;
	public class titlehere extends MovieClip{
		public var ...;

		public function titlehere(){
			var container:MovieClip = new MovieClip();
			container.x = 0;
			container.y = 0;
			addChild(container);
			//generate dynamically a bunch of objects inside container.
			//let's say TunaFish Objects.
			**for(i=0;i < 100; i++){
				container.addChild(tunafish(i));
			}**
		}
	}
}

I have read several tutorials that have achieved similar effects by creating an array and pushing the objects to that array. Is that the new way of implementing a container?

If so, how does one clear a container (/array)?

Thanks,
kpxnamja