304
Examples
The following
ilk
statement identifies the type of the object named Bids:
Bids = [:]
put ilk( Bids )
-- #proplist
The following
ilk
statement tests whether the variable Total is a list and displays the result in the
Message window:
Total = 2+2
put ilk( Total, #list )
-- 0
In this case, since the variable Total is not a list, the Message window displays 0, which is the
numeric equivalent of FALSE.
string
#string
#string
ilk ("asdf")
rect
#rect
#rect or #list
ilk (sprite(1).rect)
point
#point
#point or #list
ilk (sprite(1).loc)
color
#color
#color
ilk (sprite(1).color)
date
#date
#date
ilk (the systemdate)
symbol
#symbol
#symbol
ilk (#hello)
void
#void
#void
ilk (void)
picture
#picture
#picture
ilk (member (2).picture)
parent script
instance
#instance
#object
ilk (new (script "blahblah"))
xtra instance
#instance
#object
ilk (new (xtra "fileio"))
member
#member
#object
or
#member
ilk (member 1)
xtra
#xtra
#object
or
#xtra
ilk (xtra "fileio")
script
#script
#object
or
#script
ilk (script "blahblah")
castlib
#castlib
#object
or
#castlib
ilk (castlib 1)
sprite
#sprite
#object
or
#sprite
ilk (sprite 1)
sound
#instance
or
#sound
(when
Sound Control
Xtra is not
present)
#instance
or #sound
ilk (sound "yaddayadda")
window
#window
#object
or
#window
ilk (the stage)
media
#media
#object
or
#media
ilk (member (2).media)
timeout
#timeout
#object
or
#timeout
ilk (timeOut("intervalTimer"))
image
#image
#object
or
#image
ilk ((the stage).image)
Type of Object ilk(Object)
returns
ilk(Object, Type)
returns 1 only if Type =
Example
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...