User Guide

226
externalParamValue()
Syntax
externalParamValue(n)
Description
Function; returns a specific value from the external parameter list in an HTML <EMBED> or
<OBJECT> tag. This function is valid only for Shockwave movies that are running in a browser.
It cant be used with movies running in the authoring environment or projectors.
If n is an integer, externalParamValue returns the nth parameter value from the external
parameter list.
If n is a string, externalParamValue returns the value associated with the first name that
matches
n. The match isnt case sensitive. If no such parameter value exists,
externalParamValue returns VOID.
This functions behavior in an applet differs from that in other Director movies. In an applet,
externalParamValue does the following:
Returns the applets parameters instead of the <EMBED> tag parameters.
Accepts only string parameters.
Returns a zero-length string rather than VOID.
See “Parameters for OBJECT and EMBED tags” and “Parameters accessible from Lingo” on the
Director Developers Center Web site.
Example
This statement places the value of an external parameter in the variable myVariable:
if externalParamName ("swURLString") = "swURLString" then
myVariable = externalParamValue ("swURLString")
end if
See also
externalParamCount(), externalParamName()
extractAlpha()
Syntax
imageObject.extractAlpha()
Description
This function copies the alpha channel from the given 32-bit image and returns it as a new image
object. The result is an 8-bit grayscale image representing the alpha channel.
This function is useful for downsampling 32-bit images with alpha channels.
Example
This statement places the alpha channel of the image of member 1 into the variable mainAlpha:
mainAlpha = member(1).image.extractAlpha()
setAlpha()
, useAlpha