An independent preloader?

I have a large collection of showreel video files that are
all encoded in .swf format. I'd like to add a pre-loader
(percentage bars, or even just a 'please wait' message); but
re-encoding them all isn't really an option because the source
files no longer exist.
Is it possible, therefore, (or possibly, does it already
exist), to have a .swf file to which you can pass a parameter from
HTML to tell it which file to load, and that pre-loader just
displays the 'please wait' message until the video .swf is ready to
play.
Everything I've Google'd so far suggests putting the
preloader in the first frame of the movie itself, which would be
practical for my problem.
Any ideas?
Thanks,
Pete

I have exactly the same problem with the desire to have
multiple preloaders to load multiple SWFs my site. Did you ever
find a solution?

Similar Messages

  • Logical Arrangement of Preloader Script

    Hi,
    I have created one swf which does following two things;
    1. Once it gets loaded in HTML on server it will pass Flashvar to HTML. if flash var from swf and HTML both will match then only swf should play.
    2. It will also have Preloader
    independently both the scripts work perfectly. But when i compile both in one file then it dosent work in following cases;
    Case 1- preloader script first and then flashvar:= this preloads file perfectly but dosent pass flashvar
    Case 2- flashvar first and then Preloader:= this works perfectly when i test my file Locally but once i upload it to server then it dosent work for Preloader
    what should be my logical sequence or options in this?
    I am using "Event.ENTER_FRAME" for Preloder and "Event.COMPLETE" for flashvar...is there any mistake?
    //////////////PRELOADER//////////////////
    stop();
    this.addEventListener(Event.ENTER_FRAME, myMovieLoading);
    function myMovieLoading(e:Event):void {
        var total:Number = this.stage.loaderInfo.bytesTotal;
        var loaded:Number = this.stage.loaderInfo.bytesLoaded;
        preloader_mc.bar_mc.scaleX = loaded/total;
        loadInfoText.text = Math.floor((loaded/total)*100)+ "%";
        if (total == loaded) {
            play();
            this.removeEventListener(Event.ENTER_FRAME, myMovieLoading);
    ////////////INITIALISING MOVIE///////////////
    var keyLoader:URLLoader = new URLLoader();
    keyLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    keyLoader.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
    keyLoader.addEventListener(Event.COMPLETE, loading);
    keyLoader.load(new URLRequest("C:/keytext.txt"));
    function onLoadError(evt:IOErrorEvent):void
        loadmyHTML();
    var myFlashVar:String;
    var ver:String;
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    for (ver in paramObj)
        myFlashVar = String(paramObj[ver]);
    function loading(event:Event):void
        if (keyLoader.data.passKey == "pass1")
        else if (myFlashVar=="pass1")
        else
            stop();
            parent.removeChild(this);
    function loadmyHTML():void
        if (myFlashVar!="pass1")
            stop();
            parent.removeChild(this);

    in your loaded code there is
    keyLoader.load(new URLRequest("C:/keytext.txt"));
    please see this will not be found on the server thus it may have problem in loading it on serveer while it run local machine. please try replacing the keytext.txt file path to a relative path which can also be found on the server.
    hope this would help you,

  • Preloading in AS 3.0

    Okay, how does one make a preloader in AS 3.0 for THE ENTIRE swf?
    I'm certainly generally familiar with making preloaders in Flash, yet with changes to the Flash environment in the last few years, my situation may not be so straight forward:
    I have a very developed Flash 3.0 application where the timeline is not used in the traditional way, everything is Class based, and there are all kinds of assets in the library that are used dynamically. 
    This type of preloader is useless, because (I guess) that "this.loaderInfo" is associated to the timeline (which has nothing on it) :
         public function Preload () {
                this.loaderInfo.addEventListener(Event.COMPLETE, initApplication);
                this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress);
            public function showProgress(theProgress:ProgressEvent):void {
                var percent:Number = Math.round((theProgress.bytesLoaded / theProgress.bytesTotal )*100 );
                trace(percent + " %");
                this.graphics.clear()
                this.graphics.lineStyle(1, 0xFF0000, 1)
                this.graphics.beginFill(0xFF0000)
                this.graphics.drawRect(100,100,percent,10)
            public function initApplication(myEvent:Event):void {
                trace("Loaded !");
                init();
    After I found some reference to a tip on-line, I went thru my library and adjusted the Linkage properties (for the movie clips that are Linked to Classes) to NOT be "export in frame 1", yet I'm not really certain what this does, and doing this started to create other problems.  Is that any kind of solution in this case?
    Isn't there a straight forward way to go about this?  A property of the SWF that includes ALL of the ASSETS of the SWF independent of the timeline?

    What I would suggest, and this is how I always do it when I need a preloader, is to just make yourself a new movie and load into it. Then just a little timeline code is all you need:
    var l:Loader = new Loader();
    l.addEventListener(Event.COMPLETE, swfLoaded, false, 0, true);
    l.addEventListener(ProgressEvent.PROGRESS, prog, false, 0, true);
    l.load(new URLRequest("myMovie.swf"));
    function prog(e:ProgressEvent):void
         //update percent bar
    function swfLoaded(e:Event):void
         addChild(l);
         //start loaded swf
    You can have an init method in the swf to be loaded that is called from inside swfLoaded() when you add it to the display list if you need.

  • Preload ALL movie clips?

    I am experiencing a delay or pause in the site when my first
    movie of content is played ... A frew frames before the initial
    animation is finished I add in :
    _root.conten.gotoAndPlay("start1");
    to start the home page (or the first page of my content
    movie, whatever you want to call it)....
    Is this a preloader problem? I just can't seem to iron it
    out.
    To See It:
    http://www.itamidesign.com/new.html
    The Code is also here:
    http://www.itamidesign.com/new.fla
    THANKS

    no no there's always a way, i was just pointing you in the
    direction of the easiest way.
    the first thing you need to do is check getBytesLoaded at
    regular intervals rather than in a loop on a frame. this can be
    achieved several ways - i've used setInterval in the example i
    prepared for you.
    the second thing you need to do is check that getBytesTotal
    has been received from the jpg okay - this can be checked by
    ensuring that getBytesTotal>4, which is the size of an empty
    movie clip.
    the code i have attached is independent of your xml code,
    which was really confusing things, as it is unrelated to your
    loader code (one problem at a time!). once you're happy with your
    loader code, then you can integrate it with your working xml code.
    good luck
    craig

  • 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)+"%";

  • How can I use one motion controller to control two robotic independently?

    the help document says :
    Note  Configuring and clearing buffers is a processor-intensive operation on the motion controller that requires the allocation and deallocation of memory. You should configure and clear buffers only when motors are not moving and onboard programs are not running. For example, if you wish to execute three simultaneous contouring operations on axis 1, axis 2, and vector space 1 (with axes 3 and 4), you should first configure all three buffers before starting any of the operations. You can start the contour operations independently, and at different times, but should wait until all operations are complete before clearing any of the buffers.
    and i tried to conduct two contouring operation on two vector space. and tried to clear or configuring buffer for one vector when another one is still moving. so that i can start or end the movement at any time i want,and  it is ok.no error. but when i tried add a buffer  breakpoint output along with each vector movement. the bp doesn't work if the other vector is running . is there anyway to solve this problem.

    I think you've misunderstood what the dns attribute is for. The dns attribute returns the hostname of the client accessing your website, not the hostname of the website that linked to your website.
    For example, when someone using the Comcast ISP goes to a malicious website at example.com that loads images from your website at www.amigoo.net, the dns attribute will be something like "c-1-2-3-4.ca.comcast.net", not "example.com". ACLs are used for authentication and authorization of clients (not the websites those clients chose to visit), and they don't provide the functionality you're looking for.
    If I understand correctly, you want to prevent websites other than amigoo.net from linking to files in your d:/webserver/imat/pics_upload directory. You can achieve this adding the following lines to your obj.conf configuration file:
    <Object ppath="d:/webserver/imat/pics_upload/*">
    <Client referer="*~*amigoo.net">
    PathCheck fn="deny-existence"
    </Client>
    </Object>

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

  • Planned Independent Requirement Not getting displayed in MD04

    Hi,
       I am assigning material to nwa and doing advance procurement by using procurement type PIR. Reservation is getting created after release of activity but the same is not getting displayed in MD04.
    The items of the reservation are getting displayed in MB23.
    what could be the reason for this?
    Regards,
    B P Singh

    Hi,
    Planned Independent requirements (PI) are normally configured for consumption by 'Dependent' requirements. Hence the PIR would have been replaced by the reservation from 'dependent' requirement. You can test and verify the same in development system.
    Regards
    Murali

  • On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    On startup Mac Pro I get a blue screen and a cursor on the upper left. The mouse cursor shows up independently. Is it likely a video card failure?

    I managed to boot the computer and get the desktop to show. I now have a "repaired" computer. There are several problems that have cropped up. One is that I can only start up now in Safe Boot mode. Is there a way to turn it off? Also, I do not have a sound list, so I can't access anything requiring audio. Google Chrome only shows up as a white screen. Pictures that loaded before don't load in browsers, etc. Any suggestions? I figure I should reinstall Mac OS Lion for starts, maybe even do a mirror backup and reformat the drive. I think this drive has turned into scrambled eggs...what a headache!

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

  • Workflows 2013 and SQL Report Services: Configure on Independent Servers or Existing App Servers?

    Currently, my SharePoint 2013 Farm has Workflows 2013 and SQL Report Services installed on app servers, along with other applications. Workflows 2013 isn't working correctly (installed prior to my coming on board with the organization), I'm assuming it
    is a configuration issue, but rather than re-configure, I've read that is recommended to be a standalone server. It was also recommended by a MSFT rep that our report services have its own independent server. Currently, Report Services is also installed on
    an app server that runs other applications on the farm.
    Has anyone had any experience with installing Workflows 2013 and/or SQL Report Services on independent vs. existing application servers?
    Additionally, my existing application servers have 24 GB of RAM (I believe the recommendation for SharePoint production environments is 12 GB), should I plan for the potentially new servers (Workflows and Report Services) to also have 24 GB of RAM? Not really
    sure if it will be needed if they have dedicated tasks.
    Thanks for any input you can provide!

    It entirely depends on load. WFM will work just fine installed on servers in the SharePoint farm. SSRS preferably should go on the end-user facing servers for better performance.
    The questions you're asking are all "it depends" :)
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

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

Maybe you are looking for

  • MIGO tr Serial number field and table?

    Hi guys,               can anybody tell me how to find the field name and table for Serial number in MIGO tr Code?                  in MIGO the Serial number field and Structure are GOSERIAL-SERIALNO.but i was not able to find the Actucal Field name

  • Multiple users on one I pad updates

    When up dating apps the I pad comes up with wrong user and will not reset? Any answers welcome Family use of I tunes accounts two users of music how do you put music on to two accounts and devices? Sick of owing music that's been paid for !!!!!! Must

  • Input file size limition in File Reader Adapter

    Hi, We have a File Read Activity(using File Reader Adapter) which works on a Polling model. Whenever a input file is found in a designated directory it invokes our BPEL web service. During load testing we found out that if input file size exceeds 7 M

  • How do I populate a popup window with data from the parent window

    I am brand new to JSF so please help me. I have a JSF page where users enter some search criteria and it displays the results in a matrix table. I need to have a PRINT button or link on this page that pops up a new window that displays the same data

  • Select field and hide field at data source ganaration  for LO extrction

    Hi GURU,S Could any one tell me what is differce between select field and hide field at data source ganation in LO at r3 side.what happend if u select field and hide field. Regards. hari