Using one swf to preload another swf

Hey everyone,
I have two swf files, one is a preloader and the second is
the main file. I want to preload the main file using my preload
swf. It works, however the main swf starts to play after about 11%
of it is preloaded, how can i stop this? I want to preload the
entire main swf and then have it play. Here is the code i'm using
in my preloader swf. I'm fairly new to this so any help is much
appreciated. Thanks in advance.

http://www.gotoandlearn.com/
this is Lee Brimelow's site; he has some really good
tutorials on this and other topics; I've found them pretty helpful.
look into loaders and event listeners.
good luck.

Similar Messages

  • How to use one query results in another query

    hi,
    in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
    How I can do this?
    Result I want to get is:
    In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
    Can I do this?
    Regards,
    Andrzej

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • How to use one hash table inside another hash table

    Hi everyone,
    Any example of hash table inside another hash table.
    Can one here help me how to write one hash table inside another with repeating keys for the first hash table.
    Thanks,
    kanty.

    Do you mean you want the 'value' entries in a hash table to themselves be hash tables? Easy but this often indicates a design flaw.
    Hashtable<String,<Hashtable<String,Value>> fred = new Hashtable<String,<Hashtable<String,Value>> ();But what do you mean by "with repeating keys for the first hash table"?
    Edited by: sabre150 on Jul 2, 2010 10:11 PM
    Looks like you have already handled the declaration side in your other thread. I suspect you should be writing your own beans that hold the information and these beans would then be stored in a Map. The problem I have is that your description is too vague so I can't be certain.

  • Using one Cursor data in anothe rcursor

    Hi all,
    I have a requirement of processing the following.
    I have to select the rows for which few selected attributes are null. Then I need to take one more attribute for these rows and check that if the value of that row exists for any other row except this one. If that id exists for another row ,then I have to update two fields concatenate with the value.
    Ex:- suppose I have 3 rows for which all the three attributes are null. I have a value say CCN_ID which I have to check if that exists for any other row other than this. That means the CCN_IFD of these 3 rows should be checked for existence in any other rows in the same table. If any of the CCN_ID of these 3 rows exists, then I need to update that row with attribute (Sayx)CCN_ID concatenated by the CCN_ID.
    I wrote the following query to accomplish this.
    select CCN_ID from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL and CCN_ID IN
    (SELECT DISTINCT CCN_ID from TEMP_ARTICLE_TABLE where CCN_ID in(select CCN_ID from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL)
    and rowId not in(select rowId from TEMP_ARTICLE_TABLE where ARTICLE_NO is null and COLOR_BOTTOM is NULL and COLOR_TOP is NULL));
    But I was requested to write a Stored Procedure to do this. So, I am thinking of creating two cursors in which the first cursor's data is used in second one as follows.I am receiving compiling errors as follows while compiling t he code.Am I doing in the best possible approach? Is there any other better approach to accomplish my requirement?
    SP Code:-
    CREATE OR REPLACE PROCEDURE SP_ARTICLEDATA_CLEANING IS
    CURSOR Cur_CCNID is
    SELECT rowId,CCN_ID FROM TEMP_ARTICLE_TABLE WHERE ARTICLE_NO is null AND COLOR_TOP IS NULL AND COLOR_BOTTOM IS NULL;
    CURSOR Cur_ModCCNID IS
    SELECT DISTINCT CCN_ID FROM TEMP_ARTICLE_TABLE WHERE CCNID IN(Cur_CCNID.CCN_ID) AND rowId NOT IN(Cur_CCNID.rowId);
    BEGIN
    FOR rec in Cur_CCNID
    LOOP
    BEGIN
    UPDATE TEMP_ARTICLE_TABLE SET COLOR_TOP='FIX_'||rec.CCN_ID WHERE CCN_ID=rec.CCN_ID and rowId in(cur_CCNID.rowId);
    END;
    END LOOP;
    END;
    Errors:-
    [Error] PLS-00225 (5: 102): PLS-00225: subprogram or cursor 'CUR_CCNID' reference is out of scope
    [Error] ORA-00904 (5: 102): PL/SQL: ORA-00904: "CUR_CCNID"."ROWID": invalid identifier,
    [Error] PLS-00225 (11: 102): PLS-00225: subprogram or cursor 'CUR_CCNID' reference is out of scope,
    [Error] ORA-00904 (11: 102): PL/SQL: ORA-00904: "CUR_CCNID"."ROWID": invalid identifier
    Please guide me if there is abetter way or how to correct these errors.
    Thanks,
    Pavan.

    The basic answer to your problem is use SQL. A single SQL statement can very likely do the entire operation. There is no need for using row by row (called slow by slow) processing in PL/SQL.
    PL/SQL is inferior when it comes to crunching database data. That is the territory of the very powerful and very flexible SQL language. Or simply put: Maximise SQL. Minimise PL/SQL.*
    As for cursors - a cursor is the compiled and executable for a source code program (e.g. SQL statement). It is not a result set. This cursor/program outputs data. It even takes parameters in the form of bind variables. Which means the same cursor (executable) can be used repeatedly, even by different sessions, and executed with different parameters (called bind variables).
    Want to insert 10 million rows? Single SQL cursor (executable program). Called 10 million times. Each time with different parameters (bind variables). Via 10,000 different application sessions. At the same time.
    So a cursor calling a cursor - not really a sensible approach. Cannot be done the way you want in your code. Is used for unique processing requirements like running PL/SQL in parallel using pipe line table functions.
    Bottom line - whoever told you to write a stored proc to do this, is wrong. The correct solution is writing SQL to perform the processing and update you need. That SQL can then be placed inside PL/SQL in order to manage the execution of that SQL cursor and deal with validation of input parameters, handling errors, code instrumentation and so on.

  • Can I use one document to open another?

    I am assuming this is a scripting problem though I am not a scripter myself.
    Basically the situation is this: I have a number of Appleworks documents each of which contains many thumbnails of images, and each thumbnail is also a hotlink to a url for the web page which hosts the full size image. I would be perfectly satisfied with this setup except that the Appleworks icon in Finder is total rubbish, worse even than a Classic icon. I cannot use the Finder (column view) to see from the icon which document it is.
    To get around this, I have also saved the same documents in Photoshop as small jpegs, which give a beautiful, sharp, clear, LARGE icon image in Finder.
    The problem is that I now have PAIRS of documents, one Appleworks and one Photoshop, a total of more than 50 pairs in a folder. What I want to do is to use the jpeg solely to identify the document in Finder, then when I double-click on it, the Appleworks document opens. Can I link document files together so that if I double-click one, the other opens?
    I believe the clue may lie in aliases? I have created an alias of one of the jpegs, and its icon is every bit as good as the original document. Can I now get the alias to point to another document, in this case its paired Appleworks document?

    Hello christopher,
    Well, you may give this another try, though it's a little out of the scope of your original question. (Technically, custom icon and preview are two things ; ))
    The following script will try to get preview image , i.e. pair of 'PICT' and 'pnot' resources, from Photoshop JPEG file and put it in the corresponding AppleWorks 6 file's resource.
    If recent Photoshop JPEG file still stores the preview image in that fashion, this script should help. Otherwise, it would do nothing, hopefully. (Try the script on a test folder first.)
    To run this script, you need to install Satimage.osax that is free scripting additions made and distributed by Satimage-software, France. See script's comment for more details.
    http://www.satimage.fr/software/en/downloads/downloadscompanionosaxen.html
    Good luck,
    H
    -- SCRIPT
      make PICT preview of AW6 file from the paired jpg file with fine preview.
      v0.1
      * Using 'list resource', 'load resource' and 'put resource' of Satimage OSAX.
      Preparation:
        • Install Satimage OSAX in either of:
          /Library/ScriptingAdditions/
          ~/Library/ScriptingAdditions/
        * download sources:
          http://www.satimage.fr/software/en/downloads/index.html
          http://www.satimage.fr/software/en/downloads/downloadscompanionosaxen.html
          http://www.satimage.fr/software/en/downloads/downloadsold_companionosaxen.html
      Usage -
        • Copy this script into new window of Script Editor and run it.
         It will let you choose source folder to process and then
         get 'PICT' and 'pnot' data from jpg files and put them into corresponding cwk files.
        * The script assumes that
          - the source folder contains AW6 files and Photoshop jpg files loosely; and
          - their file name extensions are 'cwk' and 'jpg' respectively; and
          - file names without exension are the same for corresponding files.
      e.g.
      source folder structure -
        target folder:
          file1.cwk  -- AppleWorks 6 file
          file1.jpg  -- corresponding (Photoshop) jpg file with fine PICT preview
          file2.cwk
          file2.jpg
      result folder structure -
        target folder:
          file1.cwk  -- AppleWorks 6 file with fine PICT preview obtained from corresponding jpg file
          file1.jpg  -- jpg files with fine PICT preview (not changed)
          file2.cwk
          file2.jpg
    main()
    on main()
    script o
    property aa : {}
    property fda : choose folder with prompt "Locate the folder to process." -- source folder
    property fdp : fda as Unicode text
    property jpgext : ".jpg" -- jpg file name extension (including period, case insensitive)
    property cwkext : ".cwk" -- AppleWorks 6 file name extension (idem.)
    -- get list of jpg files
    tell application "Finder"
    set aa to (files of fda whose name ends with jpgext) as list -- JPGs
    end tell
    -- get 'PICT' and 'pnot' resource data from jpg file and put them into cwk file.
    set d to -(count jpgext) - 1
    repeat with a in my aa
    set a to a's contents -- Finder reference of jpg file with fine PICT preview
    set n to a's name -- jpg file name
    set a to a as alias -- alias of jpg file
    set p1 to fdp & (n's text 1 thru d) & cwkext -- corresponding AW6 file path
    try
    set a1 to p1 as alias -- alias of corresponding AW6 file
    -- get PICT and pnot resource data from jpg file
    set {PICTid} to list resources "PICT" from a
    set {pnotid} to list resources "pnot" from a
    set PICTdata to load resource PICTid type "PICT" from a
    set pnotdata to load resource pnotid type "pnot" from a
    -- put PICT and pnot resource data to cwk file
    put resource PICTdata to a1 type "PICT" index PICTid with name ""
    put resource pnotdata to a1 type "pnot" index pnotid with name ""
    on error -- ignore it silently
    end try
    end repeat
    end script
    tell o to run
    end main
    -- END OF SCRIPT

  • Use one counter to trigger another

    Hello
    I would like to use ctr0 as a trigger source for ctr1, i.e. ctr1 should begin to run every time ctr0 produces a rising edge. This works good as long as I produce only one puls with ctr0, however I Iike to retrigger ctr1.
    The code I am using yet is attached, but it works only for a single puls of ctr0.
    Does anybody know how to implement this in LabVIEW?
    (used hardware board: PCI-6025E)
    Attachments:
    ZweiTimer4.vi ‏41 KB

    Hi MG83,
    I will try to respond to your question:
    I have done some minor modifications. First I have changed from frequency / duty cycle back to high time / low time control.
    Further
    I I tried to change the upper counter (actually counter 0) from the
    "continous samples" mode to the "finite samples" mode, because I want
    to produce only a finite number of pulses (e.g. 10), but then I get
    exactly the same error as yesterday.
    If you let the configuration like I made with your card number, you will not receive any error message.
    If you want to generate 10 Pulses you must start the task again after each generation.
    If you receive the same error as yesterday, you don't configure the counters correctly.
    First try to generate pulses on the counter0 without counter1 and after that try to do the both simultaneously...
    PS: Take care that you don't have the test panel open at the same time.
    Is it possible that I simply do not have enough
    hardware resources for this purpose on the PCI-6025E-Board? Or where is
    the problem?
    No there is here no problem, I try with a 6025 and it work exactly as on my 6040...
    Another question: You use the "is task done"-VI
    for the lower counter. However this counter is cofigured to be
    retriggerable, so I wonder, if the "is task done"-VI can ever return
    TRUE? Or in other words: How should this task know, if there are no
    further trigger events so that it is done?
    It's te same method as in the example...You must hold the task open...and you use this function to chack if an error occure, if you don't use function in the loop, you don't check the errors and don't have informations...
    Try first to use my example and if the a problem come, post your question with a screen shot of the error that you receive.
    Please take care that the counter are right configured and that you did not open tasks on the same ressources...
    Regards.
    Matthieu

  • How to use one xsd element in another xsd

    Hi,
    I have an xml as follows.
    <rss version="2.0" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V1/AnnotatedMaps.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="newtest.xsd">
    <!--Locator Version 1.4.0.0-->
    <channel>
    <title>Locations</title>
    <link>http://mytestlink.com</link>
    <description>location information</description>
    <item>
    <ymaps:Address>Roosevelt Blvd</ymaps:Address>
    <ymaps:CityState>Monroe, NC</ymaps:CityState>
    <ymaps:Zip>28112</ymaps:Zip>
    <ymaps:Country>US</ymaps:Country>
    </item>
    </channel>
    </rss>
    I worte an xsd as follows for the above xml
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V1/AnnotatedMaps.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xsd:element name="rss">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="channel">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="title" type="xsd:string" />
    <xsd:element name="link" type="xsd:string" />
    <xsd:element name="description" type="xsd:string" />
    <xsd:element ref="ymaps:Address" />
    <xsd:element ref="ymaps:CityState" />
    <xsd:element ref="ymaps:Zip" />
    <xsd:element ref="ymaps:Country" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="version" type="xsd:decimal" />
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    I am getting the below exception for that
    line numbner ---|13|---Column---|41|-----
    org.xml.sax.SAXParseException: src-resolve.4.2: Error resolving component 'ymaps:Address'. It was detected that 'ymaps:Address' is in namespace 'http://api.maps.yahoo.com/Maps/V1/AnnotatedMaps.xsd', but components from this namespace are not referenceable from schema document 'file:///E:/test/samples/newtest.xsd'. If this is the incorrect namespace, perhaps the prefix of 'ymaps:Address' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///E:/test/samples/newtest.xsd'.
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    Could any one help me?
    Thanks in advance
    Samba Damerla

    Hi Andrzej,
    please check out this thread: Set parameters values depending on other parameters
    I had a discussion about query results as input for another query in there.
    For creating a workbook, just click on the save button after you ran your query in the bex.
    Siggi
    Message was edited by: Siegfried Szameitat

  • How to use one button to drive another button click

    I'm trying to figure out a way to fix a bug in my application.  The simple fix would be to have a single button that drives a MouseCLICK event on another button everytime the PlayBar in my application reaches the end of the screen and returns to its origin.
    How would I achieve this?  I have made a lot of headway since I last posted a question in the ActionScript 3 forum, which was only yesterday evening.
    Thanks in advance,
    markerline

    The application is an audio application.  It is like a drum machine sort of.
    Currently there is a grid and whenever active cells get hitTest'ed by the PlayBar they become deactivated, the PlayBar returns to the origin, and when you relaunch the Play functionality the deactivated cells no longer play a sound.
    I have a button which reactivates the sounds.
    I also have a button which has a bug in it that loops the sounds. 
    To go around the looper button that has a bug in it I would like to use a Button "Z" which automatically clicks the "reactivate the sounds" button every time the PlayBar returns to the origin and the PlayBar will then continue to play and return to the origin in a looping fashion.  If the Button Z is in an active state this looping will continue.  To stop looping, click the Button Z until it is no longer in an active state and the PlayBar will then remain at the origin.

  • Using one computer to control another - wirelessly

    I think this is a simple question but I have no idea how to start.
    I want to use my iBook to tell my iMac - both on the same wireless network - to open iTunes and which songs to play. Sounds like the sort of thing I should be able to do but, like I already said, no idea where to start.
    Can anyone put me on the right track?

    This can be done by remote desktop connection / VNC. However, it can also be done via AppleScript if you like as well.
    Apple Remote Desktop is a separate product, however, you can enable in the Sharing preferences to allow remote desktop connections and connect via freeware apps like Chicken of the VNC. This sill allow you to view and interact with the desktop of one machine from the other.
    In the case of AppleScript, you can enable receiving Apple Remote Events on the iMac and then control iTunes (or whatever) as you would were it locally. For example:
    tell application iTunes of machine "eppc://username:[email protected]"
    play playlist "80's Hair Bands"
    end tell

  • Use one hard drive in another MacBook

    Got a new MacBook Pro and want to take my SSD drive out of my old one and use it as the boot drive in the new one. Can I just switch them and no problem or are there going to be issues?
    If there are issues can I clone my SSD hard drive to me new one, erase the SSD, then clone it back as the boot drive?
    Thanks.

    Get the enclosure as Ralph suggests.
    Insert the SSD in the enclosure and attach it to the new MBP via USB.
    Open Disk Utility>Erase and select Mac OS Extended (Journaled) and click on the Erase button.
    Then use Disk Utility>Restore.  Select the HDD in the MBP as the 'Source' and the SSD as the 'Destination' and click on the Restore button.
    Swap the two drives and the new MBP with the SSD should boot.
    Ciao.

  • How do I change from using one apple ID to another on my iPod ?

    I would like to use someone else's apple ID on my iPod so they can use it for their things but it doesn't seem to be working when I reset my iPod

    Got to settings, sign out of your account and into theirs.
    This is covered in the manual

  • Embed a font in one SWF use in another?

    Long version:
    I've got a "player" app that I've built that shows content
    from various XML files. I have certain common fonts embedded in it
    (Verdana, Arial, Times, etc.) that it uses to display text. Now,
    I've got a client with a special symbol font that I'll need to pull
    characters from to show specific text in my app. I can't embed this
    font in my app (due to many considerations), but I'd like to use it
    without having to use each character as a graphic (by converting
    every character in the font into a JPG). So, can I embed his font
    in a SWF and load that SWF to use the font in my app?
    Short version:
    SWF1 loads SWF2 which contains an embedded font. SWF1 uses
    that font via a TextFormant instance to show text on the stage.
    Is this possible? My target is Flash 7 player using AS2.
    Thanks!
    Matt

    that approach won't work i don't think. i've looked at shared
    libs before and don't remember it being that useful. but i'll take
    another look.
    is there now way in pure code to do it?

  • One swf to another

    I don't know if this can be done but here it goes. I have 2
    flash anamation on my site. Both have several scenes in them. My
    question is? When linking over from one swf. to another. Can you
    script it to start at a specific scene or must you start at the
    begining of the swf.
    Thanks

    from the loaded swf's main timeline:
    MovieClip(parent.parent)
    will reference the timeline to which the swf's loader has been added.  so, to reference a variable (eg, scoreVar) on that timeline, use:
    MovieClip(parent.parent).scoreVar

  • Getting one swf to be higher than another in the zindex of a html page

    Hey all could someone please show me how I can tell one .swf
    to be higher in the pages object stack than an other, I presume
    using javascript?
    Any help would be great.

    Add a table with two rows put the first one in the fist row
    and the second
    in the next row. or make a two div's that work and put them
    in there.
    I think that for you the tables would work better and end
    your frustration.
    Dave
    "complexity" <[email protected]> wrote in
    message
    news:e4lqnl$o0m$[email protected]..
    > Hi all,
    >
    > I am atempting to get a swf higher than another on
    screen in a HTML page.
    >
    > I thought that by using the z-index attribute would
    achieve this but I am
    > having difficulty with it.
    >
    > Firstly I have tried Javascript solution.
    >
    > <script language="Javascript">
    > <!--
    > function makeswf1higher() {
    > div1.style.zIndex="4";
    > div2.style.zIndex="3";
    > -->
    > </script>
    >
    > <body onLoad="makeswf1higher()" >
    > <div id="div1"> //mswf here </div>
    > <div id="div2"> //mswf here </div>
    >
    >
    > secondly I have tried a CSS z-index solution.
    >
    > <style type="text/css">
    > <!--
    > #div1 {
    > position:relative;
    > width:200px;
    > height:115px;
    > top: 0px;
    > visibility: visible;
    > left: 0;"
    > z-index: 50;"
    >
    > }
    > #div2 {
    > position:relative;
    > width:783px;
    > height:446px;
    > top: 0px;
    > visibility: visible;
    > left: 0;"
    > z-index: 1;"
    > }
    >
    > -->
    > </style>
    >
    >
    > And neither produces a result for me. Could someone
    please show me what I
    am
    > doing wrong here.
    >
    > Any help is much appreciated.
    >

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

Maybe you are looking for

  • Install Font in Windows 7 with MDT

    I need to install company fonts in windows 7. I use MDT 2010 to install OS and my applications, this works great, but when I try to install fonts (the way I use to do for XP,...objFontsFolder.CopyHere FontName...) it just does not work. The fonts are

  • How to restore imac

    how can i restore my i mac to its original configuration?

  • Thread Waiting on Condition

    From the following thread dump, my thread is waiting on some condition due to the deserialization process. How do I find out what that condition is? "EventSet Archiving" prio=1 tid=0x081cfb28 nid=0x31ab waiting on condition [619a4000..619a5854]      

  • Security setting problem!! need help

    i m a designer ,once i done i need to email  the pdf file to cilent .But i wanted to make the file with security !! i just want my cilent just have a view but cant print and save on that file beacuse i scare the cilent use my design as a copyright .

  • Virsa 5.1 issue

    All, I am running the Risk Analysis at User level but when I click on the User fields on the screen and put "*" value only 53 users shows up. I ran the user synchronization background job also but still not ALL  the users are showing up when I click