JDP 發表於 2005-12-8 13:50:39

Flash LoadImage ActionScript

開始的Frame加入, 載入外部圖檔檔名列表.

loadVariables("images.txt", content);
stop ();
content.onData = function ()
{
        IMG01 = content.image01;
        IMG02 = content.image02;
        IMG03 = content.image03;
        IMG04 = content.image04;
        IMG05 = content.image05;
        IMG06 = content.image06;
        IMG07 = content.image07;
        IMG08 = content.image08;
        IMG09 = content.image09;
        gotoAndPlay(2);
};
images.txt內容
&image01=photos/view001.jpg
&image02=photos/view002.jpg
&image03=photos/view003.jpg
&image04=photos/view004.jpg
&image05=photos/view005.jpg
&image06=photos/view006.jpg
&image07=photos/view007.jpg
&image08=photos/view008.jpg
&image09=photos/view009.jpg

利用以下方式載入圖型

loadMovie(IMG01, view001);
頁: [1]
查看完整版本: Flash LoadImage ActionScript