作者cjcat2266 (CJ Cat)
看板Flash
標題Re: [問題] AS3裡的元件庫播放聲音
時間Sat Jan 5 22:31:24 2008
※ 引述《grantchiue (鴨子)》之銘言:
: 不好意思問很多奇怪的基本問題,我查書找不到,F1我不知道跟
: sound有關的哪一個是我需要的OTL
: 若是我元件庫有一.wav檔,我想要用AS3來播放他,我要怎麼寫AS呢?
: 感謝~
import flash.media.Sound;
import flash.net.URLRequest;
var wav:Sound = new Sound(new URLReuest("<file path>"));
wav.play();
--
CJ Cat = Croa'J Cat = Cockroach Cat = 西街凱特 = 蜚蠊貓 = 蟑螂貓
Gallery
http://cjcat2266.deviantart.com
ptt2 Board CJWorkshop - 阿多比閃光(Adobe Flash)研討區
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.84.15
→ grantchiue:這是類似給聲音一個實體名稱的意思嗎?還是類似 01/06 00:09
→ grantchiue:loader那種東西呀@@ 我研究一下好了~感謝 01/06 00:10