MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 331

Director scripting reference
Table of Contents

Advertisement

Parameters
None.
See also
Fileio,
openFile()
getFlashProperty()
Usage
-- Lingo syntax
spriteObjRef.getFlashProperty(targetName, symProp)
// JavaScript syntax
spriteObjRef.getFlashProperty(targetName, symProp);
Description
This function allows Lingo to invoke the Flash action script function
given Flash sprite. This Flash action script function is used to get the value of properties of movie
clips or levels within a Flash movie. This is similar to testing sprite properties within Director.
To get a global property of the Flash sprite, pass an empty string as the
Flash properties can be tested:
See the Flash documentation for descriptions of these properties.
Parameters
Required. A string that specifies the name of the movie clip or level whose property
targetName
you want to get within the given Flash sprite.
Required. A symbol that specifies the name of the property to get. Valid values include:
symProp
,
,
#posX
#posY
#scaleX
,
,
#target
#url
#lastframeLoaded
Example
This statement gets the value of the
in sprite 3:
-- Lingo syntax
sprite(3).setFlashProperty("Star", #rotate)
sprite(3).getFlashProperty()
// JavaScript syntax
sprite(3).setFlashProperty("Star", symbol("rotate"));
sprite(3).getFlashProperty();
#focusRect
,
,
#scaleY
#visible
,
#dropTarget
#totalFrames
.
#rotate
and
#spriteSoundBufferTime
,
,
,
#rotate
#alpha
#name
,
,
#currentFrame
#cursor
property of the movie clip Star in the Flash member
on the
getProperty()
. These global
targetName
.
,
,
,
#width
#height
, and
getFlashProperty()
331

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

This manual is also suitable for:

Director mx 2004

Table of Contents