Skip to main content
Known Participant
Feb 26, 2023 5:24 PM UTC
Question

How to correctly call the filter preset

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

kglad
Community Expert
Community Expert
Feb 26, 2023 5:30 PM UTC

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

Translate
kqskcmAuthor
Known Participant
Feb 26, 2023 5:40 PM UTC

Errors with other names will also occur

Translate
kglad
Community Expert
Community Expert
Feb 26, 2023 5:43 PM UTC

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

Translate