setFlashProperty()
531
Parameters
stringAttrs
Required. A string that specifies the finder information.
See also
Fileio
setFlashProperty()
Usage
-- Lingo syntax
spriteObjRef
.setFlashProperty(
targetName
,
#property
,
newValue
)
// JavaScript syntax
spriteObjRef
.setFlashProperty(
targetName
,
#property
,
newValue
);
Description
Function; allows Lingo to call the Flash action script function
setProperty()
on the given Flash
sprite. Use the
setFlashProperty()
function to set the properties of movie clips or levels within
a Flash movie. This is similar to setting sprite properties within Director.
To set a global property of the Flash sprite, pass an empty string as the
targetName
. You can set
the global Flash properties:
#focusRect
and
#spriteSoundBufferTime
.
See the Flash documentation for descriptions of these properties.
Parameters
targetName
Required. Specifies the name of the movie clip or level whose property you want to
set within the given Flash sprite.
property
Required. Specifies the name of the property to set. You can set the following movie
clip properties:
#posX
,
#posY
,
#scaleX
,
#scaleY
,
#visible
,
#rotate
,
#alpha
, and
#name
.
newValue
Required. Specifies the new value.
Example
This statement sets the value of the
#rotate
property of the movie clip Star in the Flash member
in sprite 3 to 180:
-- Lingo syntax
sprite(3).setFlashProperty("Star", #rotate, 180)
// JavaScript syntax
sprite(3).setFlashProperty("Star", symbol("rotate"), 180);
See also
getFlashProperty()
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...