How to add preloader to an existing swf??

how do i add a preloader to an already made swf?
also, do i have the preloader open up in seperate html file.
don't want to buy any programs to do this.
i did try it by just changing the file names to preloader file name to load the swf.
but it push all the content over to the right side of the screen.

Ok still verifying that it is not stopping the way I expect. It starts before loader reaches 100%, the funny thing is though, I can see it faded in the background. Wonder if it has anything to do with code in the SWFLOADER.swf file. Here's the code:
import flash.geom.*
import flash.display.* 
var loadurl:String = "nebphotoflash/new_intro4.swf";
var nDepth:Number = 0;
var nWidth:Number = 200;
var nHeight:Number = 20;
var nPadding:Number = 3;
var cLoader:MovieClipLoader = new MovieClipLoader();
var oListener:Object = {onLoadInit:onContentLoaded};
var mcLoader:MovieClip = this.createEmptyMovieClip("Loader_MC", 0);
var mcContent:MovieClip = this.createEmptyMovieClip("Content_MC", 1);
var mcLoadBarBg:MovieClip = mcLoader.createEmptyMovieClip("LoadBarBg_MC", nDepth++);
var mcLoadBar:MovieClip = null; //Duplicated later with mcLoadBarBg
var txtPercLoad:TextField = null; //Create after duplication
var cMatrix:Matrix = new Matrix();
mcLoader._alpha = 0;
cMatrix.createGradientBox(nWidth, nHeight, 0, nPadding, nPadding);
cLoader.addListener(oListener);
mcLoader.lineStyle(1, 0x000066, 100);
DrawRect(mcLoader, 0, 0, nWidth, nHeight);
mcLoadBarBg.lineStyle(1, 0x0000FF, 0);
mcLoadBarBg.beginGradientFill("linear", [0x006699, 0x0066FF], [100,100], [0, 255], cMatrix, SpreadMethod.PAD);
DrawRect(mcLoadBarBg, 0, 0, nWidth - nPadding*2, nHeight - nPadding*2);
mcLoadBarBg.endFill();
mcLoadBar = mcLoadBarBg.duplicateMovieClip("LoadBar_MC", nDepth++);
txtPercLoad = mcLoader.createTextField("PercLoad_TXT", nDepth++, 0, 0, nWidth, nHeight);
mcLoadBar._alpha = 80;
mcLoadBarBg._alpha = 30;
Translate(mcTextMask, nPadding, nPadding);
Translate(mcLoadBarBg, nPadding, nPadding);
Translate(mcLoadBar, nPadding, nPadding);
mcLoadBar._xscale = 0;
mcContent._alpha = 0;
mcContent._lockroot = true;
mcLoader._x = Stage.width/2 - mcLoader._width/2;
mcLoader._y = Stage.height/2 - mcLoader._height/2;
txtPercLoad._x = mcLoader._width/2 - txtPercLoad._width/2;
txtPercLoad._y = mcLoader._height/2 - txtPercLoad._height/2;
SetTextFormat(txtPercLoad, "0%");
mcLoader._alpha = 100;
cLoader.loadClip(loadurl, mcContent); 
_root.onEnterFrame = function()
   var nBytesLoaded:Number = mcContent.getBytesLoaded();
   var nBytesTotal:Number = mcContent.getBytesTotal();
   var nPercLoaded:Number = Math.round(nBytesLoaded / nBytesTotal * 100);
   if(nPercLoaded > 0)
      SetTextFormat(txtPercLoad, nPercLoaded.toString() + "%");
      mcLoadBar._xscale = nPercLoaded;
function onContentLoaded(Void):Void
   //trace(_root + "::onContentLoaded");
   SetTextFormat(txtPercLoad, "100%");
   cLoader.removeListener(oListener);
   delete _root.onEnterFrame;
   delete oListener;
   delete cLoader;
   _root.onEnterFrame = function()
      //trace(_root + "::onContentLoaded::_root.onEnterFrame");
      var nInc:Number = 5;
      mcLoader._alpha -= nInc;
      mcContent._alpha += nInc;
      if(mcLoader._alpha <= 0) startLoadedContent();
