尝试为 Flash Player 6.0 做优化代码。
有一个代码
if (eval(Movie + "." + NameTextField) == undefined) { // If undefined, the warning will be issued when accessing
Movie.createTextField(NameTextField, Movie.CountDepth++ , X, Y, Width, Height);
}
if (eval(Movie+"."+Name) == undefined){ // If undefined, the warning will be issued when accessing
Movie.createEmptyMovieClip(Name, (NumDepth == undefined )?(Movie.CountDepth++):NumDepth );
}
但在第一次通过时,此代码总是在文件 flashlog.txt 中给出警告。
不接受适当采访但未声明的 MovieClip 或 TextField?