FLASH CS4 AS3.0中提示1084: 语法错误: leftbrace 应在 flash 之前。 源代码是:
package_flaflash.display.MovieClip{importflash.display.*;importflash.events.*;importf...
package _fla flash.display.MovieClip
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
dynamic public class Timeline_1 extends MovieClip
{
public var bt:SimpleButton;
public function Timeline_1()
{
addFrameScript(0, this.frame1);
return;
}// end function
function frame1()
{
this.bt.addEventListener(MouseEvent.CLICK, this.clickFun);
return;
}// end function
public function clickFun(param1:MouseEvent) : void
{
navigateToURL(new URLRequest("http://www.shch8.com/v3/brow/195.html"));
return;
}// end function
}
} 展开
{
import flash.display.*;
import flash.events.*;
import flash.net.*;
dynamic public class Timeline_1 extends MovieClip
{
public var bt:SimpleButton;
public function Timeline_1()
{
addFrameScript(0, this.frame1);
return;
}// end function
function frame1()
{
this.bt.addEventListener(MouseEvent.CLICK, this.clickFun);
return;
}// end function
public function clickFun(param1:MouseEvent) : void
{
navigateToURL(new URLRequest("http://www.shch8.com/v3/brow/195.html"));
return;
}// end function
}
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询