Hi Marcelo
the macromedia class sound extends object has a range of attributes for
that. you can opti by id3 or also the attributes like .position or
id3.lenghfor that.
2006/1/4, Ramon Tayag <[EMAIL PROTECTED]>:
>
> If you want to know the length of the song (because duration only
> gives you how much has been downloaded), you can put it into the TLEN
> of the ID3 V2 tag. You can use onID3 of the sound object to find out
> when the ID3 tags have been downloaded. Please note that if you have
> ID3 V2 and ID3 V1, onID3 will be called twice. ID3 V2 is at the start
> of the song. So the first onID3 will be ID3 V2. ID3 V1 is at the end
> of the song.
>
> On 1/4/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote:
> > Hi there.
> >
> > A sound Object in Actionscript has a .duration and a .position property.
> > You can monitor the position and do stuff when the position has reached
> > a certain number of seconds or a percentage of the total duration.
> >
> > var s:Sound = new Sound(sound_mc);
> > s.attachSound("song");
> > s.start();
> >
> > _root.onEnterFrame = function() {
> > // check s.position and act accordingly
> > }
> >
> > Regards,
> > Dimitrios Bendilas
> >
> > ----- Original Message -----
> > From: "Marcelo Wolfgang" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" <[email protected]>
> > Sent: Wednesday, January 04, 2006 3:17 PM
> > Subject: [Flashcoders] Keypoints in a .mp3
> >
> >
> > Hi list,
> >
> > Happy new year for all :)
> >
> > I'm little rusty in my coding, and I'm developing a site which it will
> > have a 'mp3 player' -> the user click on a button, it load the mp3 to
> > the flash media player.
> >
> > But I need to have some key points, or a way to check how much time of
> > the music has elapsed so that at certain points it will display
> > different info on the screen.
> >
> > Like when the music reach 2 minutes it will show the song artist, when
> > it reaches 4'38'' it will show another info
> >
> > Is it possible ?
> >
> > How should I do something like this ?
> >
> > TIA
> > Grillo
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> Ramon Miguel M. Tayag
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
--
----------------------------
Igor Costa
www.igorcosta.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders