flash用代码加载元件

2024-11-16 18:49:48
推荐回答(2个)
回答1:

建立元件as代码时掘蠢间第一帧添蠢哪加。_root.attachMovie("mc2", "mc2", 1);
mc2._x = 100;
mc2._y = 100;
//加载mc1
a = mc2._x;
b = mc2._y;
_root.attachMovie("mc1", "mc1", 1);
//加载mc2置mc1位置
mc1._x = a;
mc1._y = b;
cf = tf=_root.onEnterFrame=function () {
if (mc1._totalframes == mc1._currentframe && typeof mc1 == "带散码movieclip") {//mc1播放完毕加载mc2
_root.attachMovie("mc2", "mc2", 1);
mc2._x = a;
mc2._y = b;
}
};要源文件的留下邮箱。

回答2:

首先得明确你用了什么代码,是层代码吗?使用这个标签是会这样的.