Share Posted March 10, 2010 That has nothing to do with TransformManager - it should be handled by the Flash/Flex component itself, like the TextArea component. Link to comment Share on other sites More sharing options...
Author Share Posted June 9, 2010 Hello, i have a question, I can deselect succesfully all of the objects using this if (manager.selectedItems.length > 0) { manager.deselectAll(); } But now only need to deselect the current selected object and I try something like this without success, namSelect=e.currentTarget.name; var nombre:String for (var k:Number = 0; k < pictures.length; k++) { if (pictures[k].name==namSelect) { nombre=k; break; } } if (manager.selectedItems.length > 0) { manager.deselectItem(nombre); } This is the correct form to use this function deselectItem()? Link to comment Share on other sites More sharing options...
Share Posted June 9, 2010 No, you are passing the object's name (text) instead of the actual object reference. BAD: manager.deselectItem(myObject.name); GOOD: manager.deselectItem(myObject); 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