Jump to content
Search Community

applyFullXML and crop instances

Guest rlhoban
Moderator Tag

Recommended Posts

Guest rlhoban

Hi Jack,

 

When I applyFullXML to my manger (which contains items and crop instances), any crop object's targets are left unaffected (the selection and crop instances do move) until the user clicks the selection box, then the crop instance updates it's target and pull the target to the appropriate location. How would I go about triggering this update programmatically to provide a better user experience?

 

Best Regards,

 

Rich

Link to comment
Share on other sites

Guest rlhoban

Hi Jack,

 

Thank you for the gentle push into the correct answer.

var t:int = manager.selectedTargetObjects.length;
while (--t > -1)
{
	if (manager.selectedTargetObjects[t] is Crop)
	{
		manager.selectedTargetObjects[t].update();
	}
}

 

As always I appreciate all of your efforts.

 

Best Regards,

 

Rich

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...