Jump to content

ID3 tags


aliendisaster

Recommended Posts

I am attemtping to create a simple player to read ID3 tags and display them in a dynamic text field. Is this supported with Version 6?I've only been truely learning ActionScripting for about a month now and the book I'm using to teach me says everything in my code should work. Am I missing something or is it the version of Flash MX?Here is my code:I have tried://first tryplay_btn.onRelease = function(){ stopAllSounds(); songPlaying_sound.loadSound("punk/bad_religion-ten_in_2010.mp3", true); artist_txt.text = songPlaying_sound.id3.songname + " - " + songPlaying_sound.id3.artist; songPlaying_sound.start (0, 0);}//second tryplay_btn.onRelease = function(){ stopAllSounds(); songPlaying_sound.loadSound("punk/bad_religion-ten_in_2010.mp3", true); artist_txt.text = songPlaying_sound.id3.TIT2 + " - " + songPlaying_sound.id3.TPE1; songPlaying_sound.start (0, 0);}//third tryplay_btn.onRelease = function(){ stopAllSounds(); songPlaying_sound.loadSound("punk/bad_religion-ten_in_2010.mp3", true); songPlaying_sound.onID3 = function(){ artist_txt.text = songPlaying_sound.id3.songname + " - " + songPlaying_sound.id3.artist; } songPlaying_sound.start (0, 0);}The first and second try display the " - " but no ID3 tags. The third try display nothing. I have verified the mp3 has both ID3v1 and ID3v2 (the book says version 6 supports ID3v1 but not ID3v2). Is there somthing I'm doing wrong or is it the version I'm using.Thanks for any help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...