How to put two script commands in one file to operate
I got two commands using the history panel, create classic tween and delete tween,
an.getDocumentDOM().getTimeline().createMotionTween();
an.getDocumentDOM().getTimeline().setFrameProperty('tweenType', 'none');
Now I want to make these two commands into one, one click is to create, and another click is to delete, how to do it?
For example, in the my.jsfl file, put these two commands. When I use my.jsfl for the first time, add a tween, and click my.jsfl again to delete the tween.
This method is similar to the shortcut keys set for creating tweens in the software. One click in Animate is to add, and another click is to delete. without having to do two jsfl commands.
How can I achieve it, is there a formula to apply? This kind of operation is not limited to tweening, I seem to find that many commands in the history panel can be used,
