急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!import flash.display.Sprite;var sp:Sprite=new Sprite();sp.graphics.beginFill(0xff0000);sp.graphics.drawCircle(100,100,40);sp.graphics.endFill();addChild(sp);function Test(event.MouseEvent

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 23:24:06
急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!import flash.display.Sprite;var sp:Sprite=new Sprite();sp.graphics.beginFill(0xff0000);sp.graphics.drawCircle(100,100,40);sp.graphics.endFill();addChild(sp);function Test(event.MouseEvent

急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!import flash.display.Sprite;var sp:Sprite=new Sprite();sp.graphics.beginFill(0xff0000);sp.graphics.drawCircle(100,100,40);sp.graphics.endFill();addChild(sp);function Test(event.MouseEvent
急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!
import flash.display.Sprite;
var sp:Sprite=new Sprite();
sp.graphics.beginFill(0xff0000);
sp.graphics.drawCircle(100,100,40);
sp.graphics.endFill();
addChild(sp);
function Test(event.MouseEvent):void{
trace("事件侦听函数成功");
}
sp.addEventListener(MouseEvent.CLICK,Test);
以上是我的代码,用的CS5,语法检查后就提示“语法错误rightparen应在dot之前”

急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!import flash.display.Sprite;var sp:Sprite=new Sprite();sp.graphics.beginFill(0xff0000);sp.graphics.drawCircle(100,100,40);sp.graphics.endFill();addChild(sp);function Test(event.MouseEvent
一楼说得对,你最后的提示意思就是右括号应当在"."之前.你把该打入“:”的地方打成了“.”
你的代码错误在这里
function Test(event.MouseEvent):void{
\x09trace("事件侦听函数成功");
}
改为:function Test(event:MouseEvent):void{
\x09trace("事件侦听函数成功");
}
提示:这个函数代码你要手动打入,如果要复制,还是会出问题.你可以加入语句
import flash.events.MouseEvent;
完整代码复制:
import flash.display.Sprite;
import flash.events.MouseEvent;
var sp:Sprite=new Sprite();
sp.graphics.beginFill(0xff0000);
sp.graphics.drawCircle(100,100,40);
sp.graphics.endFill();
addChild(sp);
function Test(event:MouseEvent ):void{
\x09trace("事件侦听函数成功");
}
sp.addEventListener(MouseEvent.CLICK,Test);

: void 怎么修改呢?我新手。 提示的意思是)应在.之前。不懂编程,你看看是不是语法有误,还是漏了什么符号。

急请大侠赐招{AS3.0语法错误rightparen应在dot之前}!import flash.display.Sprite;var sp:Sprite=new Sprite();sp.graphics.beginFill(0xff0000);sp.graphics.drawCircle(100,100,40);sp.graphics.endFill();addChild(sp);function Test(event.MouseEvent 为什么我的flash5.5里总说有语法错误 AS3.0 on (release) { gotoAndplay(1); } 总说这有语法错误 简算:32+31-30-29+28+27-26-25.+8+7-6-5+4+3-2-1=怎么简算?请各位大侠支招~急. as3 as3 AS3 场景 6,图层'图层 16',帧 1,283 行 1084:语法错误:rightparen 应在 and 之前.if(aage>=0 and aage more than is usual 这句话有语法错误吗?than 后面可直接加表语短语?请大侠详解哦, [AS3]as3.0字符如何转换与unicode字符转换代码示例 制定孝敬父母的小计划急!请各位大侠帮帮忙 请问FRD系统是什么?急,请大侠们多多指教! “队”有几画呀?拜托各位大神请各位大侠帮忙.急! flash as3.0中EVENT,Event,event的区别还有比如一个函数function example(event:Event):void中的event:Event是什么意思,感觉很搞,麻烦大侠赐教, 铝喷塑前酸洗产生白色粉末怎么处理在铝喷塑前的酸洗时产品表面在干燥后产生白色粉末怎么处理?请各位大侠支招. 怎样区别物理的几种物态变化?需要诀窍的,不是单单的由液态变为固态等等这一类的,请各位大侠支招! 怎样求函数的值域~关于高中必修1的数学.老师发了学案要预习.茫然中T_T.我看不懂课本.请各位大侠传授几招. 请英语好的人翻译一下!person,why do well then don't feel righ What else等于什么?大侠支支招啊 定积分求和极限 求大侠支招!