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

How to correctly call the filter preset

Contributor ,
Feb 26, 2023 Feb 26, 2023

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
472
Translate
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

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

Translate
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

Errors with other names will also occur

Translate
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
LATEST

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

Translate
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