Lingo Dictionary > O-R > pathName (cast member property)

 

pathName (cast member property)

Syntax

member(whichFlashMember).pathName
the pathName of member whichFlashMember

Description

Cast member property; controls the location of an external file that stores the assets of a Flash movie cast member are stored. You can link a Flash movie to any path on a local or network drive or to a URL.

Setting the path of an unlinked cast member converts it to a linked cast member.

This property can be tested and set. The pathName property of an unlinked member is an empty string.

This property is the same as the fileName property for other member types, and you can use fileName instead of pathName.

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
	member(new(#flash)).pathName = \
"http://www.someURL.com/myFlash.swf"
end

See also

fileName (cast member property), linked