1、loadMovie后用onEnterFrame來判斷是否加載完,再給加載的flash賦值,被加載的flash要有
System.security.allowDomain("*"); 才能賦 值,否則不行。
this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
loader_mc.loadMovie("1001.swf");
this.onEnterFrame = function() {
var p = loader_mc.getBytesLoaded() / loader_mc.getBytesTotal();
trace(p);
if (1 == p) {
loader_mc._width = 200;
loader_mc._height = 200;
delete this.onEnterFrame;
}
};
2. Scaleform GFx可以加載tga圖片,帶Alpha通道的tga不行,flash player不能加載tga。
Q:GFx怎么加載打包好的文件呢?
A:估計(jì)是用從GFxFileOpener繼承的類來搞。就是這兒了,但是怎么返回GFile*呢?
3.
posted on 2008-06-19 23:11
七星重劍 閱讀(2085)
評(píng)論(2) 編輯 收藏 引用 所屬分類:
Flash Scaleform GFx