Re: [問題] AS3裡的元件庫播放聲音
※ 引述《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
→
01/06 00:09, , 1F
01/06 00:09, 1F
→
01/06 00:10, , 2F
01/06 00:10, 2F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Flash 近期熱門文章
PTT數位生活區 即時熱門文章