Read ID3 of external MP3

Hi,
Currently I'm working on a MP3 Player. I start loading the
MP3 using the Sound.loadSound(URL, true) method.
In the Sound.onID3 event, I try to read the Tags using
Sound.id3.TALB.
Now I run a test with 2 files. The first one is on localhost,
the second one is on an external server.
Starting the player out of the flash development environment
(STRG+SHIFT+ENTER), I get the album ID3 for each file.
Running the player as an embedded SWF on a HTML site (running
on localhost), I get the album ID3 for the file saved on localhost
but not for the external one. I can play it and read it's duration
and total bytes, though.

search crossdomain.xml and add that file (edited to fit your
domains) to the domain where your MP3 file is.
Flash definitely cannot access data across domains under the
new security models so you require a crossdomain.xml which allows
your domain to pull data from that server. My guess is the sound
comes through because Flash is allowed to access a music stream
cross domain. Data definitely not. It's kind of confusing for sure
what the difference is, but data cannot be accessed for
sure.

Similar Messages

  • Trouble with loading external mp3 files

    I apologize for the length of the post. I hope this is clear
    of what I am trying to explain.
    My problem deals with getting "undefined" when I press a
    button to load an external mp3 files. The following is what my XML
    childNode looks like:
    <option phonetic="Soundless, or A" name="aleph"
    cursive="alephCursive.swf" block="alephBlock.swf"
    audio="char1.mp3"/>
    Every attribute loads the way I've programmed them, except
    for the last one "audio".
    The following is what my actionscript looks like loading in
    these attributes:
    Everything is happening inside the onLoad event for my XML
    file.
    var xmlContent = this.firstChild.firstChild;
    audioContent = new Array();
    for (var i = 0;
    i<this.firstChild.firstChild.childNodes.length; i++) {
    nextEntry = xmlContent.childNodes
    audioContent = [nextEntry.attributes.phonetic,
    nextEntry.attributes.name, nextEntry.attributes.cursive,
    extEntry.attributes.block, nextEntry.attributes.audio];
    The code above simply adds each attribute to the audioContent
    array. Each element traces out correctly.
    The following code is how I am using these attributes:
    for (var i = 0; i<audioLength; i++) {
    audioContainer.attachMovie("container4", "audioItem"+i, i);
    // Create a shortcut reference to the present movie clip
    thisClip = audioContainer["audioItem"+i];
    thisClip.myTxt1.htmlText = audioContent[0];
    thisClip.myTxt2.htmlText = audioContent
    [1];
    thisClip.cursive_mc =
    loadThis(assetPath+audioContent[2], thisClip.cursive_mc);
    thisClip.block_mc = loadThis(assetPath+audioContent
    [3], thisClip.block_mc);
    thisClip.speaker_mc.attachMovie("speaker", "speaker_mc",
    this.getNextHighestDepth());
    thisClip.speaker_mc.speaker_mc.onRollOver = function() {
    this.nextFrame();
    thisClip.speaker_mc.speaker_mc.onRollOut = function() {
    this.prevFrame();
    thisClip.speaker_mc.speaker_mc.onRelease = function() {
    mySnd.loadSound(audioPath+audioContent[4],true);
    Loading the text works inside the htmlText. Using a function
    loadThis to load external swf files works corerctly and even
    attaching a linked movieclip from my library called "speaker" works
    correctly.
    The problem comes from pressing the speaker movieclip that
    the output traces "undefined" instead of the external mp3 file.
    I appreciate any help. Thanks.

    As Ned said the problem might be with the file structure on the server. Other problems may be with spelling. You computer may not be case sensitive to the names of the .swf files that you are loading, but your server might. So, on your computer when you are testing, second.swf is the same as Second.swf, or even second.SWF. But, on the server each of these variations is seen as a different file. Another problem is that when you are loading files from the same computer in testing, those files are close and so they load very quickly from your computer. When the files have to travel from the server, there will likely be a measurable period of time before the file is ready to be shown. This is particularly problematic with video that is embedded into an .swf. The whole file will need to be downloaded and uncompressed before it is available to play. If you stream the video as an external file, you can shorten the wait considerably.

  • SetMedia problem with MediaPlayback - external MP3s

    I'm using the MediaPlayback component to play an external MP3
    file, and it's working fine, EXCEPT that when it first loads it
    plays the first part of the clip for a split second, then stops and
    re-plays it -- regardless of the autoPlay settings that are used.
    I have autoPlay set to false, both in the component
    properties panel AND explicitly in the code before the setMedia
    call. In the code below, the trace executes even though I've set
    autoPlay to false.
    I can stop the "blip" from happening if I inject a pause() or
    stop() command after the setMedia() call -- HOWEVER, it happens
    again when I call the play() method to play the file.
    HELP!! Anyone else out there had this problem and solved
    it??? I'm at my wit's end. See code snippet below.
    soundFile = "arabian_dreams.mp3";
    // Make sure media does not start playing 'til we tell it to
    myMedia.autoPlay = false;
    // Set the sound file for the MP3 player
    myMedia.setMedia(soundFile, "MP3");
    // Attempting to fix problem where the setMedia
    // function plays the clip for a fraction of a second
    // on loading, regardless of the autoPlay settings
    //myMedia.pause();
    //myMedia.stop();
    if (myMedia.playing == true) {
    trace("playing!");
    // Now play the sound
    myMedia.play(0);

    How old is the property? It may be that if it's pre60s, it was originally wired for 15amp (round-pin) and was not rewired correctly when converted to 13amp (square pin). It may also be that what you are experiencing with your system is indicative of the sort of wiring degradation that normally warrants a rewire (or partial rewire) of the house.
    There are testers available (Argos, even Tescos in their electrical sections, and other electrical retailers) that will check both grounding and possible wiring defects such as the transposition of live and neutral, but it may also be a wise move to try and isolate the problem as much as possible by connecting your mini to the TV, leaving aside the hard drive and hi-fi, to see if the problem still exists, then juggle components to see if you can determine whether the mini, the drive, the tv or the hi-fi appears to be the primary cause of the problem. It may even help to take the basic system elsewhere, and connect it to someone else's display etc just to test it.

  • Error message when playing external mp3?

    Hello,
    I have getting the following message when trying to play external mp3 files:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
    at playingExternalMp3_fla::MainTimeline/frame1()
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
    at playingExternalMp3_fla::MainTimeline/buttonFunction()
    at playingExternalMp3_fla::MainTimeline/load1()
    These message appear in the output panel every time I slect the button for that sound file? Is there a linkage problem?
    Here is the code:
      import com.greensock.*;
        var myArray:Array=[01,02,03,04,05];
        var contentArray:Array=[aframe1,aframe2,aframe3,aframe4,aframe5];
        var buttonArray:Array=[meas1Btn,meas2Btn,meas3Btn,meas4Btn,meas5Btn];
        var i:uint=1;
        for(var k:uint=0;k<5;k++){buttonArray[k].buttonMode=true};
        function frameVisibility():void{for(var j:uint=0;j<5;j++){contentArray[j].visible=false}; }
        frameVisibility();
        aframe1.visible=true;
        var req:URLRequest = new URLRequest("nhacviet"+myArray[i] +".mp3");
        var VSound:Sound = new Sound();
        var channel:SoundChannel = new SoundChannel();
        var trans:SoundTransform = new SoundTransform();
        VSound.load(req);
        channel = VSound.play();
        function frameFunction(evt:Event):void {
           frameVisibility();
           contentArray[i-1].visible=true;
           removeEventListener(Event.ENTER_FRAME, frameFunction);
           markMoves();
           var req:URLRequest = new URLRequest("nhacviet"+myArray[i]+".mp3");
           var VSound:Sound = new Sound();
           VSound.load(req);
           channel = VSound.play();
           channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
        channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
        function soundCompleteHandler(event:Event):void {
           if (i==5) {i=1}
           else {i++;}
           addEventListener(Event.ENTER_FRAME, frameFunction);
           channel.removeEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
        meas1Btn.addEventListener(MouseEvent.CLICK, load1);
        function load1(evt:MouseEvent):void {
           i=1;
           markMoves();
           frameVisibility();
           aframe1.visible=true;
           buttonFunction();
        meas2Btn.addEventListener(MouseEvent.CLICK, load2);
        function load2(evt:MouseEvent):void {
           i=2;
           markMoves();
           frameVisibility();
           aframe2.visible=true;
           buttonFunction();
        meas3Btn.addEventListener(MouseEvent.CLICK, load3);
        function load3(evt:MouseEvent):void {
           i=3;
           markMoves();
           frameVisibility();
           aframe3.visible=true;
           buttonFunction();
        meas4Btn.addEventListener(MouseEvent.CLICK, load4);
        function load4(evt:MouseEvent):void {
           i=4;
           markMoves();
           frameVisibility();
           aframe4.visible=true;
           buttonFunction();
        meas5Btn.addEventListener(MouseEvent.CLICK, load5);
        function load5(evt:MouseEvent):void {
           i=5;
           markMoves();
           frameVisibility();
           aframe5.visible=true;
           buttonFunction();
        function buttonFunction():void{
           SoundMixer.stopAll();
           var req:URLRequest = new URLRequest("nhacviet"+myArray[i]+".mp3");
           var VSound:Sound = new Sound();
           VSound.load(req);
           channel = VSound.play();
           channel.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
        function markMoves():void{
           if(i==1){TweenLite.to(mark, 1,{x:55})}else
           if(i==2){TweenLite.to(mark, 1,{x:164})}else
           if(i==3){TweenLite.to(mark, 1,{x:273})}else
           if(i==4){TweenLite.to(mark, 1,{x:382})}else
           if(i==5){TweenLite.to(mark, 1,{x:491})}
        killAll.buttonMode=true;
        killAll.addEventListener(MouseEvent.CLICK, killsAll);
        function killsAll(evt:MouseEvent):void {
           SoundMixer.stopAll();

    flash isn't finding those mp3s.

  • External MP3 files not working

    Hi,
    I have attached code straight out of the help file for using
    External MP3 files. It works perfect when I use their HelpExample
    sound MP3 file. However when I simply change the code to point to a
    working MP3 sound file in my LocalHost folder it executes but I
    only get a Blip sound.
    If I just double click on the sound file it sounds ok. and I
    have been successful in using these MP3 files embedded in Flash 8.0
    fla file
    Do the external MP3 files have to be on some special server?
    I am using this code with Flash 8.0
    Thanks,
    hugh

    The most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
    You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF.

  • How to read ID3-tags

    Hi,
    Is there somebody who can explain me how to read ID3tags from a mp3-file.
    I searched whole google and didn't find a clear explanation.
    Sorry for my bad english.
    Maybe someone got an example?
    Thnx

    The source contains examples:
    http://www.ueberdosis.de/java/id3/download.html
    regards
    Christian

  • Pb loading external mp3 sound file

    Hello,
    I use the following code to load and then play an external
    mp3 sound file called "loop.mp3"
    var son:Sound=new Sound(this);
    son.loadSound("loop.mp3",false);
    son.onLoad=function(success) {
    if (success) {
    this.start(0,999);
    When I test my code while being under author environment by
    using CTRL+ENTER Key, the sound is playing properly but when
    launching the swf file alone, the sound is not playing. Why?

    ritpas wrote:
    > Hello,
    >
    > I use the following code to load and then play an
    external mp3 sound file
    > called "loop.mp3"
    > var son:Sound=new Sound(this);
    > son.loadSound("loop.mp3",false);
    > son.onLoad=function(success) {
    > if (success) {
    > this.start(0,999);
    > }
    > }
    >
    > When I test my code while being under author environment
    by using CTRL+ENTER
    > Key, the sound is playing properly but when launching
    the swf file alone, the
    > sound is not playing. Why?
    when you say "launching the swf file alone", what do you mean
    on destkop ? within browser ?
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Load and play different external MP3

    I wanted to do something I thought was simple - I wanted to have a sound playing (loaded external mp3) and then have various buttons on the screen that load an alternate song in its place.  Could someone please help me?
    This is what I'm trying to do:
    var myMusic:Sound = new Sound();
    var reqMyMusic:URLRequest = new URLRequest("mySong.mp3");
    myMusic.load(reqMyMusic);
    myMusic.play();
    music1_btn.addEventListener(MouseEvent.CLICK, music1);
    music2_btn.addEventListener(MouseEvent.CLICK, music2);
    function music1(event:Event)
        // LOAD AND PLAY A DIFFERENT MP3 (in place of mySong.mp3)
    function  music2(event:Event)
        // LOAD AND PLAY A DIFFERENT MP3 (in place of mySong.mp3)

    use:
    var myMusic:Sound = new Sound();
    var reqMyMusic:URLRequest = new URLRequest("mySong.mp3");
    myMusic.load(reqMyMusic);
    var sc:SoundChannel = myMusic.play();
    music1_btn.addEventListener(MouseEvent.CLICK, music1);
    music2_btn.addEventListener(MouseEvent.CLICK, music2);
    function music1(event:Event)
    sc.stop();
    myMusic = null;
    myMusic=newSound();
    myMusic.load(new URLRequest("whatever"));
    sc=myMusic.play();
    function  music2(event:Event)
    sc.stop();
    myMusic = null;
    myMusic=newSound();
    myMusic.load(new URLRequest("whatever"));
    sc=myMusic.play();

  • External MP3 plays back too fast

    Hi,
    I entered a previous post and said that my External MP3 was
    not working with Flash 8.0. I tried a longer sound wave and what it
    appears to be that the sound wave is playing back but at a high
    speed that is unintelligeble.
    Does the MP3 file need to be converted or formated in a
    certain way to use as an External MP3. I have imported the exact
    same MP3 file and it works with no problem in embedded mode.
    thanks,
    hugh

    > I entered a previous post and said that my External MP3
    was not working with
    > Flash 8.0. I tried a longer sound wave and what it
    appears to be that the
    > sound wave is playing back but at a high speed that is
    unintelligeble.
    >
    > Does the MP3 file need to be converted or formated in a
    certain way to use as
    > an External MP3. I have imported the exact same MP3 file
    and it works with no
    > problem in embedded mode.
    Hi
    Audio that sound like Chipmunks is cause by inappropriate bit
    rate.
    it's best to use 16-bit 22 kHz mono sounds (stereo uses twice
    as much data as mono), but Flash can
    import either 8- or 16-bit sounds at sample rates of 11, 22,
    or 44 kHz.
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Control External Mp3

    I'm loading an external .swf using the following code:
    voiceover = new Sound ();
    voiceover.loadSound("Audio/Test.mp3", true);
    The audio plays fine. My question is how can I create a pause, resume, rewind, or fast forward button for an external mp3?

    check the sound() class in the help documents.  it has the properties and methods you need.

  • I am using a Mac Book Pro. Now I am trying to read a LaCie 1 TB external hard disk. The MacBook Pro hangs while reading the LaCie external hard disk.

    I am using a MacBook Pro. I have my movies stored on a Lacie 1 TB external USB harddrive. (42 Movies in HD - 538 Gb in use). When I try to read the LaCie external drive, my MacBook Pro is "hanging". Only a "hard reboot" helps to get my MacBook Pro up and running again. The MacBook Pro starts to read the drive, but half way he "stucks". I can read the LaCie drive without any problem om my windows machines, so the LaCie drive is O.K. Anyone familiar with this problem?

    The drive is formatted NFTS, otherwise the drive can not handle large files under Windows. And yes, I can see the drive in Disk Utility.
    I can even see the files (partly) untill my system is hanging.
    Hans

  • How do you force itunes comments to ID3 tags in MP3 files?

    I have comments all throughout itunes. The mp3 files do not have those comments in the ID3 info.
    How do you force itunes comments to write out to ID3 tags in MP3 files?
    The folder and files all have write permission.

    Yeah, don't do that, you probably also degrade the sound quality... If you've confirmed it is something odd with multiple tags try this.
    Select a group of mp3 files (You might want to start with a smart playlist so you don't mess with any other format)
    Right-click and use Convert ID3 Tags > None (may need to repeat this step if multiple tags)
    Then right-click and use Convert ID3 Tags > v2.3 (v2.4 support still patchy from various accounts)
    Downside is that it will lose any embedded artwork, but it should preserve all other meta-data, both tag-based and stored within the library itself.
    In fact, if you use my CreateFolderArt script before and after updating the tags it should archive any artwork as a local Folder.jpg image for each album and then reinsert that image on the subsequent run... Check it out on a single album first. If it doesn't work as expected let me know and I'll tweak the script to achieve this end.
    tt2

  • How can I download Adobe Reader to an external hard drive to use on a machine not internet connected

    I am trying to download Adobe Reader to my external 1Tb hard drive to use on a desk top that is not connected to the internet for security purposes. how can I choose which drive to save the download to?

    I have the Windows link handy, ftp://ftp.adobe.com/pub/adobe/reader/win/10.x/10.1.0/en_US/AdbeRdr1010_en_US.msi
    For Mac (I haven't tested it), but the following link should work: ftp://ftp.adobe.com/pub/adobe/reader/mac/10.x/10.1.0/en_US/AdbeRdr1010_en_US.dmg

  • Using Flashvars to load external mp3 files

    I am trying to find a very good step by step tutorial on using "Flashvars" to load external mp3 files, I have been searching on google and the many I have found fall short in some way or another. From what I have been able to gather, I have tried using the code in red (commented out), which works, and modify it to use "Flashvars". The code that works, the mp3 file is hard coded, but my goal is to use "Flashvars" which I am attempting to do in the code following the code in red. I am also including the html code. Any help will be greatly appreciated.
    Thanks,
    David
    var soundReq:URLRequest = new URLRequest("mardi_gras2.mp3");
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    sound.load(soundReq);
    sound.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(event:Event):void
        sound.play();
    HTML CODE
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="mySoundvars" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="mySoundvars.swf" />
       <param name="FlashVars" value="audio=mardi_gras2.mp3" />
        <param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />    <embed src="mySoundvars.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="mySoundvars" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" FlashVars="audio=mardi_gras2.mp3" />

    Ok waterlovinguy,
    I went back to my original code, and I got things to work... I think my whole issue was with the HTML CODE. So I decided to use the "SWFObject generator". I had never used it before, frankly I had never heard of it until I started my searches on "Flashvars".
    Thank you very much for all your assistance, PEACE,
    David
    Final Codes below
    var my_var:String = new String();
    my_var = root.loaderInfo.parameters.myflashvar;
    myText.text = my_var;
    var soundReq:URLRequest = new URLRequest(root.loaderInfo.parameters.audio);
    var sound:Sound = new Sound();
    var soundControl:SoundChannel = new SoundChannel;
    sound.load(soundReq);
    play_btn.addEventListener(MouseEvent.CLICK, playSound);
    stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
    function playSound(event:MouseEvent):void
        SoundMixer.stopAll();
        soundControl = sound.play();
    function stopSound(event:MouseEvent):void
        soundControl.stop();
    HTML Code
                    <!>>
                    <!<![endif]>
                        http://www.adobe.com/go/getflashplayer
                        </a>
                    <!>>
                    </object>
                    <!<![endif]>
                </object

  • Dynamic Internal Table for reading data from external file

    Hello All,
    The task was to create a internal table with dynamic columns,
    Actually this is my first task in the WebAS 6.20, my program is based on input file provided by user with certain effort. this file can have different effort for a one yr to five year frame..
    I needed to read the raw data from file, based on months create a internal table to hold the data, after this i need to validate the data...
    I have browsed thru dynamic internal table topic, but couldn't find any dynamic appending structure, the dynamic structure would contains 12 month fileds.
    can any one help me in getting my task completed..
    Thanks
    Kumar

    Hi,
    I see that you posted the same question a couple of days ago at Dynamic Internal Table for reading data from external file Didn't Charles's response address your problem?
    Regards

Maybe you are looking for

  • How do I upload an idvd project to youtube or facebook?

    I would love to upload an idvd project to youtube to share on facebook. Currently, my imovie does not work (that's another help question for another time). I am not sure if iphoto is an option because my idvd project has many movie clips in the slide

  • Data merge issues in InDesign CS4

    Hello I'm having an issue with a data merge document that I've made. The issue  I'm having is when ever I "update content in data fields" items are  deleted off of the page. I have rebuilt it several times but always get  the same issue, any ideas? C

  • How can i create my own apps on iPhone ?

    Dear all Plz how can i create my on apps and publish it on app store ? (From my iphone ) not from mac devise Regards

  • SAP IDM 8 -- Internal Error: Something went wrong

    Not what you want to see when logging in. Based on Todor's mention, I've bypassed SSL on my IDM 8 setup.  However when I login, I get this message: I've checked the login that I used, and first it seemed that I had set an non productive password, so

  • Plant Maintenance: refurbishment orders

    I am creating a refurbishment order for a material using IW81. How can I link a funtional location to the order? thanks john