Attachmovie (movieclip. attachmovie method) Public attachmovie (ID: String, name: String, depth: Number, [initobject: object]): movieclip retrieves a component from the library and attaches it to the video clip.
Use movieclip. removemovieclip () or movieclip. unloadmovie () to delete the SWF file appended using the attachmovie () method. You can create child classes to expand the movieclip class methods and event processing functions. Availability: ActionScript 1.0 and Flash Player 5Parameters: ID: String-the name of the link to the video clip element to be appended to a video clip on the stage. This is the name entered in the "identifier" field in the "Link Properties" dialog box. Name: String-the unique name of the video clip instance appended to the video clip. Depth: Number-an integer that specifies the depth level of the position where the SWF file is stored. Initobject: object [Optional] (supported by Flash Player 6 and later) contains the object to be used to fill in the attributes of the newly attached video clip. This parameter enables dynamically created video clips to receive the editing parameters. If initobject is not an object, ignore it. All attributes of initobject have been copied to the new instance. The attributes specified by initobject are available for constructors.