
blend
语法: the blend of sprite whichSprite
用途: 此属性决定了精灵的混合百分比
举例: set the blend of sprite 3 to 40
bottom
语法: the bottom of sprite whichSprite
用途: 此属性决定了精灵矩形边框的下部边缘的坐标值,这个属性可以用来测试但是不能直接修改
举例: set lowest = put the botiom ofsprite (i + l)
castLibNUm
语法: the castLibNum of sprite whichSprite
用途: 此属性决定了精灵所使用的造型成员的Cast表的编号,可以被测试和修改。如果更改此属性但是不修改castnum属性, Director会使用原来的造型成员编号在新的Cast表中为精灵寻找造型成员
举例: set the castLibNum of sprite 3 to the number ofcastlib“Newcast”
constrainH
语法: constrainH(whichsprite, va1ue)
用途: 此函数首先计算表达式va1ue的值,然后和精灵的左右矩形边缘坐标进行比较。如果表达式在精灵左右矩形边缘之间,就返回这个表达式;如果这个表达式小于精灵矩形边缘的左边的坐标值,就返回精灵矩形左边边缘的坐标值;如果表达式大于精灵矩形边缘右边的坐标值,就返回精灵矩形右边边缘的坐标值
举例: put constrainH(1, 20)
--30
put constrainH(1,60)
--60
put constrainH(1,100)
constrainV
语法: constrainV(whichsprite, va1ue)
用途: 和constrainH类似,但是是和精灵矩形边枢的上下边缘进行比较。
举例: set the locV of sprite l to constrainV(3,the mouseV)
constraint
语法: the constraint of sprite whichSprite
用途: 此属性可以将一个精灵的移动范围限制在另一个精灵的矩形范围之内。
举例: set the constraint of sprite l to 2
cursor
语法: the cursor of sprite
用途: 此属性决定了鼠标在指定的精灵上面的时候使用的光标形状。
举例: set the cursorofsprite 20 to 4
editable
语法: the editable of sprite whichSprite
用途: 此属性决定了字段精灵是否能在电影播放期间被编辑。
举例: set the editable ofsprite 5 to TRUE
foreColor
语法: the foreColor of sprite whichSprite
用途: 此属性决定了精灵的前景色,但是只有在1位颜色深度的位图精灵和形状精灵上才会是精灵显示发生改变,就像在工具栏中选择了前景色一样。
举例; set the foreColor of sprite l0 to 36
height
语法: the height of sprite whichSprite
用递: 此属性决定的是精灵的垂直高度,以像素为单位。
举例: set the height ofsprite l0 to 26
ink
语法: the ink of sprite whichSprite
用途: 此属性决定的是精灵的颜料类型,其有效的颤料类型值如下:
0——Copy
1——Transparent
2——Reverse
3——Ghost
4——Noi copy
5——Not transparent
6——Not reverse
7——Not ghost
8——Matte
9——MaSk
32——Blelfld
33——Add pin
34——Add
35——Subtract pin
36——Background transparent
37——Lighiesi”
38——Subtract
39——Darkelst
举仔个set the ink of sprite l to 8
left
语法: the left of sprite whichSprite
用途:此属性决定了精灵矩形边框的左边框的坐标。
举例: set vLowest = the left of sprite (i + l)
lineSize
语法: the lineSize of sprite whichSprite
用途:此属性决定了形状精灵的线宽类型,以像素为单位。
举例: set the lineSize ofsptiie 4 to 3
loc
语法: the loc of sprite whichSprite
用途:此属性决定了精灵的注册点的坐标,其值是一个点坐标
举例: put the loc ofsprite 6
--point(50, 100)
locH
语法: the locH of sprite whichSprite
用途:此属性决定了精灵注册点的水平位置。
举例: set the locH ofsprite l5 to the mouseH
locV
语法: the locV of sprite whichSprite
用途:此属性决定了精灵注册点的垂直位置。
举例: set the locV ofsprite l5 to 240
member
语法: ihe member of sprite whichSprite
用途:此属性决定了精灵所使用的造型成员和其Cast表。
举例: set the member ofsprite l5 = member 3 ofcastLib 4
memberNum
语法: the memberNum of sprite whichSpriie
用途:此属性仅仅决定精灵所使用的造型成员,而不决定造型成员所在的Cast表
举例: set the memberNu