Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Guest rlhoban

applyFullXML and crop instances

Recommended Posts

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

Did you create your Crop instances first, then applyFullXML(), and then update() each Crop to make sure the changes are synced?

Link to comment
Share on other sites

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.

×