CR的代码文本

all for learning about the world
  订阅 订阅  :: 管理

Lingo05 - Behaviors

Posted on 2011-10-26 17:53  mumuliang  阅读(145)  评论(0编辑  收藏  举报

Dean's: http://www.deansdirectortutorials.com/Lingo/paramDialog.htm

 

说,behavior是脚本对象,就好像sound,text, image什么的一样,可以有自己的property。

 

 

Lingo的有四种脚本:Behavior,cast member script,movie script和 parent script。
Behavior是Sprite或Frame上的脚本。
Sprite有一个属性scriptInstanceList,用来保存该sprite所有的behavior instance。

 

Behavior之间的通信方式
1. global variable
2. sendSprite (whichSprite, #customMessage, arguments) 
3. sendAllSprites (#customMessage, arguments)
4. call (#customMessage, script, arguments

 

 

复习命令: 

addProp    property list的