请教终极老师跟大家帮我看下这个语句
下面这段as用for语句怎么写,我老找不到mm_text。请教了
var ay:Array = ["a", "b", "c","d"];
mm0.onPress = function() {
my_sound.loadSound(ay[0], false);
this.onEnterFrame = function() {
//loaded ==?
if (loaded == 100) {
mm_text0 = "完成";
this.onEnterFrame = null;
}
};
};
mm1.onPress = function() {
my_sound.loadSound(ay[1], false);
this.onEnterFrame = function() {
//loaded ==?
if (loaded == 100) {
mm_text1 = "完成";
this.onEnterFrame = null;
}
};
};
mm2.onPress = function() {
my_sound.loadSound(ay[2], false);
this.onEnterFrame = function() {
//loaded ==?
if (loaded == 100) {
mm_text2 = "完成";
this.onEnterFrame = null;
} else {
mm_text2 = "载入"+loaded+"%";
}
};
};
mm3.onPress = function() {
my_sound.loadSound(ay[3], false);
this.onEnterFrame = function() {
//loaded ==?
if (loaded == 100) {
mm_text3 = "完成";
this.onEnterFrame = null;
}
};
};
[ 本帖最后由 kentyeach 于 2008-6-22 23:29 编辑 ]