作者flare321 (flare)
看板Flash
标题[问题] loading画面的问题
时间Wed Apr 9 16:43:56 2008
我做了2个swf档,A跟B,在A里面建一个空白的_mc去loadMovie B进来,
A档里有用遮罩去遮_mc <-----
B档案的程式如下
影格1:
t1 = getBytesLoaded();
t2 = getBytesTotal();
t3.text = int(t1/t2*100)+'%';
影格2:
if (t1 == t2) {
gotoAndStop(3);
} else {
gotoAndPlay(1);
}
B档案这边测试数字都没问题,有出来
但用A去跑的时候就有问题了,数字出不来.其他都会出来
後来去找问题,发现是出在遮罩,所以数字出不来,拿掉後数字就会出来,
但是我又必须要遮罩不可,怎麽解决呢?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.192.0.179
1F:推 didila:cacheAsBitmap = true ? use runtime bitmap caching ? 04/09 17:46
2F:→ didila:embed 0~9 % ? 04/09 17:49