Sound Starts before Movie Loads Completely

I'm using Flash Pro MX 2004 and I've created a movie with a
progress bar and loader. I've used the progress bar and loader
components that comes with Flash.
I use the loader to load a movie that contains a soundtrack
sync'd to the movie. My problem is that the sound begins to play
even though the movie isn't fully loaded and the progress bar is
still "progressing." I've tried inserting a frame at the beginning
of the movie that plays the soundtrack so that the sound isn't
loaded on the first frame but that doesn't seem to help.
Does anyone have suggestions on how to fix this?

if all your sound instances are the same:
var s:Sound = new Sound(this);
you can use:
s.setVolume(0);
to make it seem that all sounds have been stopped throughout your app.
however, if you use different sound instances you'll need to use a variable to indicate you don't want to (re)start any sounds.

Similar Messages

  • Empty Movie Clip Shows White Box before Movie Loads

    Hi all!
    I created a type of slide show template that imports external
    swfs. Everything works, but the client doesn't like the white box
    created by the empty movie clip that appears before the external
    swf loads. Does anybody know how to get rid of this? Any assistance
    would be greatly appreciated!
    Sincerely,
    rs

    > I created a type of slide show template that imports
    external swfs. Everything
    > works, but the client doesn't like the white box created
    by the empty movie
    > clip that appears before the external swf loads. Does
    anybody know how to get
    > rid of this? Any assistance would be greatly
    appreciated!
    Hi there rs
    Forum archives:
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    search for "white box"
    http://groups.google.com/groups?as_q=white+box&num=10&scoring=r&hl=en&as_epq=&as_oq=&as_eq =&as_ugroup=macromedia.flash.*&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind=1&a s_minm=1&as_miny=1981&as_maxd=28&as_maxm=9&as_maxy=2006&safe=off
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How prevent movie from loading completely before playing?

    Hi,
    how do I prevent an swf from loading completely before
    starting to play in the browser? When simulating a download in the
    Flash application, several preload stages work perfectly, but not
    in the browser. Preload stages don't appear, instead it takes ages
    for the 3.5 mb file to completely load before displaying the first
    frame of the movie.
    I have tried inversing the load order in export settings and
    different flash versions, but just can't get it to work.
    Can someone help? Thank you!

    hi kglad
    I thought it should be that way; the point is that I don't
    want to add code that loads the entire movie before starting to
    play the first frame, but only a certain number of frames (i.e. 11
    out of 35, for example). I'm trying to do this with this code in
    the first frame:
    ifFrameLoaded (11) {
    gotoAndPlay("start");
    in the simulation, it works perfectly, but when uploading the
    movie and viewing it in html, the entire thing loads, and the
    preloader doesn't appear.
    Many thanks for your help.

  • I am trying to start a movie and it will not start. The message is "an error occurred in loading this content". Has anyone had this problem before?

    I am trying to start a movie and it will not start. The message is, "an error occurred loading this content". Has anyone had this message before? Any solution?

    Hi there TonyCashio,
    You may find the troubleshooting steps in the article below helpful.
    Apple TV (2nd and 3rd generation): Troubleshooting playback performance
    http://support.apple.com/kb/TS3623
    -Griff W. 

  • Windows Embedded Standard 7 TCP/IP Services not completely started before user application loads

    WES7 is set to autologon a user and launch a startup batch that launches my application.  My application, through a series of LEDs, notifies the user when the system
    is initialized and ready to go.  What I've noticed is that even though the system is "up and running" TCP/IP services are not initialized yet.  For example, RDP Server won't respond as well as ICMP/ping and FTP services.  Sometime
    later, maybe 20-30 seconds Windows TCP/IP services come alive and everything is okay.  Once other thing to note is that I am using BIT Locker and when I turn it off, TCP/IP services, a majority of the time, are alive immediately at or around autologon.
     My guess is that there is some contention when Windows is logging and starting services and the behavior for which services are started when is not always deterministic.  Is there a way to guarantee TCP/IP services starting before other services?
     I’ve messed around with several services in service manager but none seemed to fix the problem.  One other item to note.  I was able to issue a ping as my first command in my startup script to a fixed IP which appears to force TCP/IP services
    to initialize.  The problem with this “hack” is that I don't know any host IP addresses until my system has fully started.  Plugging in the loopback address in the script or my own external IP did not work.
    Thanks,
    Joe

    I forgot this is getting trickier to track this for WES7. There was this method in C#:
    http://stackoverflow.com/questions/10855290/which-windows-service-ensures-network-connectivity
    Workstation Service or DHCP Service might be good enough. Firewall should be late enough that the network
    Of course there are other methods like doing a ping until a an address returns:
    http://serverfault.com/questions/612237/how-to-wait-for-network-in-a-batch-script-when-booting-on-windows-server
    Other implementations:
    https://social.technet.microsoft.com/Forums/windows/en-US/393e6042-dea0-4285-9aeb-2ddf50434f6b/windows-7-always-wait-for-the-network-at-computer-startup-and-logon-group-policy?forum=w7itpronetworking
    http://superuser.com/questions/262799/how-to-launch-a-command-on-network-connection-disconnection/262880#262880
    I have never tried this one since it is more for domains:
    Go to Start -> type in "gpedit.msc" in the run/search field.
    In the Local Group Policy Editor that pops up, go to "Computer Configuration" -> "Administrative Templates" -> "System" -> "Logon" -> "Always wait for the network at computer startup and logon"
    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET

  • Swf movie starts before preloader is finished

    Hi,
    I tried to implement a simple preloader for an existing swf movie. I've created a new flash document and added the Loader as well as a ProgressBar component. In the action script of the key frame 1, I implemented the following:
    import mx.controls.ProgressBar;
    loader.contentPath = "myMovie.swf";
    pBar.setStyle("themeColor", "0xF49417");
    pBar.setStyle("color","0x3D566F");
    pBar.labelPlacement = "bottom";
    pBar.label = "LOADING %3%%"
    pBar.scaleY = 150;
    pBar.conversion = 1024;
    pBar.source = loader;
    pBar.mode = "polled";
    loader.load();
    The problem is now that the movie starts playing (i.e. its sound) before the progress bar is completely finished. This usually happens around 80%. How can I avoid that the movie starts before the progress bar reaches 100%?
    Thanks,
    Patrik

    Thanks for your replay! I added an empty keyframe to the first scene of the existing flash movie with a stop() action in it. Additionally, I modified the preloader with an action listener that is called in case the movie is loaded completely. The action script of the preloader does now look like follows (without sytle settings):
    import mx.controls.ProgressBar;
    loader.contentPath = "myMovie.swf";
    var pbListener:Object = new Object();
    pbListener.complete = function(evt_obj:Object) {
    trace("movie loaded");
    play();
    pBar.addEventListener("complete", pbListener);
    pBar.source = loader;
    pBar.mode = "polled";
    loader.load();
    It seems now that this play() does not reference to the swf movie (myMovie.swf) with the stop in the first frame since the movie does not start playing after its loaded. How do I reference the play action to the loaded movie?
    Thanks,
    Patrik

  • IMove loads completely before playing on Homepage

    I have a perplexing problem.
    I just created a 20 minute iMovie that I put on my .Mac Homepage.
    To do that, I saved it as a Quicktime file with the settings of 12
    frames per second and the size of 240x180 and put it in the Movies
    folder of my iDisk account.
    So I've done all the stuff on my Homepage to publish it, but when I
    try to view the movie when I use the URL for it, it takes forever to
    load. I timed it this afternoon at 3 and a half minutes before it
    would start playing. So I thought it might be taking so long because
    the file was so large at 50 MB. But I have another movie on my
    Homepage that's 30 MB, and it loads and starts playing instantly.
    I noticed that the one that plays right away continues to load as
    it's playing, but this new one seems to want to completely load
    before it starts playing. I've tried looking for settings to see if
    I had set something different, but I don't see any settings for the
    Homepage, and nothing either in iMovie.
    Does anybody have an idea what might be happening?
    iMac   Mac OS X (10.4.3)   1 gb ram

    Well, Karl, thanks for your tips about what you did with the original ..I'll try that too.
    Meanwhile - while Discussions was down earlier today - I took the original (..the blockiness came from the original compression with QT 6.5.2, I think..) and played it in QT7 and then just clicked 'Share', and QT offered to set it up as 'Automatic' - which meant shrinking it down to 240x180 (from 320x240) which would produce a file size of 10.4MB instead of 41.1MB.
    So I let it do that, and let it directly upload it to my Homepage ..whereas previously I'd 'Exported', put the exported file in my Desktop iDisk, then sync'ed the iDisk to dotMac and manually created a movie page..
    Anyway: it 'Shared' it straight to my dotMac Homepage, where I selected a 'Frameless Black (Large)' blank page, thinking that by putting it in a 'Large' page that would expand the size from teeny 240x180 to something larger ..which it did.
    But the expansion to a larger size makes it rather less sharp and lowers the apparent resolution. That's because it was encoded with the old QT 6.5.2 codec, not the more advanced, scalable H.264 codec of QuickTime 7. And when seen with QT 6.5.2, some of the black borders on the page, intended to automatically pad out the 4x3 aspect ratio to a possible 16x9 shape, don't meet the edge of the movie itself, so there are white bands at the left and right of the movie. When seen with QT7, the page's black edges do correctly fill to the 4:3 ratio so that there's black all around the edges of the movie.
    [..Because it was originally "manufactured" with QT 6.5.2, this movie's visible when using either QT 7 OR earlier versions of QuickTime on your Mac..]
    I then uploaded - I mean 'Shared' - it also to a 'Frameless (Black)' page which wasn't called 'Large', so it's in the actual 240x180 size and shape which QT 7 prepared, and both QT 6.5.2 and QT 7.0.3 correctly play it back as 4:3 - with black going right to the very edges of the movie, and the 'native' resolution's nice and sharp.
    Both of these load and start playing almost instantly, on my fast broadband connection.
    So what I draw from this is that:
    (a) Smallest useful filesize makes the movie load and play far faster;
    (b) Use 'Share' to send a movie to a Homepage, accepting Apple's default values, to package it so that it loads and plays at its optimum speed, without needing to specify 'Fast Start' or 'Hinted' or whatever;
    (c) Choose the appropriately specified page for the relevant aspect ratio of the movie ('normal' for 4:3, 'large' for 16:9 or HD);
    (d) 'Creating' the movie in QT 6.5.2 gives slightly lower resolution and blockier artifacts than using QT7's H.264 codec, but allows everyone to view it ..and nothing of that is altered by using QT7 to 'Share' or upload it.
    The 'large' version is here, and looks a bit unsharp, as it's been 'magnified', and will have white edges if you're viewing it with a QuickTime version earlier than 7.
    The 'normal', un-enlarged version is here, and looks OK in both QT 6 and QT 7, but is rather small, and therefore loses some impact.
    But both of them load and play pretty much instantly on a fast connection!
    [..Finally: the source of all this was a cable TV programme about films: 'America's Greatest Love Stories' ..which I recorded on a TiVo in MPEG format; then played it out of the TiVo and into an Archos Video Jukebox (..predecessor of a Video iPod, but which includes its own excellent hardwired codec..) in DivX format; FireWired it across from the Archos' hard disc into my old PowerBook running 10.3.9 (..as there's no DivX codec for 10.4 yet..) and into QuickTime 6.5.2; then uploaded that using QT 7 on another PowerBook. And yet it's survived, and most of it looks, and sounds, great ..though rather small, and with less impact now. But I find it incredible that it survived all that so well!..]
    P.S: I could watch it forever, couldn't you?..

  • Stop embedded sound playing before clip starts

    Hi,
    When I test my app on a device the sound starts playing before the movieclip.  The sound is embedded in an external swf.  I can access the sound using:
    SoundMixer.soundTransform = new SoundTransform(0);
    But I can't work out where to turn it back to 1 so it starts when the movie starts.  The code I'm currently using is below, but the sound still starts before the clip does.
    Thanks.
    private function startMovieOne(event:MouseEvent):void
                var defaultSWF:URLRequest = new URLRequest("movieOne.swf");
                loader.load(defaultSWF);
                loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
                loader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
                loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
            private function onInit(evt:Event):void
                loader.contentLoaderInfo.removeEventListener(Event.INIT, onInit);
                SoundMixer.soundTransform = new SoundTransform(0);       
            private function showProgress(evt:ProgressEvent):void
                loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, showProgress);
                var loadProgress_percent:Number = Math.floor((evt.bytesLoaded * 100) / (evt.bytesTotal));
                trace("loadProgress_percent: " + loadProgress_percent);
            private function onComplete(evt:Event):void
                movieTwo_mc.addChild(loader);
                trace("loaded");
                loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onComplete);
                SoundMixer.soundTransform = new SoundTransform(1);

    i assume the sound is attached to a movieclip timeline (otherwise, use the sound reference).  movieclip's have a soundTransform property that you can use to control their sound.  you should be using that instead of the global SoundMixer soundTransform unless you have more than 1 sound and you want to control them all concurrently.
    and, you use the soundTransform like this:
    var st:SoundTransform=your_mc.soundTransform;  // though, you could continue to use the less desireable, var st:SoundTransform=SoundMixer.soundTransfom;
    st.volume=1;
    your_mc.soundTransform=st;  // again, if you continued using the global SoundMixer soundtransform, this would be:  SoundMixer.soundTransform=st;

  • ITunes downloaded movies, sound stops before end of movie.

    Sound stops before  end of my downloaded iTunes movies. I must stop the movie and start it again to get all the sound.

    I am having the same problem and there does not seem to be an answer. How do we get our money back for the rental? It's not the $4 but the principle ... Don't sell a product that does not work.

  • I rented a movie for Apple TV via my Mac months ago. SInce than when I go to open itunes...it quits before anything loads. HOw do I fix this?

    I rented a movie for Apple TV via my Mac months ago. SInce than when I go to open itunes...it quits before anything loads. HOw do I fix this? I haven't been able to use itunes on my computer since than!

    Rented movies downloaded to an Apple TV can't be transferred to any other device.
    (86941)

  • HT1391 I started download on my iphone and cancelled the same before it could complete. There is no option of removing the incomplete download and also it is affecting my songs in 'Music'. The next or previous song is being played instead of the song sele

    I started a download of a video in the app "Free gift for 12 days". I cancelled the download before it was completed. It is now affecting the music in my phone library, as the next or previous song is being played instead of the selected song. Any suggested solutions?
    I have an iPhone 5 wid the latest OS 7.0.4 installed.

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • When I use my remote to start a movie on iTV it starts a different movie on my MacBook, plus if I use the arrow up or down on my remote it adjusts the sound on my MacBook.  How do I stop this?

    I am using 2nd generation Apple TV and have a MacBook Pro.  When I use my remote to start a movie on iTV a different movie starts on my MacBook.  Also when I use the up and down arrows on the remote it adjusts the sound on my MacBook.  Is this something I have to live with, or is there something I can do so the remote control doesn't affect my laptop?

    Well, I feel sheepish.  I found the answer.  Thank you Apple Community!!!

  • Middleware starts replicating before initial load

    Hi folks,
    currently i´m setting up the middleware to connect a live ERP with a fresh CRM. The initial load is not done yet, also a lot other configuration stuff. I noticed that at the time of registering the queues the middleware is connecting itself and listing first BDocs in SMW01. Mostly R3AD delta(!) material BDocs (which fail by mapping error currently) but also green ones like 'class message' or 'objcl_message' which seem to have dummy or real entries. This is a problem as i did not configure e.g. R3AC1 filters or number ranges yet.
    I thought delta load is triggered first after initial load. How can i stop the middleware before i finish the configuration stuff. If there is a 'switch off' (like deactivate a business adapter object in R3AC1) i guess i would have to switch it on again just before the initial load and then risking uncontrolable connection againg before i can execute R3AS. I mean if i would e.g. deregister the queues i could end my configuration but i would have to register the queues just before initial load and would again having no control about the start of the replication. Is that a problem for you? - How do you handle that issue usually if you set up a new CRM?
    Thanks

    Hi,
    Read these topics:
    Re: Turning Bdoc On & Off, & its monitoring
    Re: Deactivation of data exchange between ERP and CRM
    Denis.

  • Need to load complete preview before playing from the iTUNES STORE  No such selection.

    REBUFFERING STREAM is constant during preview of songs.   The solution suggested by the community was to: Go to iTUNES preferences>STORE and select "LOAD COMPLETE PREVIEW BEFORE PLAYING.   I tried that but the STORE does not offer this option.   WHAT NEXT?

    I have the same problem with my iphone 4 . I solve it with giving permission to the cookies on safari from the settings.

  • Sound pauses before starting with firewire soundcard

    I have a Focusrite Saffire LE sound module connected using firewire to my iMac. If I don't play any sound (via iTunes or from youtube say) for a few seconds and then try there is a delay of three or four seconds before the sound starts and the app stalls (beachball).
    Everything is up to date and nothing appears in the logs at all. I've tried searching and google and I seem to be unique in this problem.

    It only takes a gap of about three seconds for the sound system to then stop responding for a few seconds when I next try to use it. The hard drives aren't set to spin down and there is no energy saving going on (that would kick in within three seconds).
    I'm guessing this is possibly a Saffire LE problem rather than a mac sound system problem although why it should take a few seconds for an app to get a handle to the sound system I don't know.

Maybe you are looking for

  • ITunes library 11.0 (Windows 7) bug

    I updated my iTunes libray and I puchased a new song using version 11.0 iTunes library and in my songs Get Info my Apple ID and the Label Records was not in there.

  • Is Eloqua actually doing anything with Ideas Exchange?

    I don't want this post to come across as brash, just wanted to spark some discussion. I'm a fairly new Eloqua customer, and part of the onboarding included promotion about the new topliners community and the Salesforce.com driven Ideas Exchange. I wa

  • BLOB fields again...

    Hello, I'm developing an application which has a database table with blob fields. I've had many problems recently with this type of field, the most undesired being that LOV fields doesn't work in pages with BLOB fields. As a workaround, I've done a s

  • URGENT HELP IN SCROLLBAR  MOVE TO BOTTOM

    Joined: May 30, 2006 Messages: 19 Dear friends, I am using one Jtable in row also scrollbar .And requirement is while adding each row the table row and scroll bar will go to last row automatically. I atried below code. m_jTable.scrollRectToVisible(m_

  • Space for video titles is too small!

    Hi, Am I missing something? The amount of space assigned to a video title is too small - for example I have 3 podcasts called OnSoftware - Secure Coding in C and C++ with Robert Seacord - Part 1 OnSoftware - Secure Coding in C and C++ with Robert Sea