AS3, 33rd FLV loaded loses sound: with solution

Loading FLVs into an flvplayback component, the 33rd FLV
loaded is silent, and no FLVs loaded after this will have sound.
I had assumed that as the instance was leaving the stage and
it's parents etc were being deleted, and there were no persistent
references to the content, the player would deal with garbage
collection.
It seems this is not the case.
I don't know why the 33rd is the one to fail, but I guess 32
might be the maximum number that work?
So, if loading multiple FLVs into your movie, remember to
manually close the FLVs once they are finished, before loading the
next one.
I used
myFlvPlayback.getChildAt(0).close();
you could also use
currentVideoPlayerIndex =
myFlvPlayback.activeVideoPlayerIndex;
myFlvPlayback.closeVideoPlayer(currentVideoPlayerIndex);
but I found that this errors when you have only loaded one
video, as you can't closeVideoPlayer where the current index is 0.
I can't find anywhere in the documentation that states that
you can only load a maximum of 32 videos into the player, perhaps
it's a sound channel limitation? It would have been helpful for
there to be a note of it in the help files!
Maybe I should have known to manually clean up anyway, but
hopefully this will save a few people a few hours of head
bashing.

Good question!
They are all being loaded into a single component. However,
the component is in a MC being attached dynamically using "new
VideoPanelClass()" (the name of my specific class for the MC that
includes the FLVPlayback), and is being removed from the stage in
between loadings - not just for a split second but for significant
lengths of time. I had imagined it would count as a new component
each time, but it seems this is not the case, despite it tracing as
a new instantiation of the parent MC each time.

