Create a new Flash document and save it as a embeddedmc.fla.
Draw a new shape on the stage, or select File > import > Import to Stage, and select an image that is about 100 times 100 pixels high like pixels.
Select the shape on the stage or the image you imported in the previous step, and then press F8 to open the Convert to Symbol dialog box and convert it.
Set the behavior to the movie clip and enter a descriptive symbol name. Select the square on the left of the registration point grid, and then click Advanced to switch to advanced mode if it has not been switched.
Select the export for ActionScript and export on first frame check box.
Enter the link identifier img_id in the identifier text box, and then click OK.
Add the following ActionScript to frame 1th in the main timeline:
The code is as follows |
Copy Code |
This.createtextfield ("Textfield_txt", 10, 0, 0, 300, 200); Textfield_txt.html = true; Textfield_txt.htmltext = "<p>here ' a movie clip symbol: |
In order to display the embedded movie clips correctly and completely, the registration points for their components should be located at the point (0,0).
Save changes to the Flash document.
Select Control > Test movie to test the Flash document.