
362
Chapter 12: Methods
The following table shows the return value for each type of object recognized by
ilk()
:
Parameters
object
Required. Specifies the object to test.
type
Optional. Specifies the type to which
object
is compared. If the object is of the specified
type, the
ilk()
function returns
TRUE
. If the object is not of the specified type, the
ilk()
function returns
FALSE
.
Type of
Object
ilk(Object) returns
ilk(Object, Type)
returns 1 only if
Type =
Example
linear list
#list
#list or #linearlist ilk ([1,2,3])
property list
#proplist
#list or #proplist
ilk ([#his: 1234, #hers: 7890])
integer
#integer
#integer or #number
ilk (333)
float
#float
#float or #number
ilk (123.456)
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)
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...