skiplan Posted May 24, 2013 Posted May 24, 2013 Hello,I have a user interface which is allow the user to create some contents like add an image, text, video.This user interface is using the TransformManger.Is there an (easy) way for implement an undo/redo function?Thanks for help and the answers
GreenSock Posted May 24, 2013 Posted May 24, 2013 TransformManager doesn't manage undo/redo functionality for you, but you can certainly do that yourself. One way would be to just record the transform.matrix object for each step because the matrix contains all scale/rotation/position data. I hope that helps!
skiplan Posted May 25, 2013 Author Posted May 25, 2013 Yes, thanks for the answer.I'd already seen that but i have a lot of data like an image url or a color that transform.matrix does not contains.So, I don't really know how can I record all this informations.
GreenSock Posted May 25, 2013 Posted May 25, 2013 How about just using an array to store that data? Also remember there's an exportItemXML() method and exportFullXML(). That won't save any color data, though. http://greensock.com/as/docs/transform/
FlexCoder Posted January 18, 2014 Posted January 18, 2014 Hello, I want to use Crop functionality with Transform. Can you please customize your tool with Undo/Redo feature. Regards,FlexCoder
GreenSock Posted January 18, 2014 Posted January 18, 2014 Sorry, FlexCoder, that isn't a feature we plan to add at this point, but you're welcome to customize things as you please.
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