Getting Information from ID3 tags from streamed mp3 files in Flash CS4 AS3.0

Hi everyone:
I have spend my whole day trying to find a good way to access ID3 tags in AS3.0; but didn't find anything helpful.
In my project I am making a sound object and assigning it a URL:
Then I stream the sound into a sound channel:
var s:Sound = new Sound(new URLRequest('URL here"));
var sc:SoundChannel;
My problem:
      I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.
Complication:
     I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.
var s:Sound = new Sound(new URLRequest('NEW URL here"));
Thank you for any help!

I know I took it out because it didn't work. I had something like this:
var soundLoaderContext:SoundLoaderContext = new SoundLoaderContext();
soundLoaderContext.checkPolicyFile = true;
var music:Sound = new Sound(new URLRequest("URL #1 (from my server)"));
var sc:SoundChannel;//sound channel
var isPlaying:Boolean = false;//checks f music is playing or not
var pausePoint:Number = 0.00;//this variable is for the pause function
music.addEventListener(Event.ID3, id3Handler);
stop_btn.addEventListener(MouseEvent.CLICK, stopMusic);//stop function call
function stopMusic(e:Event):void//stop function
     if(sc != null)//if music is playing
          sc.stop();//stops the music from playing
          isPlaying = false;//sets it to false(off)
          playPause_mc.gotoAndStop(1);//modifies graphic item on stage
     pausePoint = 0.00;//resets pause value
play_btn.addEventListener(MouseEvent.CLICK, playMusic);//pause / play function call
function playMusic(e:Event):void//pause / play function
     if (isPlaying) {// if it is playing
          pausePoint = sc.position;pausePoint get curreny value (position of song)
          sc.stop();//stops the music from playing
          isPlaying = false;//sets it to false(off)
          playPause_mc.gotoAndStop(1);//modifies graphic item on stage
     } else if (!isPlaying){// if it is not playing
          sc = music.play(pausePoint);//starts the music from the pausePoint value.
          isPlaying = true;//sets it to true(on)
          playPause_mc.gotoAndStop(2);//modifies graphic item on stage
music2_btn.addEventListener(MouseEvent.CLICK, music2);//function call (if music is clicked)
function music2(e:Event):void{//this function stops current playing music and resets graphics, assigns a new URL and starts playing it.
     if(isPlaying || pausePoint != 0)
          sc.stop();
          playPause_mc.gotoAndStop(1);
     music = new Sound(new URLRequest("URL #2 (from my server)"));
     music.addEventListener(Event.ID3, id3Handler);
     sc = music.play();
     isPlaying = true;
     playPause_mc.gotoAndStop(2);
music1_btn.addEventListener(MouseEvent.CLICK, music1);
function music1(e:Event):void{//this function stops current playing music and resets graphics, assigns a new URL and starts playing it. just like above only a different song.
     if(isPlaying || pausePoint != 0)
          sc.stop();
          playPause_mc.gotoAndStop(1);
     music = new Sound(new URLRequest("URL #1 (from my server)"));
     music.addEventListener(Event.ID3, id3Handler);
     sc = music.play();
     isPlaying = true;
     playPause_mc.gotoAndStop(2);
function id3Handler(evt:Event):void {
      var id3:ID3Info = evt.target.id3;
      trace(id3.artist + ' - ' + id3.songName);
      name_txt = id3.songName;
      album_txt = id3.album;
      artist_txt = id3.artist;
This is mostly just taking the exact code from the website I mentioned earlier.
When I run this it outputs the trace command 1 time and nothing more. Only the trace(trace(id3.artist + ' - ' + id3.songName);) gets triggered once.
No errors. No warning. Not working.
Thank you for helping me!

Similar Messages

  • Can i get information from an image file??

    sorry about my poor english
    Hi
    I need to get info from an jpeg or any format of image file. for example a form with slectable tems.
    The other way i have is to control a scanner and when im scanning the form get the info. i dont know if there is any api for this.
    Thanx

    look in ImageIcon api
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/ImageIcon.html
    in the Method Summary
    + the upper class
    http://java.sun.com/j2se/1.5.0/docs/api/javax/accessibility/Accessible.html

  • Reading the ID3 tag of a mp3 file

    does anybody know how i can read a MP3 file ID3 tag???
    i know the text is at the end of the file... i'm not sure if i can use a pre written bit of code that will do it or if i will have to write the code myself to back track through the file...
    thanks
    david

    I bet there are dozens of examples to do this. Look on www.freshmeat.net and punch in 'Java ID3 mp3 parse'
    Here's one:
    http://www.burnlinux.com/id3/javaID3.java
    Mike

  • Cannot get audio from streamed .WMV files

    Up until a week ago I had no trouble seeing & hearing CNN's streaming video. As of about 3 days ago, the audio is gone. The only changes to the system (15" PB with 10.4.2) have been the Graphics Update and the recent Security Update (which postdates the problem).
    Repairing Permissions made no difference, reinstalling Windows Media Player ditto. Is there any way to change the plugin that opens .WMV files? I recently bought and installed (Long before this issue) WMV Player, which allows running .WMV files in Quicktime and wonder whether it would have better luck.
    Help?

    Thomas...don't know for sure but check out this link...see if this is the problem
    http://docs.info.apple.com/article.html?artnum=300832

  • Make a Fake Mp3 Player in Flash CS4(AS3)

    Hi,
    I am trying to Pause and Play A song.
    Details:
    I made a new project.
    --> File > Import > Import to Library > (choose mp3 song)
    Drag mp3 song from Library to stage.
    Press (Ctrl+Enter)
    The result is that the song plays.
    My question is:
    Is there code to make the music "Pause" and "Play". Is there a way to directly influence the playing file?
    Anything helps
    ~Thanks

    Is it possible.
    Here's a link to a tutorial on how create this
    DISCLAIMER: This an intermediate to advance level so it will take sometime to understand
    http://flashspeaksactionscript.com/create-a-mini-music-player-in-as3/
    HTH

  • How to get result from another JSP file?

    I have to write a jsp (my.jsp) to get information from another jsp file (other.jsp).
    The other.jsp return integer value (0 / 1) so that user can tell if certain service is available or not. And in my.jsp I need to collect such result and other information from a text file to make up of a XML string.
    How can I call other.jsp to get the result? Thanks a lot.

    Hi, I think I didn't describe the problem clearly
    enough. In fact, there is a JSP file, and if our
    database is currently connected, the JSP will return
    value 1, otherwise, it will return 0. My java program
    need to get that result, and then form an XML string,
    and send the string back to the client. I'm just
    wonder how can I write such a program to read result
    from JSP file. Thanks a lot.Why is this function implemented as a JSP file? It should be implemented as a bean. It would be simple to get the information you require from that bean.

  • Updated to firefox 4.0. since then my computer is very slow accessing the internet, websites and getting information from within a website.

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

  • How to get information from Oracle's views

    Hi,
    I need to get information from Oracle's views about:
    * in which table's column is set index
    * what type of index is on this column
    * name of a trigger which exist on a table
    * type of trigger (before, after etc)
    * trigger status (enable, disable)
    Thanks for help.

    Hi..
    One of the best way to know which views to use is doing select * from dict where table_name like 'xxx';
    For example in your case you needed to know about the indexes and triggers so
    SQL> select * from dictionary where table_name like 'DBA_IND%';
    TABLE_NAME                     COMMENTS
    DBA_INDEXES                    Description for all indexes in the database
    *DBA_IND_COLUMNS                COLUMNs comprising INDEXes on all TABLEs and CLUSTERs*
    DBA_IND_EXPRESSIONS            FUNCTIONAL INDEX EXPRESSIONs on all TABLES and CLUSTERS
    DBA_INDEXTYPES                 All indextypes
    DBA_INDEXTYPE_COMMENTS         Comments for user-defined indextypes
    DBA_INDEXTYPE_ARRAYTYPES       All array types specified by the indextype
    DBA_INDEXTYPE_OPERATORS        All indextype operators
    DBA_IND_PARTITIONS
    DBA_IND_SUBPARTITIONS
    DBA_IND_STATISTICS             Optimizer statistics for all indexes in the database
    10 rows selected.
    SQL> select * from dictionary where table_name like 'DBA_TRI%';
    TABLE_NAME                     COMMENTS
    DBA_TRIGGERS                   All triggers in the database
    DBA_TRIGGER_COLS               Column usage in all triggers
    Reading the comments you can know which view to use, then  describe the view and use what you need

  • How to get information from my laptop to my ipad

    I`m new on I-pad
    How to get information from my laptop to my ipad
    Saludos
    Josè Montero

    Heres some Apple Support tips on the subject.
    How to transfer and sync content to your computer:
    http://support.apple.com/kb/ht1296
    How to transfer files between your computer and mobile apps:
    http://support.apple.com/kb/PH1693
    How to do file transfers:
    http://support.apple.com/kb/HT4094

  • When getting information from SLD, should SMSY create a system for EP?

    I've connected my EP NW2004s system ES3 to the SLD.  I connected Solution Manager 4.0 to SLD so that SMSY can get information from the SLD.  When I run the import, I see:
    1. ES3's server sapeps03 created under SMSY Landscape Component ->Server.
    2. ES3 's database ES3 created under SMSY Landscape Component-> Database.
    3.  ES3 Java component entry created under SMSY Landscape Component->System Components->Java System.
    BUT, I don't see an ES3 entry under SMSY Landscape Component->Systems->SAP Netweaver.  Shouldn't there be?  Do I have to create this manually?
    The ECC 5.0 system RS3 got created under SMSY Landscape Component->Systems->SAP ECC.   Why not the EP system?
    Thanks.
    Regards,
    Mel Calucin

    Hello Mel,
    the SMSY transaction had a lot of issues resolving the appropriate Java product with older versions of Solution Manager. For instance, you can take a look at the SAP Note 1392992.
    Newer versions of Solution Manager (currently on SP24) resolve most of the issues. The portal is certainly detected successfully.
    My recommendation would be having Solution Manager updated always with the latest Support Package stack available.
    All the best,
    Andreu

  • IS Possible to get information from GetUserProfileByName inside of repeat section

    IS  Possible to get the values from GetUserProfileByName inside of repeat section? by Codeless
     and then with this result used to filter DDL
    Or GetUserProfileByName  is only useful when it is used for FORM LOAD
    CRISTINA&amp MICROSOFT Forum

    Hi,
    According to your description, my understanding is that you want to use the GetUserProfileByName service in InfoPath form.
    We can get information from GetUserProfileByName inside of repeating section, however you need to give the name of user so that the service can be used to get the details of the user.
    Please refer to the link below:
    http://thinketg.com/using-infopath-and-the-web-service-getuserprofilebyname/
    You can create rules to query for data using GetUserProfileByName, and it is not only useful for form load.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Is it possible to JSP Application get information from login server?

    Hi,
    Here, we gonna create a aplication using Portal for autentication and autorization.
    We gonna develop JSP pages to navigate into our application and we'll put them into portal.
    My question is, is it possible to the jsp's, created by us, to get information from the user loged on, so it can generate html's for each users?
    If so, how to do that?
    I know i can give access to the JSP's for each user, by creating portal objects for each of them, i'd like to know if the
    thanks everyone!

    No, if Firefox is set to delete browsing history when it closes, that data wouldn't be passed to the Sync server.

  • Author       "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

    Not sure where to post this issue.
    I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.
    javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
         at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
         at myPackage.MyMusicApp.main(MyMusicApp.java:14)
    Below is a small program I built that shows the code.
    package myPackage;
    import java.io.File;
    import javax.sound.midi.*;
    public class MyMusicApp {
        public static void main(String[] args) {
            try {
                Synthesizer synth = MidiSystem.getSynthesizer(); synth.open();
                File f =  new File("/Users/poorav/eclipseGIT/myApp/soundbanks/1247_KitDRY.sf2");
                Soundbank soundbank = MidiSystem.getSoundbank( f);
                synth.loadAllInstruments(soundbank);
            } catch (Exception e)
                e.printStackTrace();
    I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?
    thanks

    No satisfactory progress!
    I submitted a bug for this using the Apple bug reporter on 9th April (#11208868) and despite asking for an update, it has been completely ignored (even now). I'm not impressed.
    I then issued a (paid for) Developer Technical Support issue which was credited back to my account a few days later with no explanation. When I asked why, I eventually got: "At this time DTS does not provide code-level support for Java"!
    So, Apple are assuming to responsibility for this problem. I realise that Oracle is mostly responsible for Java but Apple took this crippled version (how much testing did they do?) and updated our customers' machines with it. This has effectively disabled a key feature of our product and has cost us damage to our company's reputation. Still Apple don't care and they rely on the fact that we are too small to sue them. You can see I'm not happy! I naively thought Apple would make some attempt to assist their developers.

  • Can i set my iPhone 4 as a new phone then use iCloud to get information from before restoring the phone?

    Can i set my iPhone 4 as a new phone then use iCloud to get information from before restoring the phone? I've restored my iPhone 4 thru iTunes and now trying to set it up using iCloud but it says 'no back ups available'.
    I was upgrading my OS system thru iTunes but the plug on my macbook came out and battery ran flat half way thru. This jammed my iPhone 4.
    I think it's to do with the OS system. That if i take it to the previous OS system it might work. But since i'm in phone set up mode i can't get into general setting to change it back.
    So can i set it up as a new phone and then use icloud to restore info? Or shld i set it up thru iTunes and then iCloud (but since it jammed half way thru upgrading and i've restored i don't think iTunes has any of my previous info)? Or is there something else i can do?

    No. You can set up as a new device or restore from iCloud or iTunes. It looks like you backed up with iTunes, so you can't restore with iCloud. To backup your device in iCloud, go to Settings > iCloud and activate it

  • Prime Infrastructure 2.1 - getting informations from Nexus7Ks about ip to mac to physical pot table

    Hello,
    does anybody know if there's a way to get the following informations out of nexus 7000 and nexus 5000/2000 switches?
    Environment/requirements:
    - snmp v3 has to be used
    - N7ks are configured with several vrfs
    - SW N7K: 6.2.8a
    - SW N5K: 6.0(2)N2(4)
    - Prime Infrastructure 2.1
    I want to see under Clients and Users entries about mac-address, ip-address, interface and vlan.
    At the moment, I only get informations from N5Ks/N2Ks without ip-addresses. From the N7ks I don't get any informations.
    Any hints or tricks, how to get these informations with PI2.1 out of the nexus boxes?
    best regards
    Markus

    Hi Andy,
    Check the below link , as per this Doc .. User tracking is supported in 2.0:
    http://www.cisco.com/en/US/prod/collateral/netmgtsw/ps6504/ps6528/ps12239/guide_c07-729089.html
    Thanks-
    Afroz
    [Do rate the usefu post]

Maybe you are looking for

  • Masters in new hard drive... and Aperture can't locate them!

    Hello guys, this is my first message here... I'm from Rome, I'm a photographer and I am - obvioulsy - a Mac enthusiast user! I use Aperture for a year, this is a great app for my workflow but now I have a "little big" problem. Today, I've bought a ne

  • Font won't change

    I am trying to change the font type from default to Myriad Pro. Sound pretty simple, I know, but I just can't get it to work. My only text I am trying to change are in the divs .featured and .about. I have tried putting font-style: Myriad Pro; in bot

  • Can't drag footage onto timeline or move footage around that is already on timeline

    I have a project that I have been working with for awhile in Premiere Pro CS5 and I am trying to add more footage to the timeline. I am able to view the footage in the viewer but when I try and drag the selected clip down to the time line it prohibit

  • Remove element in linked list linked list

    here's my codes public class Student     private String name, matric;     public Student(){}     public Student( String name, String matric)        this.name = name;        this.matric = matric;      public String getName()      { return name;}     

  • Error occured processing parameter

    Hi, I need to set new value for log_buffer. so what I did was i issued the following command at sql command prompt alter system set log_buffer=50M scope=spfile; it throws ORA-012095: specified initialization paramer cannot be modified so i brought th