# id3 tags

**URL:** <https://forum.kirupa.com/t/id3-tags/4995>\
**Category:** flash\
**Created:** [August 28, 2002, 12:21pm UTC](https://forum.kirupa.com/t/id3-tags/4995 "2002-08-28T12:21:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taubi](https://avatars.discourse-cdn.com/v4/letter/t/eb9ed0/32.png) [@Taubi](https://forum.kirupa.com/u/Taubi)\
**Post date:** [August 28, 2002, 12:21pm UTC](https://forum.kirupa.com/t/id3-tags/4995/1 "2002-08-28T12:21:20Z")

</div>

Hi!

I’ve read some AS samples about reading id3 tags from mp3’s.  
In ther bottom is the code and I would like to ask how to display id3 tag in dynamic text box. (i’ve tried everything!!!)

//create an onEnterFrame event with  
//listener capabilities  
ASBroadcaster.initialize(Movieclip);  
\_root.createEmptyMovieClip("\_\_enterFrame",-9799);  
\_\_enterFrame.onEnterFrame=function(){  
Movieclip.broadcastMessage(“onEnterFrame”);  
}  
mysound=new Sound(this);  
mysound.loadSound(“an\_mp3.mp3”);  
mysound.onLoad=function(){  
Movieclip.addListener(this);  
//redefine the onLoad event handler  
this.onLoad=function(){  
//iterate over all the id3 tags  
//and trace their names and values  
for(var i in this.id3){  
trace(i+":"+this.id3\*);  
}  
}  
//when the onEnterFrame broadcast  
//is recieved, call the newly defined  
//onLoad evet handler and then  
//stop listening to the broadcast  
this.onEnterFrame=function(){  
this.onLoad();  
Movieclip.removeListener(this);  
delete this.onEnterFrame;  
}  
}

I made dynamic text box named display and then used function:

display.text = id3; \<\<---- nothing happened  
display.text = this; \<\<---- nothing happened  
etc.

Thanx!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 7:58am UTC](https://forum.kirupa.com/t/id3-tags/4995/2 "2002-08-29T07:58:29Z")

</div>

I’m not familiar at all with this id3 thing, but instead of looping in this.id3, did you try to loop in this to see if the element id3 appears?

pom :asian:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 9:09am UTC](https://forum.kirupa.com/t/id3-tags/4995/3 "2002-08-29T09:09:11Z")

</div>

What do you mean?  
Give me an example please…

Thnx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 11:54am UTC](https://forum.kirupa.com/t/id3-tags/4995/4 "2002-08-29T11:54:28Z")

</div>

Sorry about that. I was refering to the following lines

```auto
for(var i in this.id3){
   trace(i+":"+this.id3*);
}

```

Does it return anything? If not, you might want to do the same loop with this instead of this.id3.

pom  
:asian:
