Preloader snag

total noob here...
I'm trying to create a preloader animation by having the
movie loop on the first two frames until getBytesLoaded() ==
getBytesTotal(). The problem is I have a very large sound file
that's linked to "Export for Actionscript". Now by default the the
"Export in First Frame" option is checked and, as I understand it,
this will prevent my two-framed loader animation from showing,
because the first frame doesn't start until AFTER the sounds are
loaded.
The problem is, if I uncheck the "Export in First Frame"
option, my sounds disappear completely and don't get compiled with
the .swf file... why is that?
I know this is just a stupid newbie thing and the answer is
probably very simple, but it's driving me crazy and any help would
be greatly appreciated.
Thanks.

thanks for the reply yachts99.
The closest thing I can find under publish settings >
flash > settings button that sounds like what you're saying is
an option that says "Export frame for classes", nothing about
sounds. I tried setting that one to 3 but it still forgets to load
my sounds.
Forgot to mention that I'm using Flash 8, if that makes a
difference.
I've found that if I drag the sounds onto the stage in some
keyframe after the rest of my frames it will load the sounds and
still play my animation. I'm glad that works, but it seems sloppy
to me. Fortunately I only have a few sounds for this app, but
eventually I expect to be creating apps with a lot of sound files.
I develop games with Director and I've been thinking of switching
to flash, but if this sound thing is going to be a problem then I'm
going to have to think twice (games generally have a lot of sounds
files).
If anyone can show me an easier way I would be very grateful.

