### new

Syntax: | `new(#flash,` `whichFlashMember``)`
Type: | Command
Description: | This command creates a new, blank Flash movie cast member within the current cast. After you have created the Flash movie cast member, you can set the cast member's properties, such as the `linked of member` and the `pathname of member`, to finish creating the cast member.
| You can specify the cast member number using the `whichFlashMember` parameter. The `new(#flash)` form of the command creates a cast member in the first open slot within the current cast and returns the number of the newly created cast member.
Example: | This `startMovie` script creates a new Flash cast member using the `new` command, sets the newly created cast member's `linked` property so that the cast member's assets are stored in an external file, and then sets the cast member's `pathName` property to the location of a Flash movie on the World Wide Web.

    on startMovie
    	set flashCastMember = new(#flash)
    	set the linked of member flashCastMember = TRUE
    	set the pathName of member flashCastMember = "http://www.someURL.com/myFlash.swf"
    end

Previous | Next