234
The
fileName of window
property accepts URLs as a reference. However, to use a movie file
from a URL and minimize the download time, use the
downloadNetThing
or
preloadNetThing
command to download the movie file to a local disk first and then set
fileName
window property
to the file on the local disk.
This property can be tested and set.
Examples
This statement assigns the file named Control Panel to the window named Tool Box:
window("Tool Box").fileName = "Control Panel"
This statement displays the filename of the file assigned to the window named Navigator:
put window("Navigator").fileName
These statements download a movie file from a URL to the Director application folder and then
assign that file to the window named My Close Up:
downLoadNetThing("http://www.cbDeMille.com/Finale.DIR",the \
applicationPath&"Finale.DIR")
window("My Close Up").fileName = the applicationPath&"Finale.DIR"
See also
downloadNetThing
,
preloadNetThing()
fill()
Syntax
imageObject
.fill(
left
,
top
,
right
,
bottom
,
colorObjectOrParameterList
)
imageObject
.fill(point(
x, y
), point(
x, y
),
colorObjectOrParameterList
)
imageObject
.fill(
rect
,
colorObjectOrParameterList
)
Description
This function fills a rectangular region with the color
colorObject
in the given image object.
You specify the rectangle in any of the three ways shown. The points specified are relative to the
upper-left corner of the given image object. The return value is 1 if there is no error, zero if there
is an error.
If you provide a
parameterList
instead of a simple
colorObject
, the rectangle is filled with a
shape you specify with these parameters:
For best performance, with 8-bit or lower images the
colorObject
should contain an indexed
color value. For 16- or 32-bit images, use an RGB color value.
Examples
This statement renders the image object in the variable
myImage
completely black:
myImage.fill(myImage.rect, rgb(0, 0, 0))
Property
Description
#shapeType
A symbol value of #oval, #rect, #roundRect, or #line. The default is #line.
#lineSize
The width of the line to use in drawing the shape.
#color
A color object, which determines the fill color of the shape.
#bgColor
A color object, which determines the color of the shape’s border.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...