- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Director实例剖析:Director的常用Lingo命令和句柄
常用lingo
利用控制director电影的重要方面就是利用控制各个方面的属性,下面列出常用的精灵属性、字段属性、造型成员属性,以及其他的一些常用的命令和句柄。
1.常用精灵属性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)--30put constrainh(1,60)--60put 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 2cursor语法: 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——copy1——transparent2——reverse3——ghost4——noi copy5——not transparent6——not reverse7——not ghost8——matte9——mask32——blelfld33——add pin34——add35——subtract pin36——background transparent37——lighiesi”38——subtract39——darkelst举仔个set the ink of sprite l to 8
left语法: the left of sprite whichsprite用途:此属性决定了精灵矩形边框的
文档评论(0)