Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是ac3的新手,请你帮帮我。
收到此错误 1084:语法错误:在点之前需要右括号。
{}.progress = function (event:ProgressEvent) : void
为什么要以这种方式执行此操作有点神秘,但是按如下方式转换为 Object 可以避免错误
({} as Object).progress = function(e:Event):void { };
最好有一个像这样的命名对象:
var magic:Object = {}; magic.progress = function(e:ProgressEvent):void {};
如果你真的想要匿名对象:
{ progress:function(e:Event):void {} };
此致