本文介绍了错误代码:5007的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我跟着这个 http://active.tutsplus当测试时,我得到了
package {
import flash.display.MovieClip;
import flash.text.TextField;
public class DocumentClass extends MovieClip {
public function DocumentClass(){
var tf:TextField = new TextField();
addChild(tf);
tf.text =Hello World;
$ div class =h2_lin>解决方案
除此之外,hmm。有可能你有另一个DocumentClass.as在你的.fla的同一个源路径的某个地方,而这个是不正确的形成的?您是否在本教程的实验过程中创建了多个文件?
I followed this tut http://active.tutsplus.com/tutorials/actionscript/as3-101-oop-introduction-basix/ when testing I got
WHEREAS I DO HAVE A PUBLIC CLASS
package { import flash.display.MovieClip; import flash.text.TextField; public class DocumentClass extends MovieClip { public function DocumentClass() { var tf:TextField = new TextField(); addChild(tf); tf.text = "Hello World"; } } }
解决方案Are you saving it as DocumentClass.as? The Class name, Constructor and AS file all need to have exactly the same name.
Other than that, hmm. It's possible that you have another DocumentClass.as somewhere within the same source path of your .fla, and this one is formed incorrectly? Have you created multiple files in the course of your experimentation with this tutorial?
这篇关于错误代码:5007的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!