Director实例剖析.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 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) --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 用途:此属性决定了精灵矩形边框的

文档评论(0)

enxyuio + 关注
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档