Skip to main content
Multoman
Inspiring
January 22, 2023
Question

Combine multiple actions into one command

  • January 22, 2023
  • 1 reply
  • 854 views

I have a simple code:

 

an.getDocumentDOM().getTimeline().create Motion Tween();
an.getDocumentDOM().getTimeline().setFrameProperty('easeType', 5, -1, 90);

 


If I run it through a jsfl file, then the history panel will display:

If I write the same code using AS3:

 

MMExecute("an.getDocumentDOM().getTimeline().createMotionTween(); an.getDocumentDOM().getTimeline().setFrameProperty('easeType', 5, -1, 90); ");

 


Other information will be displayed on the history panel:

The problem is that my code must be written using AS3 in the SWF panel, it can be large and can perform many actions, thereby clogging the history panel with unnecessary actions. And if I want to cancel the script action, I need to press Ctrl+z a lot of times.
How do I combine many actions into one so that only (Run Command) is displayed on the history panel?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 22, 2023

what's sa3 and what's the swf panel?  do you mean as3 and the actions panel?

Multoman
MultomanAuthor
Inspiring
January 22, 2023

Yes

kglad
Community Expert
Community Expert
January 22, 2023

and are you trying to create a custom component?