In this thoroughly explained, detailed lesson, I will show you how to import any image into a flash stage and after that, how to copy it many times using a little action script code. Let's start!
First, save the image below!
Create a new flash document. Press Ctrl+J key on the keyboard (Document Properties) and set the width of your document to 400 pixels and the height to 300 pixels.
Call the current layer image. Double-click on its default name (Layer 1) to change it. Press Enter once you have typed in the new name!
Choose now File > Import > Import to stage (Ctrl+R) and import the image that you saved in step 1!
While the image is still selected, press delete key on the keyboard to delete it.
Right Click the image in your library and select Linkage. In the dialog box select Export for Actionscript and give your class a unique name. In this case I've used image.
Create a new layer above the layer image and name it action. After that, select the first frame of layer action and go to the Action Script Panel (F9). Then, enter this code inside the actions panel:
var tile:BitmapData = BitmapData.loadBitmap("image");
We're done now!
Test your Movie and enjoy!
Download source file (.fla)