动作脚本:语法错误:leftbrace之前预期标识符 [英] Action Script : Syntax error: expecting identifier before leftbrace
问题描述
从谷歌搜索,我发现这么多的面临这个错误,但我仍然无法修复这个问题在我的code,所以不得不创建这个新的线程:|
From the Google search, I found so many faced this error but still I couldn't fix this issue in my code, SO had to create this new thread :|
我用硕思闪客更快地编辑现有的SWF文件(的nofollow的> SWF文件)
I used sothink SWF quicker to edit a existing swf file ( SWF file I used )
我输入这个swf文件,当我试图以preVIEW SWF文件它产生这些错误
I imported this swf file and when I tried to preview the swf file it produced these errors
错误:fromtext_15.as,7号线:语法错误:leftbrace之前预期的标识符。 错误:BirthdayTitle_14.as,7号线:语法错误:leftbrace之前预期的标识符
ERROR: fromtext_15.as, Line 7: Syntax error: expecting identifier before leftbrace. ERROR: BirthdayTitle_14.as, Line 7: Syntax error: expecting identifier before leftbrace.
package egobirthdaySWF_fla
{
import flash.display.*;
dynamic public class BirthdayTitle_14 extends MovieClip
{
public function BirthdayTitle_14()
{
addFrameScript(277, frame278);
return;
}// end function
function frame278()
{
stop();
return;
}// end function
}
}
package egobirthdaySWF_fla
{
import flash.display.*;
dynamic public class fromtext_15 extends MovieClip
{
public function fromtext_15()
{
addFrameScript(302, frame303);
return;
}// end function
function frame303()
{
stop();
return;
}// end function
}
}
有人可以帮我解决这个问题(:
can somebody help me to fix this (:
推荐答案
您的功能缺失的返回类型...
Your functions are missing the return type ...
public function Function(args ..):TYPE{
return variable_of_TYPE;
}
喜欢:无效:INT:布尔....
这是怎么必须定义功能和使用
this is how Functions must be defined and used
和顺便说一句,我爱你的SWF的xD
And btw, I love your SWF xD
这篇关于动作脚本:语法错误:leftbrace之前预期标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!