晓珍在上个帖子中说
引用:
上面的朋友,我也试用了这个语句。可总提示:“cast member not found!”,能否说清楚些.具体的完整代码?
on getPropertyDescriptionList
description = [:]
addProp description,#dynamic, [#default:1, #format:#boolean, #comment:"Dynamic"]
addProp description,#fieldNum, [#default:1, #format:#integer, \ #comment:"Scroll which sprite:"]
addProp description, #extentSprite,[#default:1,#format:#integer, \ #comment: "Extend Sprite:"]
addProp description,#proportional,[#default:1,#format:#boolean, \ #comment: "Proportional:"]
return description
end
description是一个表,表中的各项需要根据自己的需要添加不同的参数。有兴趣的话,可以看看我发的“声音检测的Behavior”,那里面有一个我前几天刚刚写的行为,用到了这些东西,虽然很简单,但是很容易看懂。