function startLoadedContent(Void):Void
   delete _root.onEnterFrame;
   mcLoader.removeMovieClip();
   mcContent._alpha = 100;
   mcContent.play();
function DrawRect(mc:MovieClip, nX:Number, nY:Number, nW:Number, nH:Number, nR:Number)
   trace("DrawRect in: " + mc);
   if(nR == undefined) nR = 6;
   mc.moveTo(nX+nR,nY);
   mc.lineTo(nX+nW-nR,nY);
   mc.curveTo(nX+nW,nY,nX+nW,nY+nR);
   mc.lineTo(nX+nW,nY+nH-nR);
   mc.curveTo(nX+nW,nY+nH,nX+nW-nR,nY+nH);
   mc.lineTo(nX+nR,nY+nH);
   mc.curveTo(nX,nY+nH,nX,nY+nH-nR);
   mc.lineTo(nX,nY+nR);
   mc.curveTo(nX,nY,nX+nR,nY);
function SetTextFormat(txtField:TextField, sText:String)
   var txtFmt:TextFormat = new TextFormat();
   sText = "Loading... " + sText;
   txtFmt.font = "Verdana";
   txtFmt.align = "center";
   txtFmt.size = 11;
   txtFmt.color = 0x000066;
   txtFmt.bold = true;
   txtField.selectable = false;
   txtField.text = sText;
   txtField.setTextFormat(txtFmt);
   txtFmt = null;
function Translate(mc:MovieClip, nX:Number, nY:Number):Void
   mc._x = nX;
   mc._y = nY;

