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
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.
Copy link to clipboard
Copied
Errors with other names will also occur
Copy link to clipboard
Copied
well, fix each problem in turn until you have none.