Similar Messages

  • Quicktime Pro, preload and Director Que Points

    Hi All,
    I have just discovered that the latest version of quicktime
    Pro (7x) does not have the prelaod option when exporting a movie.
    If you have markers embedded in your quicktime movie that you want
    to use as que points in Director you can no longer do this as you
    MUST have the preload setting enabled in Quicktime Pro when
    exporting the movie. Director will throw an error when you try to
    import the quicktime file warning you that the file is not
    preloaded and the que point will be disabled for that file.
    Has anyone else upgraded to Quicktime Pro 7?
    The only solution that I can find is to install Quicktime 6x
    BUT I haven't got the installer and Apple do not have it on their
    site, looks that it was money mis-spend when I upgraded to version
    7.
    Does anyone have any ideas?
    Many thanks!
    Andrew
    See
    http://discussions.apple.com/thread.jspa?messageID=5924800
    for the apple snag.

    I faced the same problem one month ago. At the end I decided
    to use flash. It has the possibility to work with cue points in a
    natural way. One solution I explored with Director was to do my own
    cue points controls. Basically, I got a list of my cue points, I
    used the old CoolEdit to define and export the list, then I checked
    the time of the movie in a loop (exitFrame) and I compared the time
    of the movie with the list of CP to trigger the events. But as I
    told you, I decided to use Flash
    Sorry not to be useful
    Good luck

  • Problem with Preloader in my Flash AS2 Game

    I have been using this tutorial to make a preloader:
    http://www.republicofcode.com/tutori.../preloader_bc/
    I have run into one problem though.
    When I simulate the download, it just shows the background color of the game while it loads, and when it finished loading, it shows the loading screen fully loaded. I have followed the tutorial exactly, except added my file names into the AS2 code.
    Here is the ActionScript in Frame 1 I have for the preloader:
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    stopAndGoto(1);
    preloaderBar._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loaderTxt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";
    Any hints or answers to what i'm doing wrong?
    Thanks, MrA615.

    Your description of what you've done and the code you show does not match what the tutorial says to do and what code to use... (there is no stopAndGoTo() function in Flash).
    Right-click the second frame on the upper layer labeled Actions and select Actions. Copy and paste the code below to make our preloader functional.
    if (_root.getBytesTotal() != _root.getBytesLoaded()){
    gotoAndPlay(1);
    bar_mc._xscale=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    loader_txt.text=Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100)+"%";

  • Snagit v10 build 788 - unable to capture input - scrolling active window

    Hello,
    I use Snagit v10 build 788.
    I cannot use the "Scroll Active Window" option on Firefox 4 Beta.
    It does not work.
    I get the Snagit message : "Unable to capture input".
    Using Internet Explorer or on an other PC the Firefox v3.6, the "Scroll Active Window" option of Snagit v10 is working.
    How to solve it ?
    Thanks
    Caius

    FIXED!
    Guys, you will not believe how easy this is to fix! After hours of frustration I finally discovered a Firefox add-on called '''Screengrab'''. Install Screengrab, then right click in Firefox, choose Save, Complete Page - and you get a perfect scrolled page capture!
    Even better, you can open it in Snagit to work on it further (Screengrab saves it as a png)

  • Is there an application like "snag it" for mac?  Does it come with the Mountain Lion OS, or do I have to buy it separately?

    Is there an application like "snag it", which is part of the Microsoft Office suite for mac?  Does it come with the Mountain Lion OS, or do I have to buy it separately?  If it is a separate purchse, what would you recommend?

    Built-in to OS X is the ability to capture an entire screen or selected portions. Snaps are saved to the Desktop by default:
    COMMAND-SPACE-3 snaps the entire screen.
    COMMAND-SPACE-4 lets you select a portion of the screen to snap.
    In your Utilities folder is a utility called Grab that provides similar functionality and more.
    Then there are dozens of third-party solutions such as SnapNDrag and SnapzProX. You will find them and others at MacUpdate or CNET Downloads. Most have trial versions or trial times so you can test them out.

  • Help with a preloader in AS3

    Hi,
    I upload a website and I have problems with the preloader did it in AS3. It starts after two or three minutes. I have a MC with an animation of 100 frames and the dynamic text of the percent. The preloader is located in the 1 frame to the 10, I mean, first frame with the actions and the other three layers (text, MC and background) with a lenght of 10. The movie has 525 frames. Here is the code:
    stop();
    addEventListener(Event.ENTER_FRAME, lodeando);
    function lodeando(event:Event):void
              var bytesTotales = stage.loaderInfo.bytesTotal;
              var bytesCargados = stage.loaderInfo.bytesLoaded;
              var porcentaje = Math.round(bytesCargados * 100 / bytesTotales);
              textoPorcentaje.text = porcentaje + "% Cargados";
              cargaAnimada_mc.gotoAndStop(porcentaje);
              if (bytesCargados == bytesTotales)
                        removeEventListener(Event.ENTER_FRAME, lodeando);
                        gotoAndPlay(2);
                        textoPorcentaje.text = "";
                        removeChild(textoPorcentaje);
                        removeChild(cargaAnimada_mc);
    Please, Could you help me?.

    These screen captures show the library of the movie. As you can see I export the most of them. However I have doubts about if I must convert to symbol the graphics. I have the preloader in the "presentación" folder without any exportation.
    Please, Could you correct the website?. Please, tell me an e-mail address and I send you the website via WeTransfer.

  • Using the Execute Preloaded Option for ABAP Dataflows in SAP BODS

    Hello All,
    This is regarding the use of Advanced Option in SAP Application Type (ECC) Datastore settings in SAP BODS 4.2, where there are two options to select from for ABAP Execution Option property: (1)Generate and Execute and (2) Execute Preloaded. Since our ECC client is often locked by BASIS team even on DEV environment, we would like to make use of the second option 'Execute Preloaded' so that we could extract the data from ECC tables without having to ask the BASIS team to unlock the ECC client every time before extraction.
    The problem is that we are getting an error upon generating and uploading the ABAP program to ECC client. I have searched the blogs and so far I have only found that there are certain ABAP programs or function modules that come with SAP BODS which need to be installed by BASIS team on ECC side to allow the ABAP dataflows to be generated and uploaded to ECC server. I would appreciate it if anyone could provide a list of which function modules BASIS needs to install on ECC or a blog that provides details around using this option.
    So far, from the SAP BODS designer, we are performing below steps but getting an error upon generating and uploading the ABAP dataflow program:
    1. Create a test ABAP Dataflow using SAP ECC datastore. Provide the ABAP program options.
    2. Right click, select Generate ABAP Program.
    3. Once the ABAP Program Generation Dialog box appears, check the box "Upload Generated Program".
    4. Upon clicking OK, we are getting the following error:
    The ABAP program <ZRTEST01> for ABAP data flow <RT_TEST_R3> (datastore <R3_DS>) was not uploaded: < RFC CallReceive error <Function /BODS/RFC_ABAP_INSTALL_AND_RUN: RFC_ABAP_MESSAGE- Exception condition "NOT_SUPPORTED_BY_GUI" trigger[SAP NWRFC 720][SAP Partner ### ][clientname][servername][accountname][4103]>. >.
    Any help would be greatly appreciated.
    Thanks,
    Rizwan

    All,
    The BASIS team reviewed steps provided in the BODS document and attempted to install the Function Modules but now none of the BODS jobs would work. All BODS jobs are being terminted with the Syntax Error error when extracting data from ECC using ABAP dataflows:
    17740 16404 R3C-150412 06/17/2014 9:38:46 AM |Data flow RT_DF_TEST_PC207
    17740 16404 R3C-150412 06/17/2014 9:38:46 AM RFC CallReceive error <Function /BODS/RFC_ABAP_INSTALL_AND_RUN: RFC_ABAP_RUNTIME_FAILURE-(Exception_Key: SYNTAX_ERROR)- Syntax
    17740 16404 R3C-150412 06/17/2014 9:38:46 AM error in program /BODS/SAPLBODS                          .[SAP NWRFC 720][SAP Partner 740 ][DEV1][Server][account][4103]>.
    22052 20572 R3C-150412 06/17/2014 9:38:46 AM |Data flow RT_DF_TEST_PC207
    22052 20572 R3C-150412 06/17/2014 9:38:46 AM RFC CallReceive error <Function /BODS/RFC_ABAP_INSTALL_AND_RUN: RFC_ABAP_RUNTIME_FAILURE-(Exception_Key: SYNTAX_ERROR)- Syntax
    22052 20572 R3C-150412 06/17/2014 9:38:46 AM error in program /BODS/SAPLBODS                          .[SAP NWRFC 720][SAP Partner 740 ][DEV1][Server][account][4103]>.

  • Problem with Flash preloader in IE using swfObject 2

    Hi All,
    I've embedded my swf using swfObject 2, my preloader shows up fine in Firefox, Chrome and Safari but when viewed in IE the preloader doesn't show up....there is just a pause and once the movie has loaded it starts to play.
    Here is my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
              <head>
                        <title>TooNeat Studios :: Advanced Digital Media</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                        <style type="text/css" media="screen">
                                  html, body {
                                            height:100%;
                                            background-color: #000000;
                                  body {
                                            overflow:hidden;
                                            margin-top: 0px;
                                  #con {
                                            position: relative;
                                  #flashContent {
                                            position: absolute;
                                            left:50%;
                                            margin-left:-640px;
                        </style>
            <script src="swfobject_modified.js" type="text/javascript"></script>
            <script type="text/javascript">
                                  swfobject.registerObject("tooneat", "11.9.900", "expressInstall.swf");
                        </script>
              </head>
              <body>
                  <div id="con">
                        <div id="flashContent">
                                  <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1280" height="580" id="tooneat" align="middle">
      <param name="movie" value="tooneat.swf" />
                                            <param name="quality" value="best" />
                                            <param name="bgcolor" value="#000000" />
                                            <param name="play" value="true" />
                                            <param name="loop" value="true" />
                                            <param name="wmode" value="window" />
                                            <param name="scale" value="showall" />
                                            <param name="menu" value="false" />
                                            <param name="devicefont" value="false" />
                                            <param name="salign" value="" />
                                            <param name="allowScriptAccess" value="sameDomain" />
                                            <!--[if !IE]>-->
                                            <object type="application/x-shockwave-flash" data="tooneat.swf" width="1280" height="580">
                                                      <param name="movie" value="tooneat.swf" />
                                                      <param name="quality" value="best" />
                                                      <param name="bgcolor" value="#000000" />
                                                      <param name="play" value="true" />
                                                      <param name="loop" value="true" />
                                                      <param name="wmode" value="window" />
                                                      <param name="scale" value="showall" />
                                                      <param name="menu" value="false" />
                                                      <param name="devicefont" value="false" />
                                                      <param name="salign" value="" />
                                                      <param name="allowScriptAccess" value="sameDomain" />
                                            <!--<![endif]-->
                                                      <a href="http://www.adobe.com/go/getflash">
                                                                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                                                      </a>
                                            <!--[if !IE]>-->
                                            </object>
                                            <!--<![endif]-->
                                  </object>
                        </div>
      </div>
              </body>
    </html>

    Interesting! No answer to your problem in the Flash forum. They would know more than we do.
    I assume that you have had a look here http://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html.

  • Problem with preloader

    hello, I´m using a preloader created using the technique
    shown here...
    http://www.gotoandlearn.com/play?id=18
    It worked fine last time I used it, but this time, the
    preloader only shows up after about 60% of the page has already
    loaded, which might be too long.
    My question is, is there anyway to avoid that?
    Maybe adding a updateAfterEvent somewhere in the AS code?
    thanks.
    PS: here is the code used...
    on frame 1...
    var amountLoaded:Number = _root.getBytesLoaded() /
    _root.getBytesTotal();
    preloader._width = amountLoaded * 400;
    on frame 2..
    if (_root.getBytesLoaded() == _root.getBytesTotal()) {
    gotoAndPlay(3);
    else {
    gotoAndPlay(1);
    }

    Haven't watched the mentioned tutorial, but in the old days
    preloaders
    used to stop working properly because of movieclips that get
    exported
    before frame #1. Those movieclips are loaded even before your
    preloader
    is loaded and run, effectively distorting the
    bytes-to-load/total-bytes
    ratio.
    Check your library for such movieclips (under "linkage") and
    tell us if
    there are any.

  • Problem with preloader not passing over nextFrame();

    The preloader I created doesn't transistion to the next frame, it just hangs on the preloader frame at 0%.  Here is my code:
    stop();
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
    function updatePreloader (evtObj:ProgressEvent):void{
      var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
      preloader_bar.width = (percent/100) * 600;
      preloader_txt.text = "Loading " + percent + " %";
      if (percent == 100) {
       nextFrame();
       this.removeEventListener(ProgressEvent.PROGRESS, updatePreloader);
    The problem is when the swf is called online it stops on the 1st frame and shows the preloader at 0% and does nothing.  I can right-click on the non-functional embedded flash swf and select play and it runs fine; but this doesnt make any sense for my users to be doing the same...  However, when the file is recalled after the first attempt it works fine.  Any ideas what could be going on?

    Thanks, I think it’s working!  I can't recreate the problem...
    Code:
    stop();
    if (this.framesLoaded == this.totalFrames){
    nextFrame();
    else{
    loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
    function updatePreloader (evtObj:ProgressEvent):void{
       var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
       preloader_bar.width = (percent/100) * 600;
       preloader_txt.text = "Loading " + percent + " %";
       if (percent == 100) {
        nextFrame();
        this.removeEventListener(ProgressEvent.PROGRESS, updatePreloader);

  • Problem with preloader and sounds

    Hello everyone,
    I am making a movie that has 12 sound files in it. I am
    having trouble getting this to work with a preloader. I was using a
    seperate flash movie and using the movieClipLoader to load in the
    movie that has the sounds in it. However my employer wishes to have
    everything in a single swf file. I know the concept, that the
    sounds in the movie using attachSound need to be loaded before
    first frame... but I need the preloader to take them into
    account... how do I do that? I tried putting my preloader on frame
    one, then had 12 keyframes in a row and just dragged the sounds
    onto the stage (one for each keyframe there), and then the main
    movie starts on frame 14... but that stil doesnt work... how can i
    do this?

    Just to let anyone know... I did figure this out on my own...
    it makes it messy though and I dont like it... buuuuut what are you
    going to do... I had to set the linkage in each sound in the
    library to export and then uncheck the export in first frame...
    then i had to create keyframes for each sound and put it on the
    stage in frames 2-13. Preloader on frame 1 and main movie on frame
    14... it works now.

  • Preloader problem with swf in different domains, not working online

    Hello
    I've an swf (loader.swf) hosted in dominioA.com, that justs loads a swf (movie.swf) hosted in dominioB.com.
    loader.swf has a preloader. When I execute the movie in flash, it works perfect, but when I upload the swf, the preloader doesn't works. I see 0% and after starts movie.swf normally.
    Here is the code of loader.swf
    Security.allowDomain("www.dominioB.com");
    Security.allowDomain("www.dominioA.com");
    var contexto:LoaderContext = new LoaderContext();
    contexto.applicationDomain = ApplicationDomain.currentDomain;
    var _preloader:MovieClip=preloader
    _preloader.barra.width=0;
    var _DOM:String="http://www.dominioB.com/movie.swf?anticache="+Math.random();
    var myLoader:Loader=new Loader;
    addChild(myLoader)
    myLoader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
    myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadPogress);
    myLoader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
    myLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onDataLoad);
    var carga=new URLRequest(_DOM);
    myLoader.load(carga, contexto);
    function onDataLoad(evt:Event) {     
              //inicializar datos
    function onLoadPogress(event:ProgressEvent){
         var cargado:int = event.bytesLoaded;
        var total:int = event.bytesTotal;
        var porcentaje:int = cargado/total*100;
        _preloader.txt.text = "Cargado: "+String(porcentaje)+"%";
        _preloader.barra.width = porcentaje*2;
    function httpStatusHandler(event:HTTPStatusEvent):void {
           if(event.status==404){                    
    function ioErrorHandler(e:IOErrorEvent):void {
    function initHandler(e:Event):void {
    Any idea??
    Regards

    movie.swf load perfect, and everything works. It doesn't seem to be a cross-domain issue.
    In loader.swf, all the actionscript is in the timeline, not in a class.
    Thanks.

  • Problem with preloader from tutorial in flash 8

    when i open preloader in flash 8 from section developers for
    flash, it dosn't work.
    and trace message
    but in mx 2004 work ok
    what problem?
    **Error** C:\Documents and
    Settings\Артем\Local
    Settings\Application Data\Macromedia\Flash
    8\en\Configuration\Classes\mx\events\EventDispatcher.as: Line 15:
    The name of this class, 'mx.events.EventDispatcher', conflicts with
    the name of another class that was loaded,
    'mx.events.EventDispatcher'.
    pls give advice about this question

    You may need to purge your ASO files. This can be can by
    manually deleting them or force Flash to do it. TO purge them using
    Flash 8 go to, Control>Delete ASO Files.
    To manually delete them and if you are using a Flash version
    below 8 go to the link below;
    http://www.adobe.com/support/documentation/en/flash/mx2004/releasenotes.html
    …and scroll to “Flash MX 2004 Update and Flash MX
    Professional 2004 Update, version 7.0.1.
    If you have Flash MX 2004 version 7.2. you can install this
    plug-in that will force Flash to purge them on command;
    http://www.adobe.com/cfusion/exchange/index.cfm?view=sn111&extID=1016963

  • Problem with preloader in Cs5 with AS2

    Hey,
    I made a preloader in Cs5 with AS2 code:
    mask_mc._height = 1;
    this.onEnterFrame = function():Void
    var loading :Number = this.getBytesLoaded();
    var total :Number = this.getBytesTotal();
    var precent:Number = Math.round(loading/total*100);
    mask_mc._yscale = precent;
    txt.text = precent + "%";
    if (loading >= total)
    gotoAndStop(2);
    because I realized that what I'm used to in Cs4 is not working in Cs5. It works fine but, when I press a button that supose to go to another frame, it stock on frame 2.
    How can I solve it?

    terminate that loop:
    mask_mc._height = 1;
    this.onEnterFrame = function():Void
    var loading :Number = this.getBytesLoaded();
    var total :Number = this.getBytesTotal();
    var precent:Number = Math.round(loading/total*100);
    mask_mc._yscale = precent;
    txt.text = precent + "%";
    if (loading >= total)
    delete this.onEnterFrame
    gotoAndStop(2);

  • Firefox won't even open now that I've installed Snagit - what can I do to fix this?

    Today I bought and downloaded Snagit (TechSmith) for Macintosh. When the program was being installed it asked me if I wanted a nifty Firefox extension installed. I stupidly (as it turns out) agreed! Now, Firefox won't even open. I've tried restarting the computer and still no luck. How can I diagnose the problem with Firefox? (I know that I could just download Firefox again but I don't want to lose my many bookmarks etc.)
    I opened the file in the Firefox Application folder that gives crash information and it mentioned Error Code 1?

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

Maybe you are looking for

  • Problem in Crystal Report Viewer 2008

    Dear all, I found that the crystal report viewer 2008  (Windows XP) could not display report properly when the file extension is in upper case. (report.RPT). In order to view this report, I must launch the viewer and click file --> open --> select fi

  • Fm for previous date

    Hi, Is any FM is there which can calculate the previous 1 year date or more. Suppose I have today's date & based on that date I wanted to calculate the previous 1 year date.

  • Scripting Assistance Needed

    I'm working on a form.  What I need it to do is this: The end user will check a box to add comments.  The comments field is NOT visable until the check box is checked.  Once the checkbox is checked then a text box will appear directly underneath it.

  • Table CRMPARNR overwritten during CRM to R3 replication

    Good Morning, Can anyone advise on why when we update main contact in CRM the replication over writes the entry in CRMPARNR table in R3, therefore breaking the connection between R3 and CRM main contact? I can't see why this is occurring, it appears

  • How To Install NEW Versions Of Toshiba Video Player 3D...?

    Hi,...   ...   ...   Having Problem INSTALLING NEW Version Of The Toshiba Video Player 3D To My Qosmio F755-3D290 ...?Think Might Be Some Missing Component With The Start-Up Services Or Others Elsewhere In The Harddrive Or What...?Anyone Knows How An