Skip to main content
Known Participant
February 26, 2023
Question

How to correctly call the filter preset

  • February 26, 2023
  • 1 reply
  • 476 views

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

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
February 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.

kqskcmAuthor
Known Participant
February 26, 2023

Errors with other names will also occur

kglad
Community Expert
Community Expert
February 26, 2023

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