Help me to find out the object path in flash

半城伤御伤魂 提交于 2019-12-13 09:14:24

问题


Help me to get the target path of an object.So that i can give properties/methods to that object.Actually i need the target path when an event occurs.like on click/keyup/enterframe..and so on.

var curinstance:Object = ev.target.valueOf();

In the above code i get the instance name of the particular object i cant give properties and methods to it.


回答1:


ev.target.name gives you the path of the object.

Rob



来源:https://stackoverflow.com/questions/4680323/help-me-to-find-out-the-object-path-in-flash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!