问题
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