MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 728

Director scripting reference
Hello, I am your AI assistant. How can I help you?
Table of Contents

Advertisement

-- Lingo syntax
on setDefaultRectSize(whichCast)
repeat with i = 1 to castLib(whichCast).member.count
if member(i, whichCast).type = #flash then
member(i, whichCast).defaultRectMode = #fixed
member(i, whichCast).defaultRect = rect(0,0,320,240)
end if
end repeat
end
// JavaScript syntax
function setDefaultRectSize(whichCast) {
var i = 1;
while( i < (castLib(whichCast).member.count) + 1)
var tp = member(i, whichCast).type;
if (tp = "flash") {
member(i, whichCast).defaultRectMode = symbol("fixed");
member(i, whichCast).defaultRect = rect(0,0,320,240);
i++;
}
}
}
See also
flashRect,
defaultRect
density
Usage
member(whichCastmember).shader(whichShader).density
member(whichCastmember).model(whichModel).shader.density
member(whichCastmember).model(whichModel).shaderList{[index]}.\
density
Description
3D
and
#engraver
create the effects of these specialized shader types. Higher values result in more lines or dots.
For
shaders, this property adjusts the number of lines used to create the image. The
#engraver
range is 0 to 100 and the default value is 40.
For
#newsprint
value can be from 0 to 100 and the default value is 45.
Example
The following statement sets the
lines used by this
member("scene").shader("EngShader").density = 10
The following statement sets the
by this
#newsprint
member("scene").shader("gbShader").density = 100
See also
newShader
728
Chapter 14: Properties
shader property; adjusts the number of lines or dots used to
#newsprint
shaders, this property adjusts the number of dots used to create the image. The
density
shader to create its stylized image will be coarse and far apart.
#engraver
density
shader to create its stylized image will be very fine and close together.
property of the shader named EngShader to 10. The
property of the shader gbShader to 100. The dots used

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?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents