今天用asfunction时发现了一个问题, <a href:test,param>press</a>这样写在桢上是没问题的,点击后会调用test方法,但是如果用外部as类就出现了问题,点击后无法调用test了,解决方法,先用一个实例指向此as类,例如:_root.a = new a(),a.as就是这个要写asfunction的类,_root.a即为此类的实例,然后把 <a href:test,param>press</a>改成<a href:_root.a.test,param>press</a>就ok了!不知道这是不是mm一个bug呢?
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}