Re: [問題] 有關mp3 player的疑問

看板Flash作者 (我是沒牌的營養師!)時間17年前 (2008/09/22 23:08), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《djay (acvtiva magic)》之銘言: : 想請問一下,我試著用下列的方法取出歌曲的內容: : Name.text = mp3Sound.id3.songName => 歌曲名稱 : Singer.text = mp3Sound.id3.artist => 歌手名字 : 其中 "Name" 跟 "Singer" 是我的動態文字,而mp3Sound是Sound變數, : 執行之後發現是ok的,但是只要歌曲的ID3資訊是中文的話就會顯示不出來。 : 想請教一下是甚麼樣的原因? : 感激不盡~~ 剛不小心翻到ID3的F1的時候才看到.... MP3 sound files can contain ID3 tags, which provide metadata about the file. If an MP3 sound that you load using the Sound.load() method contains ID3 tags, you can query these properties. Only ID3 tags that use the UTF-8 character set are supported. 雖然靠readMultiByte跟writeMultiByte可以硬轉..不過還是很麻煩 http://code.eddie.com.tw/downloads/flash/SoundExample.rar 如附檔連結,Big5編碼ok,但遇到GB編碼就又亂碼了.... 附檔無mp3檔,請找一個繁體中文編碼ID3的檔來試玩看看...(命名為song.mp3) 有興趣也可以找個簡體的,會跳亂碼給你看 :) -- 誠徵PHP網站工程師,熟MVC架構 http://blog.eddie.com.tw/ 全職、兼職可,意者請敲 :) http://www.eddie.com.tw/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.139.9

09/22 23:12, , 1F
補充一下,記得放在同目錄
09/22 23:12, 1F
文章代碼(AID): #18rxJHo3 (Flash)
文章代碼(AID): #18rxJHo3 (Flash)