Code in frame 1 layer 1:

//makeaSprite.fla
//Demonstrates creating a sprite at run time

_root.attachMovie("ball", "theBall", 10);
theBall._x = 100;
theBall._y = 100;