User Guide
265
Possible getError() integer values and corresponding getErrorString() messages are:
Example
This handler uses getError() to determine whether an error occurred for Shockwave Audio cast
member Norma Desmond Speaks, and if so, uses getErrorString to obtain the error message
and assign it to a field cast member:
on exitFrame
if member("Norma Desmond Speaks").getError() <> 0 then
member("Display Error Name").text = member("Norma Desmond \
Speaks").getErrorString()
end if
end
See also
getError()
getFlashProperty()
Syntax
sprite(spriteNum).getFlashProperty("targetName", #property)
Description
This function allows Lingo to invoke the Flash action script function getProperty() on the
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.
The
targetName is the name of the movie clip or level whose property you want to get within the
given Flash sprite.
The
#property parameter is the name of the property to get. These movie clip properties can be
tested:
#posX, #posY, #scaleX, #scaleY, #visible, #rotate, #alpha, #name, #width, #height,
#target, #url, #dropTarget, #totalFrames, #currentFrame, #cursor, and
#lastframeLoaded.
To get a global property of the Flash sprite, pass an empty string as the
targetName. These global
Flash properties can be tested:
#focusRect and #spriteSoundBufferTime.
See the Flash documentation for descriptions of these properties.
Example
This statement gets the value of the #rotate property of the movie clip Star in the Flash member
in sprite 3:
sprite(3).setFlashProperty("Star", #rotate)
setFlashProperty()
getError() value getErrorString() message
0OK
1memory
2 network
3playback device
99 other