Similar Messages

  • Lose sound with optical speakers after using DVD Player

    For some reason when I launch DVD Player my sound will stop on all other applications. Quitting DVD Player won't fix this either. In iTunes, the song won't even begin playing. I've tried checking Audio MIDI Setup, and for my ouput I'm only allowed to choose "None". When I try to select Built-in Audio it won't let me. However, before I launch DVD Player Built-in Audio will output to the speakers. My speakers are Logitech 5.1 Z5500's and I am using the optical connections. They didn't come with any sort of drivers and seem to work fine before using DVD Player, so I don't really know what's up.
    Any help is greatly appreciated,
    Powermac G5 Dual 2.7   Mac OS X (10.4.3)   Logitech Z5500 Digital Speakers

    In DVD Player's preferences when Disc Setup -> Audio Output is set to "Digital Out - Built-in Audio" the AC3 stream is sent to the speakers. This is an encoded stream straight from the disc that provides the 5.1 channel surround sound. The computer cannot take the sound from other applications and mix it with the AC3 stream because it would first have to decode the stream, mix the sound and then re-encode the stream. This is very processor intensive and your system would take a big performance hit.
    To get sounds from other applications while watching a DVD change Disc Setup -> Audio Output to "System Sound Output". You'll lose the 5.1 output from the movie but will hear the sounds from other applications.

  • Exporting with Adobe Media Encoder CC 2014 loses sound.

    So... I've been having a hell of a time with the new Adobe creative cloud when it comes to video editing.  The drop of .flv format, unable to straight export .H24 formats from after effects, it's a total nightmare.  Here's the issue, to export as a .H24, you now have to use Adobe Media Encoder CC 2014.  The biggest issue, however, is at the end of the export, when you open the video, half of the video's sound is mysteriously GONE.  Just gone.  If you go back to after effects, look at the file and the audio, the wave forms are there.  There's nothing that would make it lose sound.  Audio is selected on export... I have no idea what's up.  Editing videos for youtube was a snap in previous versions of After Effects, now It's becoming almost impossible.

    I think the same problem:
    Part of audio missing in mp4 AAC rendered files from Watched Folders
    Probably with cached files. Try this: Adobe Media Encoder 2014.2 Part of audio missing in mp4 AAC rendered files - cache problem? - Video Production Stack Exc…

  • Flash CS4/AS3 - How to use a preloader with FLVs?

    Somehow I've had a really hard time finding a straightforward forum answer or tutorial for this--maybe someone can help?
    I have an SWF file that references/loads an external FLV file (www.44designs.com/promo_video.php), but since the FLV file is about 9MB and can take time to load on a slower connection, I think a preloader (something simple like "LOADING...100%") would be a good idea as the FLV loads.
    Anyone have a simple way to do this??  I've had no success in finding what I need--just scripts for loading SWFs.  You can see an example of this on www.44designs.com where a preloader script I've got seems to be referencing the SWF (thus loading almost immediately) instead of the much larger external FLV.  Make sense?  I'm not super AS3 savvy, but I can follow logic and cut and paste

    Great info, thanks for the post!

  • The sound  with movieclip loaded from outside

    Hi.everybody...I have a probelm with sound working with
    movieclip loaded from outside. this movieclip is just working fine
    alone..but after being loaded to the other movie..the sound doesnt
    play any more.
    by the way,I loaded this movieclip with loadclip and also add
    listener on it.
    any suggestion,,please..thank u .

    try adding
    yourHolder._lockroot = true; //yourHolder would be the
    instance name of the holder MovieClip

  • Load Quicktime movie with AS3

    I'm trying to use Actionscript 3 to load an external video
    file into my Flash project. The file is a .mov file & I can't
    really change that to any other format like.flv. I tried the
    following code, but I get an error saying it's an unknown format.
    var thisRequest:URLRequest = new URLRequest("video/" +
    fileName);
    var thisLoader:Loader = new Loader();
    thisLoader.load(thisRequest);
    addChild(thisLoader);

    Correct, flash cannot play quicktime "MOV" files.
    Flash can play MP4 and M4V/M4A files (which are also
    typically considered Quicktime movies) as well as FLV files.
    If you need to do this project with Flash, then you may want
    to talk to those who do have access to change the video format, to
    change it to use at least MP4 files. Also, you do have an FLV
    encoder that came with Flash that you can use (not to mention
    numerous other encoders for free download that work as well,
    arguably better than the default Adobe one) and thus you, yourself
    could change the files over for your use (though it would be a
    waste of server space to store the files twice)
    Just a thought

  • Problem with loading a sound file

    Hello, I am trying to play a sound file (located in same dir as the class files) from a swing app using this line.
    AudioClip clip = Applet.newAudioClip(new URL("sound.au"));When I run the program, I always get a MalformedURL Exception.
    Could someone please tell me the correct way to load a sound file in swing.
    Thanks

    "sound.au" is no valid URL, hence the exception.
    How about "file:///c/myfiles/sound.au" or something?

  • Distorted sound with mountain lion.Is there any solution?

    i have distorted sound with a usb soundcard since i upgrade mountain lion.. Any idea?

    Once you get straightened out consider backing up via a bootable clone. It can solve a lot of problems.
    http://www.cultofmac.com/48861/how-and-why-to-clone-your-mac-hard-drive-macrx/
    http://www.maclife.com/article/howtos/how_make_bootable_clone_your_mac
    http://macs.about.com/gi/pages/poll.htm?poll_id=9868399270&linkback=http://macs. about.com/b/2012/02/22/readers-choice-awards-2012-voting-best-mac-backup-applica tion.htm&rc=1

  • Is there a solution to getting sounds with safari notifications?

    Hi,
    I noticed that I didn't get sounds with Safari notifications, even after checking the settings.
    So, I took it to the 'Genius' bar, and they said it was a know issue with OS 10.3. It will be sorted with OS 10.4.
    Well, I have just updated to 10.4, and no joy!
    Why? I have selected a suitable sound in sound preferences.
    I have selected 'Alerts' in the nofications preferences for safari.
    I have ticked the play sounds box.
    Why doesn't this work?
    Thanks
    Jeremy

    Right, I've done a restore and ejected the phone. Now it's giving me only two options: either set up as a new phone, or restore from iTunes backup (I don't use Cloud). It's not giving me a sync option so I guess I'll have to restore, unless anyone has any better suggestions?

  • Follow These Steps To Always Lose Sound Effects With 10.5.6

    I can lose sound effects on Mac OS X 10.5.6 by following these steps. Can anyone else also lose their sound effects? This problem has existed for me on many releases of 10.3 and 10.4.
    1) Enable Fast User Switching.
    2) Login as user1 and note that sound effects work.
    3) Without logging out as user1, login as user2 and note that sound effects work.
    4) Without logging out as user2, go back to user1 and note that sound effects still work. Then logout from user1.
    5) Go back to user2 and note that sound effects no longer work.
    6) Reboot system to restore sound effects.

    Can anyone reproduce the lost sound effects problem?
    Thanks.

  • Loading external png with transperancy

    Hi,
    Im trying to create an as3.0 navigation with a few buttons.
    Each button is a png image.
    When im importing images to the stage i dont have any transperancy issues but the problem is that they are not smooth enough, especially
    because im animating them using TweenLite.
    I thought that the only way to do it properly is to load all the images using as3 into bitmap objects and then use the smoothing property.
    The problem is that everytime that i assign the png to a bitmap object i lose the transperancy information and i get a white background...
    Anyone knows how can i keep the transperancy information from the png onto the bitmap object ?
    Thanks

    Here's a bit of code that loads a png with transparency, smooths it, and places it on stage.
    var a:Loader = new Loader();
    a.load(new URLRequest("spider.png"));
    a.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    function done(e:Event){
        var bit:Bitmap = e.target.content;
        if(bit != null){
            bit.smoothing = true;
        addChild(bit);

  • Loading child SWFs with TLF content (from Flash CS5.5) generates reference errors in FB4.6

    I am currently producing e-learning content with our custom AS3-Framework.
    We normally create content files in Flash CS5.5 with dynamic text fields, which are set at runtime from our Framework (AS3 framework in FB4.6).
    Now we are in the progress of language versioning, and since one of the languages is Arabic we are changing the dynamic text fields to TLF fields.
    Then all my problems started.
    In Flash I have chosen to include the TLF engine and to export in frame 2.
    (see to: http://helpx.adobe.com/flash/kb/loading-child-swfs-tlf-content.html )
    I get this error:
    VerifyError: Error #1053: Illegal override of getEventMirror in flashx.textLayout.elements.FlowLeafElement.
                at flash.display::MovieClip/gotoAndPlay()
    I guess it is because our framework wants to gotoAndPlay before the TLF engine has been loaded.
    Can this be it?
    Any good suggestions on how to handle loading child SWFs with TLF content.

    Please refere to the following articles .. you may find some help.
    http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
    http://www.adobe.com/devnet/flash/articles/preloading-tlf-rsl.html
    I also faced similar problem and posted a question at the following link, but, I still couldn't find the solution.
    http://forums.adobe.com/message/4367968#4367968

  • All video players on Firefox lose sound and stop playing

    Any video player I play will randomly lose sound and a few seconds later stop playing. I've noticed that this happens when I have two or more tabs with video players on them. Having only one tab with a player, be it youtube, jw player, or veever, does not cause any problems. Having two of them out at the same time causes the problem to occur.
    I believe this happened around the time I installed winzip and Windows XP Mode onto my computer, but I have since uninstalled XP Mode.
    I use an Acer computer, Aspier 4830T-6841, windows 7.

    Recent crashes of certain multimedia contents (this includes Youtube videos, certain flash games and other applications) in conjunction with Firefox are most probably caused by a recent Flash 11.3 update and/or a malfunctioning Real Player browser plugin.
    In order to remedy the problem, please perform the steps mentioned in these Knowledge Base articles:
    [[Flash Plugin - Keep it up to date and troubleshoot problems]]
    [[Flash 11.3 crashes]]
    [[Flash 11.3 doesn't load video in Firefox]]
    Other, more technical information about these issues can be found under these Links:
    http://forums.adobe.com/thread/1018071?tstart=0
    http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
    Please tell us if this helped!

  • No Sound with updated QUICKTIME

    Hi,I am thick trust me, i have a new imac and installed the updates when it was available but since then i have no audio when i use QuickTime, i have sound with everything else,except for everything that was already stored on the system so all my films and programs have no sound.......PLEASE HELP, Regards THICKO or email me at [email protected] thankyou thankyou thankyou

    To Apple Discussions!
    *A few suggestions:*
    Repair permissions & restart.
    http://docs.info.apple.com/article.html?artnum=300832 Mac OS X: No audio from certain multimedia content
    Trick/Tip: Open up GarageBand if installed then, open a program (optional).
    Quit out of the GarageBand app.
    ===============
    *Install the following:* Flip4Mac
    VLC Media Player
    Perian (AVI and FLV support)
    Repair permissions after the installations.
    =============
    If none of the above work, then I suggest that you do a forum search. At the top right of this site you will see Search Discussions.
    In the blank search window w/the magnifying glass in the left corner type your issue.
    You will then find several troubleshooting solutions pertaining to your issue for you to try out.
    Good luck!

  • FLV's Loosing sound

    Hello all.
    Im finding when I use either Flash Video Encoder of just a
    regular export from QT to FLV, that the sound often drops out of my
    FLV's after a few seconds. There's sound ont he orginal QT. If I
    export through QT to another format, then the audio is fine and
    always present. Any ideas ? Intel Mac w10.4.10

    This bug in the Flash encoder cost me weeks of effort to
    figure out why but here is the reason:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402508&sliceId=2
    Here is a solution:
    A fix!
    QuickTime 7.2 requires your source video to be encoded at
    44.100 kHz on the Macintosh.
    Step 1: I saved my movie from the original .dv file to .mov
    to de-interlace the movie in QuickTime Pro.
    Step 2: I saved my movie from .mov to .mp4 choosing the
    44.100 kHz sound setting using QuickTime Pro.
    Step 3: I saved my .mp4 movie to .flv to use in Flash from
    QuickTime Pro.
    However I found that converting to .mp4 then to .flv created
    a video file with too much distortion. And also I found that
    leaving files in the DivX format even with the 44.100 kHz sound
    setting also stopped playing.
    My best results were to use Quicktime Pro to export to a file
    that has video compresssion NONE and Audio compression NONE to
    convert to the FLV format. I suspect but have no proof yet that the
    MPEG layer3 audio codec is also a problem.
    Files are now playing fine in the .flv format.

Maybe you are looking for

  • Php delete the first record in an xml doc

    So I have a shoutbox, and I only want it to store about 300 results, and the only way I can think of doing that is to fill it with three hundred results, and then delete the first one every time a new one is added, but I can't find a way of doing thi

  • How to create a podcast?

    I'm so very confused--I've Googled and read the docs, but I can't find a solution for what I'm trying to do, which I imagine is pretty basic.  I'm clearly misunderstanding something. I have a program written that goes to my organization's website and

  • Error while decompressing source file

    Why does this come up? last week I could drag items into the queue and choose the format today it gives me the error message. Help if you can I am running CS6

  • If phones under warranty ,will they repair cracked screen?

    I cracked my screen and the phone is becoming non responsive, what does apple charge to fix it if the phones only 4 months old?

  • ASP insert record receive mail alert

    Hi, I have an insert record in my ASP page to my db Access, that's works fine. I want to know if it is possible to send at the same time a mail to me that tell me there is a new record? Can I put two form actions in the same form? <form action="<%=MM