Share Posted October 22, 2011 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 More sharing options...
Share Posted October 24, 2011 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 More sharing options...
Share Posted October 24, 2011 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 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