
Lingo Dictionary
157
The following statement copies part of the image of member Happy into part of member flower.
The part of the image copied from Happy is within rectangle(0, 0, 200, 90). It is pasted into
rectangle(20, 20, 100, 40) within the image of member flower. The copied portion of Happy is
resized to fit the rectangle into which it is pasted.
member("flower").image.copyPixels(member("Happy").image,\
rect(20, 20, 100, 40), rect(0, 0, 200, 90))
The following statement copies the entire image of member Happy into a rectangle within the
image of member flower. The rectangle into which the copied image of member Happy is pasted
is the same size as the rectangle of member Happy, so the copied image is not resized. The blend
level of the copied image is 50, so it is semi-transparent, revealing the part of member flower it is
pasted over.
member("flower").image.copyPixels(member("Happy").image,\
member("Happy").rect, member("Happy").rect, [#blendLevel: 50])
See also
ink
,
color()
copyrightInfo
Syntax
member(
whichCastMember
).copyrightInfo
copyrightInfo of member
whichCastMember
Description
Shockwave Audio (SWA) cast member property; displays the copyright text in a SWA file. This
property is available only after the SWA sound begins playing or after the file has been preloaded
using the
preLoadBuffer
command.
This property can be tested and set.
Example
This statement tells Director to display the copyright information for the Shockwave Audio file
SWAfile in a field cast member named Info Display.
Dot syntax:
set whatState = the state of member "SWAfile"
if whatState > 1 AND whatState < 9 then
put member("SWAfile").copyrightInfo into member("Info Display")
end if
Verbose syntax:
set whatState = the state of member "SWAfile"
if whatState > 1 AND whatState < 9 then
put the copyrightInfo of member "SWAfile" into member "Info Display"
end if
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...