• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Combine multiple actions into one command

Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

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:

Multoman_0-1674393969286.png

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:

Multoman_1-1674394031902.png

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?

TOPICS
Code , Exchange extensions

Views

459

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

Yes

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

and are you trying to create a custom component?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

I have a plugin, a SWF panel with buttons. When I click on one of the buttons, the script is executed. But the history panel does not display (Run Command), but a sequence of actions (Cut, open, paste, copy,...) How to avoid this? Maybe there is some kind of object or a clever way to get around such a feature?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

not that i know of.  but why bother?

 

ie, why not clear the panel after each test?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

The problem is that the history panel saves a limited number of actions (300 in total). And a team can perform 600 actions. This means that I will not be able to roll back to the actions that did manually

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

i don't understand your work-flow.  perhaps someone else might.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

Why not use EDAPT Commands panel and just add your JSFL command as a custom entry there?

Then you will have your button, but it will run with one undo step only.

Nick - Character Designer and Animator, Flash user since 1998
Member of the Flanimate Power Tools team - extensions for character animation

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

I am with Nick. Use the EDAPT Commands panel It's a great tool. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

Your plugin is really an ingenious development, which I use very oftenÑŽ. EDAPT Commands does not suit me, since I created my own panel, it is similar to SMR Helpers. And just in SMR Helpers, the command is displayed in the history panel as (run Command ) How did you and Vladin achieve such a result?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 22, 2023 Jan 22, 2023

Copy link to clipboard

Copied

LATEST

Multoman_0-1674452214530.png

How did you manage to get the history panel to display team names? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines