Share Posted October 23, 2012 Hello, I added a TransfromEvent.MOVE Listener to the TransformManager, and i need to know the moviclip that was affected. I cant seem to find a way to do this. Tank you in advance. Link to comment Share on other sites More sharing options...
Share Posted October 24, 2012 The TransformEvent that gets passed to your event handler has an "items" property which is an array of the affected TransformItem instances. Remember, there can be more than one selected at a time (hence the array). So you can just grab the item from there: function onMove(event:TransformEvent):void { trace("first item affected: " + event.items[0] + " which is DisplayObject: " + event.items[0].targetObject); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now