Hmm, interesting, but will this work if I need to change the .mp3 file ?

I have 10 different mp3's that will be played dependin on user selection ...

TIA

Grillo


On 1/10/06, Thimon Sistermans [Us Media] <[EMAIL PROTECTED]> wrote:
>  Hi,
>
> I don know if it works with mp3 but with flv you could use cuePoints.
> You add them to your media component before playing the file
> For example you could do something like this:
>
>
> for (var i = 0; i < track.length){
>       // create unique cuepoint id
>     var cuePointID  = "cuePoint_" + i;
>     //add quepoint to mediaComponent
>     myMediaComp.addCuePoint(cuePointID , parsInt(track[i].start));
> }
>
> //create listener wich will be called when a quePoint is reached
> var cueListener:Object   = new Object();
> cueListener.cuePoint  =  function(eventObject){
>     trace(eventObject.cuePointName);
>  }
>
>  myMediaComp.addEventListener("cuePoint", cueListener);
>
> Succes!
> Thimon
>
>
>
> Hi list,
>
> I'm trying for a few hours to figure this out, and I was unable so I'm
> hoping that someone here can enlight me
>
> I have a media playback component on my stage, it will load diferent
> mixes from diferent dj's.
> Each dj will have a track list, I have the start and of every track,
> I've build a xml like this with the info
> <?xml version='1.0' encoding="UTF-8"?>
> <set>
> <track>
> <start>1</start>
> <end>325</end>
> <title>Egoexpress</title>
> <artist>Knartz IV</artist>
> <reclabel>Ladomat</reclabel>
> </track>
> <track>
> <start>326</start>
> <end>550</end>
> <title>SRI</title>
> <artist>Yellow Fever AA1</artist>
> <reclabel>Force Inc</reclabel>
> </track>
> <track>
> <start>551</start>
> <end>780</end>
> <title>Basteroid</title>
> <artist>Rabimmel</artist>
> <reclabel>Areal</reclabel>
> </track>
> </set>
>
> The start and end time are in seconds ( I couldn't figure out the best
> way to do this, so I accept suggestions )
>
> I also have 6 text fields on stage curr_title_txt, curr_artist_txt,
> curr_reclabel_txt, next_title_txt next_artist_txt and
> next_reclabel_txt.
>
> how can I check the media playback component for the playhead position
> to change the text on the text fields? (I've played with playheadTime
> and I think I'm on the correct track here ), but I can't figure out
> how to compare the value from the player with the data I loaded from
> the xml
>
> Any help will be appreciated
>
> 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
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to