Step-1: Create an input text(box) and give the name “n” to it in the
properties panel.
Step-2: Create a button with the name on it as “click”.
Step-3: Create an image and convert it into movie click and give name as
“face” in the properties panel.
Step-4: Select the button and open the action panel and write the
following code in the script pane.
on (release) {
count=1;
while(count<=Number(n.text))
{
duplicateMovieClip("_root.face", "face"+count, count);
setProperty("_root.face", _x, 3+count*70);
setProperty("_root.face", _y, 300+count*1);
count++;
}
}
Step-5: Press ctrl+enter to test the movie and enter any number in the
input box and click on the button then the duplicate images will
be generated