EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 1001

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
sourceRect 1001
source
Usage
sprite(whichSprite).camera.backdrop[backdropIndex].source
member(whichCastmember).camera(whichCamera).backdrop
[backdropIndex].source
sprite(whichSprite).camera.overlay[overlayIndex].source
member(whichCastmember).camera(whichCamera).overlay
[overlayIndex].source
Description
3D backdrop and overlay property; allows you to get or set the texture to use as the source image
for the overlay or backdrop.
Example
This statement sets the source of backdrop 1 to the texture Cedar:
sprite(3).camera.backdrop[1].source =
sprite(3).member.texture("Cedar")
See also
bevelDepth, overlay
sourceFileName
Usage
flashCastMember.sourceFileName
Description
Flash cast member property; specifies the pathname of the FLA source file to be used during
launch-and-edit operations. This property can be tested and set. The default is an empty string.
Example
This Lingo sets the sourceFileName of the Flash cast member “SWF” to
C:\FlashFiles\myFile.fla:
member("SWF").sourceFileName = "C:\FlashFiles\myFile.fla"
sourceRect
Usage
-- Lingo syntax
windowObjRect.sourceRect
// JavaScript syntax
windowObjRect.sourceRect;
Description
Window property; specifies the original Stage coordinates of the movie playing in a window.
Read-only.
This property is useful for returning a window to its original size and position after it has been
dragged or its rectangle has been set.