CR的代码文本

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

2011年11月8日

摘要: 用verbose语法赋值Lingo中的逻辑运算符使用的是单等号"=",编码中使用形如setparamtovalueputvalueintoparam的verbose语法进行赋值较为清晰。关心case-insensitive由于大小写不敏感case-insensitive,要注意字符串的比较。put"A"="a"--1关心case-sensitiveLingo绝大部分时候是大小不敏感的。只有一种情况,就是propertylist的property用字符串时,大小写是敏感的。pl=["m":1,"M" 阅读全文

posted @ 2011-11-08 13:40 mumuliang 阅读(517) 评论(0) 推荐(0) 编辑

摘要: 为什么按钮不响应mouseUp?Tool面板有三种模式,classic/default/flashcomponent。Director默认DefaultMode。在这种模式下的按钮其实是flashcomponent,同时Director又默认将flashcomponent设置成了不响应Director事件。2个解决办法,择其一:1.tool面板设置成classic再往stage拖button;2.选中button,在propertyinspector(位于窗口右边)中找到flashcomponent标签,将其eventPassMode(最后一项)默认的#passNever改成#passAlwa 阅读全文

posted @ 2011-11-08 13:39 mumuliang 阅读(389) 评论(0) 推荐(0) 编辑