External MP3 files causing long delays (using MediaPlayBack component)

I've got 5 MP3 files that I am calling (on click) to be
played. They're large - about 15MB each. The Flash movie is
intended to be distributed on a CD. However, when I launch the
movie (Flash Pro with Slides) it takes a long time (30-200 seconds)
before the first screen will show. Sometimes Flash displays the
"actionscript is taking a long time..." message. When I remove the
slides that play the MP3 there is no slowness. Also, when the MP3s
cannot be found the movie has no delays.
I converted the slides back to a timeline-based movie. This
eliminated the up-front delay, but now the delay appears when I
click on the button to play the MP3.
Any ideas?

I noticed that streaming is not working from CD... Instead
all the file is loaded first, and that's why you've got
delays...

Similar Messages

  • 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

  • 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.

  • 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 Do I Use an External MP3 file Without Embedding it? (AS2)

    I am using Adobe Flash CS6 with ActionScript 2.0.
    I have compiled my project, and due the collection of embedded mp3 files (background music) I am using on various locations, my published swf file is over 12MB.
    To reduce the size, I placed all the mp3 fiels in the same folder as the swf file and removed all reference to them from the project.
    I then added this code to frame #1
    import flash.events.Event;
    import flash.media.Sound;
    import flash.net.URLRequest;
    var CreditsMusic:URLRequest = new URLRequest("NineWalkers.mp3");
    var s:Sound = new Sound(CreditsMusic);
    CreditsMusic.setVolume(50);
    CreditsMusic.start(0,1);
    Obviously, this is not working (I would not be posting here if it was).
    What am I doing wrong?

    I haven't look into the help documents (you can), but I see you mixing up AS2 and AS3 code, along with treating a URLRequest (AS3) as if it is a Sound object....
         CreditsMusic.setVolume(50);
         CreditsMusic.start(0,1);
    If you want to work with the Sound class in AS2 open the help documents and see what properties and methods are available for the Sound class and work things out from there.  If you search Google using "AS2 Sound loadSound" you might get some good info as well.

  • How can I convert MP3 file to AIFF to use in FCP?

    Hi guys,
    How can I convert an MP3 file to AIFF file to use it in Final Cut Pro?
    Anyone please,
    Thanks in advance,
    Zia

    #5 Imported music from CD or iTunes
    Shane's Stock Answer #5:
    To get music into FCP, it needs to be an AIFF file at 48khz, 16 bit stereo. So if you want a song from a CD, you go into the iTunes Preferences and set this up under the IMPORTING tab:
    File > preferences > importing > import using - AIFF encoder > Setting - Custom
    Sample Rate - 48.000 kHz
    Sample size - 16 bit
    Channels - Stereo
    If you have an mp3 that you want to use, then you can convert it thru iTunes as well.
    If the piece of music you want to use is something you purchased thru iTunes, I'm afraid I can't help you there. There are copywrite issues that prevent files from being converted into the format that FCP can recognize.
    Shane
    "There's no need to fear, UNDERDOG is here!"

  • When to use FLVPlayback and when to use MediaPlayback component

    Hi,
    I looked at at the FLVPLayback component and the
    MediaPlayback Component and I wonder when one should be used over
    the other? Any experienced designer out there that can tell me?
    thanks
    -Malena

    Hey, My problem with using flvplayback is that SOME windows
    vista computers, and i seriously cannot figure out exactly what it
    is but they will play the flv very choppy and so i had to use
    mediaplayback and it works fine on all computers that i have tested
    it on. it was VERY annoying because my client kept attempting to
    watch video from his computer and it came through as garbage and
    when i watched it, well it was perfect. so i tested it out on
    several different computers and operating systems and found that
    certain computers were just not compatible. I am assuming they were
    just not up to date? i dunno, i have a mac, dont have those
    problems :)

  • How to get time spent in the repaint(long delay) method of component?

    Hi,
    I'm trying to get the time spent in the repaint method of Component. I tried to surround the method with time information:
    long time = System.getTime();
    component.repaint(400);
    time = System.getTime() - time;
    System.out.println("Time spent in repaint is: " + time);
    But, the method seem to return about immediatly after call, whereas the display do not seem to be completly redrawn. I think that this is because repaint method is done in a separate thread....
    I thought to catch the event that could be thrown when redrawn is completed but could not find this event....
    Do you have an idea how I could perform this?
    Thanks a lot
    Tanguy

    repant() posts an event to the Event Queue so that sometime soon the component's paint() mehtod will be called. It will be called by the Event Thread.

  • Display live stream media in older players using MediaPlayback component

    Hello,
    Is it possible to preview stream encoded by Flash Media
    Encoder 2 and fed to Flash Media Server 3 in MediaPlayback
    component of older flash players?
    Thank you.

  • Have used Firefox for years and upgraded to 3.6.13 from .11 but typing speed in both versions is very slow causing long delays

    Windows Task Manager shows CPU usage spiking periodically from 1-2% to 100% and the PF Usage is up too.

    I can comment that the only routine I had to block in the latest version, was plugin-container.exe.
    It seem to isolate other plugins, but its connected to the internet and makes a backdoor that my firewall didnt understand.
    the isolation must be ment to protect the browser from crashing plugins like Adobe Flash, Apple Quicktime and more, but in fact I never experienced a crash in them.
    Sålunda, I made a small program that blocks plugin-container.exe from starting.
    The backdoor once started a heavy activity, 80% of my total cpu-power (wich is very much for a quadruple of potential cpu) and I noticed it exactly that way -typing got slower.
    Who wants such backdoors?
    Suddenly Microsoft crawels in to it :)

  • How to speed up render to h.264 in CS6? Adobe QT32 Server.exe causes long delay

    (Before you say "Don't use AE to render to h.264; use AME!" – I'd love to, but AME isn't controllable from the command line / batch files the way aerender.exe is)
    When I try to render a brain dead simple composition (30 seconds, black background with the word "DUMMY" centered), aerender takes nearly four minutes to complete. This is a Windows Server 2012 box with 32 CPUs (16 cores+16 HT), about ~60GB of memory and I believe it's on 10Gb ethernet. Turning multi-processing off doesn't have effect on the pause.
    If I view the task in task viewer, NO CPU is being used and Adobe QT32 Server.exe is running. Analyzing the wait chain for aerender.exe says that a thread is waiting for network i/o to complete (I assume this is Adobe QT32 Server.exe, which uses TCP to talk to Quicktime). After about three minutes, the render continues (and goes blazingly quick, as expected).
    WTF?
    How can I get around this long, useless pause? Is there an alternative h.264 output module that doesn't use Quicktime?
    Thanks in advance!

    The flaw is here:
    This is a Windows Server 2012 box
    Adobe desktop programs are generally not officially supported on server operating systems. Whatever issues you have are probably due to things like local users vs. network users, disk quota, specific group policies or plain and simple another process occupying or blocking the same port that the QT server is using. In any case, this is nothing we can figure out for you. You have to sit down and work your way through the server's administration tools, turn off stuff, change user permissions. Check the event logs for conflicting processes or use tools like Sysinternals' Process Monitor or Wireshark to track down port collisions and otehr problems.
    Mylenium

  • MP3 file causes Mac Projector to crash

    I'm noticing that some (not ALL) MP3s when played in a Mac Projector (either using the "play" or the "playFile" command) will cause it to immediately crash. It doesn't do it during authoring, it only does it in the compiled projector.
    Has anybody else ever run into this?

    Same response as I just gave on Direct-L: do you have required xtras packed into your projector?

  • Is it possible to load an external MP3 file and play it on a mobile phone?

    please help, is that possible? if so, how??

    Could you elaborate your issue?
    It is possible. Are you using Flash Lite 3.1 to achieve this? if so, refer to the help documentation for more help on "how" to do this.
    If you are using FL 3.0 or less, you cannot as it doesn't support Sound streaming. But better if your question was detailed.
    - Hemanth Sharma
    http://www.flashlitehub.com/blog

  • How to change to native file name in ucm using custom component

    I am having the requirement to change the  name of the native file to some PO_contentid_1 .
    contentid is the contents content id. please help

    Hi ,
    This value is stored as dOriginalName and this is the one which would need to be modified .
    Thanks,
    Srinath

  • 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.

Maybe you are looking for

  • [SOLVED] Problem transferring large amounts of data to ntfs drive

    I have about 150GB of files that I am trying to transfer from my home partition which is ext3 /dev/sdd2 to another partition which is ntfs mounted with ntfs-3g /dev/sde1 (both drives are internal sata). The files are sizes ranging from 200MB to 4GB.

  • ELearning Suite 2.5 or Camtasia

    Hello- Previously on my technical site I used camtasia 6.1 software.  ITs ok to do what I do, record my computerscreen as I talk over.  Later I go back and add 10 seconds of music at the beginning and end with a powerpoint slide. Then I produce it in

  • How do iPhoto and Adobe Elements Organizer compare?

    I just installed Photoshop Elements 13 and am curious how others compare iPhoto 11 and Adobe Elements Organizer 13 compare.

  • Question about self defined Application monitoring object

    Hi I m trying to define my own monitoring objects, but what defined in the monitored system can not appear in solution manager(4.0). I have newest version of sap-a/pi , the ST-PI is 2005_1_700, any one can drop me some lines where coulde be the probl

  • How do i keep my cousin from downloading games?

    how do i set up a block to keep my cousin from downloading games onto my mac? is there a way i can set it up so i need to enter my password?