Similar Messages

  • How to add blank page to existing Document In Adobe Dc

    how to add blank page to existing Document In Adobe Dc Pro

    Hi thashrifs16749461,
    You can add a blank page using Adobe Acrobat DC by following the below instructions :-
    1) Open your existing pdf document in Acrobat DC.
    2) Choose the 'Organize Page' option form the Tools pane on the right as shown below in the screen shoot.
    3) Now at the top you will see all the tools to Organize the page, Click on 'Insert' & select 'Blank Page' from the drop-down to insert blank pages.
    *Shortcut : If you are using windows computer you can use ' Shift+Ctrl+T ' key to insert blank pages.
    In case if you experience any issue or have any query please let us know. We will be happy to help you.
    Regards,
    Aadesh

  • How to add one column in existing search help.

    Hi Folks,
    My quesion is
    How to add one column in existing search help and also Now search help on that field is not an explicit search help. It should be implement using check table.
    Shivam

    Hi,
    If you want to add a field in Elementary search help, get the search help name for the and go to change mode and add the field in it.
    If you want to add a field in collective search help, go to included search helps tab and a new search help name and add the fields to it.
    I think this should help you to certain extent.
    Regards,
    Kranthi
    Edited by: Kranthi on Jan 14, 2010 11:15 AM

  • REG: How to add new fields to existing Infospoke

    Hi All,
    We have an existing Infospoke, It has ODS as a Source and some fields are being pulled.
    But here is the scenario....
    I need some extra fields that are available in other ODS. How to add that fields ?
    By some research came to know that.. I need to lookup on the ODS and populate into existing Infospoke.How to add these fields to InfoSpoke using BAdi implementaion.
    Note: already BAdi is active in the infospoke.
    Please help me in this regard

    Hi Chase,
    As you mentioned that BADI is already implemented then I guess you should be able to extend the existing BADI itself.
    For doing lookup first you should know the key fields of source DSO then by using the existing field of Infospoke you will have to read data from DSO.
    DATA: it_data type standard table of 'DSO Name'.
    select Key1 key2 etc...
              Field1 Field2 Field3 Field4
              from DSO
              into table it_data
              for all entries of infospoke
             where key1 = infospoke1-key1
                         key2 = infospoke2-key2.
    This will give you all the required records from source DSO into internal table it_data. Now you using this table you can populate the original table of Infospoke.
    Regards,
    Durgesh.

  • How to add abap stack to existing NW Java engine- for XI installation

    Hi All,
    I am having a netweaver Java Stack installed on my system. I would like to install XI - in order to install Xi ,I guess the system should be ABAP + Java. But since I am having java based engine, I would like to add ABAP stack to it. So, my question how to add an ABAP stack to already existing JAVA/J2ee engine.
    So what this process is known as-- Is it upgrading or New Installation. Because I need the guide and CD's for it.
    Can any one tell me which Guide(Install/upgrade/Master) wud help me.
    Thanks
    S

    Hi
    check the link www.service.sap.com/instguides>SAP Netweaver 7.0>installation guides there you can find what is the process which involves in installing ABAP+JAVA with PI
    Regards
    Uday

  • How to add a column in existing DTW template

    Dear Expert,
    I want to add a column which is in table structure of JDT1 but in DTW template that column is not there...
    In my JDT1 table that column has some value and i want that value to be enter thru DTW ..
    Give me step because at some stage i m making mistake....i know..
    please help me
    Thanks
    Kevin

    In JE DTW there is not proficode column, but i want that column to be loaded ?
    even i try by "target table" but still nt able to load of "profitcode" in that way
    How to add an existing column which is there in JDT1 table but not in JE DTW template ?
    Thanks
    Kevin

  • How to add id to the existing Authorization Object

    Hi,
    I want to add one id to the existing Authorization Object,How to add this?
    Here is my Object and existing ID's
    authority-check object 'Z_W2WALL' for user sy-uname
              id 'ZFREEZE' field r_freeze
              id 'ZLI01' field r_li01
              id 'ZLI11' field r_li11
              id 'ZLI14' field r_li14
              id 'ZLI11R' field r_li11n
              id 'ZLI20' field r_li20
              id 'ZMI10' field r_mi10
              id 'ZUPLOAD' field r_upload
              id 'Z_ARTFRZ' field r_artfrz.
    Now for this i want to add
      id 'Z_BIN' field r_frz.
    How to do this?
    Thanks

    Hi Sai,
    as there are already defined other id's have been added, you could also do the same way
    but this will also done through your basis end, where for this id your basis team will provide the
    authority to this id for the same purpose..
    authority-check object 'Z_W2WALL' for user sy-uname
              id 'ZFREEZE' field r_freeze
              id 'ZLI01' field r_li01
              id 'ZLI11' field r_li11
              id 'ZLI14' field r_li14
              id 'ZLI11R' field r_li11n
              id 'ZLI20' field r_li20
              id 'ZMI10' field r_mi10
              id 'Z_BIN' field r_frz
              id 'ZUPLOAD' field r_upload
              id 'Z_ARTFRZ' field r_artfrz.

  • How to add subpartitions to the existing subpartition template

    Hi All,
    My Question is ,how to add Subpartition to the exiting subpartition template. e
    like i have created a table with subpartition template with with 5 subpartitions like
    subpartiton one_1 value (121)
    subpartition two_2 value(122)
    and now i one to add one more subpartitin to the existing subpartition template(Like modify the existing subpartition templete).
    subpartition three_3 value(123)
    Could any suggest me.
    Thanks
    Sree

    >
    My Question is ,how to add Subpartition to the exiting subpartition template.
    >
    Follow the example in the section for 'Modifying a Subpartition Template' in the VLDB and Partitioning Guide
    http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1007904
    >
    You can modify a subpartition template of a composite partitioned table by replacing it with a new subpartition template. Any subsequent operations that use the subpartition template (such as ADD PARTITION or MERGE PARTITIONS) now use the new subpartition template. Existing subpartitions remain unchanged.
    If you modify a subpartition template of an interval-* composite partitioned table, then interval partitions that have not yet been created use the new subpartition template.
    Use the ALTER TABLE ... SET SUBPARTITION TEMPLATE statement to specify a new subpartition template. For example:
    ALTER TABLE emp_sub_template
    SET SUBPARTITION TEMPLATE
    (SUBPARTITION e TABLESPACE ts1,
    SUBPARTITION f TABLESPACE ts2,
    SUBPARTITION g TABLESPACE ts3,
    SUBPARTITION h TABLESPACE ts4

  • How to add new infoobject to existing cube or dso?

    Hi all,
    Can we add new infoobject to exixting cube in BW 3.5 ver? if yes how can we add? Please provide me steps.
    Thank you.
    Sunil

    Hi Sunil,
    If you want to add new info object to the IC or DSO which is already holding data - then you need to make a copy of that particular DSO/IC and load the data into dummy.
    Now delete the data from the IC/DSO to which you want to add the new info object. once the data is deleted it will allow you to add new info object to you IC/DSO.
    save it and activate the IC/DSO
    load the data from Dummy DSO and from new run on wards the newly updated info object will also get updated(historical data will not be updated if its newly added to DS as well).
    If you want the historical data for the newly added field then you need to drop the compelte data and need to extract from source.
    Note: You can't include the new info objects are change the existing info objects if there is data exist in the IC/DSO
    Regards
    KP
    Edited by: prashanthk on Dec 31, 2010 10:54 AM

  • How to add new class to existing DC (Web Dynpro project)

    Hi,
    How can I add new class to an existing DC (Web Dynpro project)?
    I tried adding it using File - New - Other - Java - Class, but after a build of the DC the new class (and its contents    ) was completely removed.
    Then I created a new DC (java project) and created a new class in that DC. This went fine, but I got into problems because of circular referencing between the new & the old DC, so no build was possible.
    This can't be difficult, does somebody knows how to do it?
    My temporary solution is to add the classdefinition to an exisiting .java file. Very ugly.
    Thanks,
    Jeroen

    Hi Jeroen,
    where did you create the class? If the *.java file is placed in the src/packages folder it should not be deleted by a build. (I suspect you created it in the gen_wdp folder?)
    Regards,
    Marc

  • How to add observable behaviour in existing code?

    Hi everyone, I'm new to design patterns. I have an existing numerical analysis package that I use to find roots using multiple strategy (bisection, secant, newton, etc). I want to show the process of root finding for every iterations taken by the algorithm (for example, iteration 0: left = 0, mid = 0.5, right = 1; iteration 2: left = 0, mid = 0.25, right = 0.5; ... etc. Its not exactly like that, I want to show it graphically, but you see what I mean). Looks like I need Observer to add event handling to notify the change of state in each initial guess as well as signaling the event when a root is/isn't found. But the solver classes doesn't seem to be implementing Observable, they just give out the answer, or not. How do I add Observer pattern without modifying the original code? I thought about using Decorator and having the real solver do the root finding but it just doesn't make sense to me. Thanx in advance.

    endasil wrote:
    georgemc wrote:
    endasil wrote:
    georgemc wrote:
    That won't get you intermediate results, though.If the method being observed needs to be firing multiple events per invocation, no, it won't.
    @OP, you were on the right track with the decorator pattern (indeed, that could be just as appropriate). What made you think it was wrong?I think that's the OP's tripping point:
    I want to show the process of root finding for every iterations taken by the algorithm
    ...But the solver classes doesn't seem to be implementing Observable, they just give out the answer, or not.
    Aha. Bytecode weaving (or plain old decompiling and nicking the source) then.Nope, I didn't. You're just too damned fast!For my own good! I hit "post" and immediately go "I forgot to say X" :-/
    @OP: if you want to see some examples of using bytecode weaving to introduce observableness to existing code, have a look at the sources for a test coverage tool like Cobertura. That's basically what they do. If you've never done it before, it'll take you a fair bit of head-scratching and sideways thinking to get your head round it all, but stick with it. Be prepared to learn a bit about opcodes as well. Or maybe just plundering the sources for this library is the way to go, not that I'm advocating that ;)

  • Office 2013 add-in - How to add custom button in existing tab/group at home and the same at individual message level?

    Hello Everyone,
    Currently, I'm developing an outlook add-in and would like to setup a custom ribbon button at one of the existing tabs at home screen and at message level too, when
    it is opened from home screen.
    Following are the helpful screen prints.
    Any help would be much appreciated.
    Thanks, <b>Ankit Shah</b> <hr> Inkey Solutions, India. <hr> Microsoft Certified Business Management Solutions Professionals <hr> http://ankit.inkeysolutions.com

    Hello Ankit,
    All you need is to specify the IdMso value of the built-tab where you want to place your controls. See
    How to: Customize a Built-in Tab for more information (TabMail and TabReadMessage).
    You can find the list of built-in controls in the following documents:
    Office 2010 Help Files: Office Fluent User Interface Control Identifiers
    Office 2013 Help Files: Office Fluent User Interface Control Identifiers
    The Fluent UI is described in depth in the following series of articles in MSDN:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • How to add long text for existing static text in Adobe forms.

    Hi all,
    I have a requirement that I need to add  a long text for existing Static text in my adobe form
    1) Counter part inputs
    2) Mack Inputs.
    These two are static texts, I need to add the long text in the following manner.
    1)Counter Part Inputs(zds220)
    2)mack Inouts(zds340)
    Please suggest me how to do it.
    Thank You.
    Suneel.

    Hi Nitin Sikka,
    Thanks for your reply. I found solution for the above issue. I need to change the text to text field and  binding to that text field.
    Thank You,
    Suneel.

  • How to add Jsp pages into existing portal (JDeveloper 9.0.4)

    I am a jsp developer. I have to add a jsp page into existing portal. I am new to portal. Could anyone help me how to develop jsp using portal classes like PortletRenderRequest,ProviderSession and others.

    Rigoberto, there should be no space between "-Xbootclasspath/p:" and the path "C:\oracle\infra\jdbc-10.1.0.4\ojdbc14.jar;C:\oracle\infra\jdbc-10.1.0.4\orai18n.jar"
    By the way, one can always take a look at the logs at
      $ORACLE_HOME/opmn/logs
    especially those files whose names start with OC4J~ if there is some wrong with oc4j processes. Those files are the default oc4j stout and sterr. If oc4j can not init, there should be some kind of error message in them.
    By the way, the following line may be deleted since no property file is specified.
      <data id="oc4j-options" value="-properties"/>
    Hope this helps.

  • How to add columns to an existing dimension on the fly?

    Hey,
    1) I already have a cube which is attached to three dimensions. Now if I wanted to add a few columns in the dimensions once they have been deployed, I find it difficult as the changes in the logical model and the physical table is not synchronized. Can some one please let me know, if adding columns to existing dimensions is possible?
    2) I also had one more doubt. I have a fact table which has columns by the name parameter name and parameter value. Now once it is loaded I want to make certain calculations using a few parameters values and store them in the same fact table in the form of a new parameter name and the derived parameter value. How can I go about doing this part in OWB.
    Thanks

    1. Yes you can add existing columns to a dimension, there are a couple of approaches; either add the columns to tje underlying table and then change the dimension to manual binding and add attributes to represent the columns. Or edit the dimension and regenerate the implementation table.
    2. Could these not be just additional measures that you calculate in the cube load?
    Cheers
    David

Maybe you are looking for

  • Use of savepoint and rollback in trigger of forms

    I have a button in forms with next code --savepoint    SAVEPOINT SAVEP1; --Call procedure of BBDD: Changed data of tables Packet.procedureexample(..., bResult); --If not correct the execution -> rollback to savepoint and exit form IF NOT bResult THEN

  • Assign an output type to a message type

    Hi all, How do I assign an output type to a message type? Thanks in advance. JM

  • Main window header problem

    Hi All, My header in the main window is getting printed at the end of the page even if it contains no data in the main area. I have given a porgram code in the header, becos based on that my header data should be printed and a page break in the main

  • ADVICE NEEDED - Which Air model to buy

    So, I'm going to be buying a MBA (hopefully in June when the Haswells come out). I don't profess to be a techie when it comes to specs by any stretch of the imagination, but I've been trying to read up. As of now, I have an iMac, 15" MacBook Pro, and

  • Why is Mac local input method used for remote input box?

    This behavior is observed on latest version.