Sign in to follow this  
Emilio

Dynamic application

Recommended Posts

That has nothing to do with TransformManager - it should be handled by the Flash/Flex component itself, like the TextArea component.

Share this post


Link to post
Share on other sites

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()?

Share this post


Link to post
Share on other sites

No, you are passing the object's name (text) instead of the actual object reference.

 

BAD: manager.deselectItem(myObject.name);

GOOD: manager.deselectItem(myObject);

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.