Assuming this class is assigned to a symbol with a linkage identifier of Ball, the following code
creates two new instances of the symbol on the root Timeline of the SWF file. The first instance,
named
, moves 50 pixels each time it is clicked; the second, named
,
ball50_mc
ball125_mc
moves 125 pixels each time its clicked.
this.attachMovie("Ball", "ball50_mc", 10, {distance:50});
this.attachMovie("Ball", "ball125_mc", 20, {distance:125});
220
Chapter 8: Working with Movie Clips
Need help?
Do you have a question about the FLASH MX 2004-USING ACTIONSCRIPT IN FLASH and is the answer not in the manual?
Questions and answers