作者dark79 (AMO)
看板Flash
标题Re: [问题]loadMovie()函式 路径问题
时间Wed Jul 29 00:26:50 2009
: 我在A.swf载入 一个B.swf档
: 我在B.swf写入程式
: 但是_root. 指的是A.swf 的路径
: 不知道 要写B.swf 路径是什麽
: ________________
: | A.swf |
: | |
: | _________ |
: | | B.swf| |
: | | | |
: | _________ |
: | |
: ________________
我在B.swf中加入了 this._lockroot=true;
_root. 成功指向B.swf
但是我B.swf 中的动画 m1
stop();
m1.loadVariables("123.txt");
_root.m1.field.html = true;
_root.m1.field.condenseWhite = true;
m1.onData = function() {
_root.m1.field.htmlText = inner;
};
以上是 在m1动画中显示文字
----------------------------------------------------------------
原本是这样
stop();
this.loadVariables("123.txt");
field.html = true;
field.condenseWhite = true;
this.onData = function() {
field.htmlText = inner;
};
我试过很多方式
加入this._lockroot=true;
以上就没反应了 冏
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.39.5.184