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

How to correctly call the filter preset

Contributor ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

The following method is not feasible↓

Filter-01.addEventListener(MouseEvent.CLICK, onBtnClick);

function onBtnClick(e:MouseEvent):void {

var jsfl:String = new String();

MMExecute("fl.runScript(fl.configURI + 'Filters/Filter-01.xml');");

}

Filter preset path:Application Support/Adobe/Animate 2021/zh_CN/Configuration/Filters/Filter-01.xml

Error message:SyntaxError: missing ; before statement

TOPICS
ActionScript , Code , Error , Exchange extensions

Views

346

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 ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

that looks like as3, but if it is, the first error is Filter-01.  that looks like subtraction to as3: use an underscore.

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 ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

Errors with other names will also occur

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 ,
Feb 26, 2023 Feb 26, 2023

Copy link to clipboard

Copied

LATEST

well, fix each problem in turn until you have none.

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