Hello Jack,
First of all, I bought the TransformManager about a week ago and I am really impressed on performance and ease of use, as with all your classes. Congratulations
I wanted to ask you why there isn't a deleteItem() and deleteItems() method, just as selectItem() and selectItems() work. I'm just wondering why you have to select an item first and then use deleteSelection(). You can see the handles when you try to delete an item using a function rather than the delete key for a split second.
I tried modifying your class to merge selectItem and deleteSelection but for some reason it always returns the item as null, even if I dispatch the function on an object already added to the TransformManager
public function deleteItem($item:*):void {
var item:TransformItem = findObject($item); //makes it possible to pass in DisplayObjects or TransformItems
if (item == null) {
trace("TransformManager Error: deleteItem() and deleteItems() only work with objects that have a TransformItem associated with them. Make sure you create one by calling TransformManager.addItem() before attempting to select it.");
} else {
item.deleteObject();
}
}
Any ideas on how to do this? Even if I need to hide the handles that would be fine, but I can only change the handleFillColor and lineColor to uint, I can't control their alpha or visibility.
Thank you! Congratulations again on this amazing class!
Fernando Toledo