Problem loading XML, does thing in the wrong order.

Hi.
Im completely new to Flash/AS but I have some experience in
other programming languages. Im trying to load some external data
into my program via the attached code code (somewhat trimmes, but
the essentials are there)
What happens when i execute is this:
System1 loadSystemParameters() start
System1 loadSystemParameters() end
vis.fla: 0
System1 loadingComplete() start
Settings: 600
System1 loadingComplete( end)
So the code in the vis.fla is executed to the end before all
the data from settings.xml is read and I do not want that. I tried
searching and reading about this, but i cannot find the solution.
Is there some kind of flag you can set so that the system
won´t execute the code after the loadSystemParameters() before
all of the function is finished?
Thanks

if you want to ensure something happens after your xml is
loaded, then trigger that something at the end of your complete
event handler.
so in your case, put the line:
trace("vis.fla: " + settings.getUpdateInterval());
at the end of your 'loadingComlete' handler - where you have
the line:
trace("System1 loadingComplete( end)");

Similar Messages

  • My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    My iphone has a problem, it simply does not work, the screen is all black with a few colorful scribbles and images blend, I used it only took 6 days and returned to service when operated only 7 more days and it happened again the same thing, what do I do?

    Reset the PRAM
    Reinstall the operating system from the dvd (you will not loose your data)

  • Have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.    The Apple icon, usually at top left corner, appears in to

    have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.
    The Apple icon, usually at top left corner, appears in top right corner  in a strip including all that left hand.  When the computer is restarted, the screen goes back to normal.  But I have to move the mouse to the far left of the screen and then up until it reappears on the far right hand side of the screen so that I can hit shut down button.
    It seems to happen randomly though always on desk top and sometimes when I move mouse and computer switches on from rest mode.   My large flat screen is relatively new.
    The video card on this computer, which is approximately two years old, is Nvidia FeForce 9400M.
    Any help would be welcome as my usual source of assistance is not available and I am not well versed in workings of the Mac although I have used one for many years.

    That sounds like a Hardware problem.
    You may be able to confirm that with Apple Hardware Test, or make an appointmenst for a free Genius Bar evaluation.

  • I have an iPod touch 4th gen. why does it show the wrong album art only on my ipod and not on itunes? Is there any way I can fix it?

    I have an ipod touch 4th gen. why does it show the wrong album artwork on my ipod and it's fine on itunes. why is that and is there any way to fix it? please help!

    I think it can't find the right or any artwork and ends up putting junk in there.
    And can happen with artist and other tags.
    probably fine with commercial media but otherwise....? I think you have to manaully go in and edit
    I also don't like how it handles and stores non-Apple iTunes store content.

  • The workspace page loads, but does not enable the toolbar.

    Dear,
    I'm using the EPM11.1.2.2. The workspace page loads, but does not enable the toolbar with the "Explore". Can anyone help me?
    thanks

    Maybe you have not installed and configured the RAF components.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • When I click the Editor, it loads but does not open the Editor page. Options?

    When I click the Editor, it loads but does not open the Editor page. Options?

    Try making separate desktop icons for the Editor and Organizer. You can then launch directly. The standard desktop icon is for the welcome screen which often runs in the background or doesn’t shut down properly.
    Start by right-clicking on the desktop and select:
    New >> Shortcut
    Then browse to:
    C:\Program Files\Adobe\Photoshop Elements 13
    Inside the Photoshop Elements 13 folder make sure you select the application (not a shortcut) by scrolling down to the files beginning with the letter P and highlighting ‘PhotoshopElementsEditor’
    Then click next followed by finish.
    You can repeat for the Organizer using the different file path.
    New >> Shortcut
    Then browse to:
    C:\Program Files\Adobe\Elements 13 Organizer
    Highlight ‘PhotoshopElementsOrganizer’
    Then click next, followed by finish.
    Now that you have your separate desktop icons you can delete the one for the welcome screen, if preferred. On Mac try launching directly from Applications. [if not using PSE13 substitute your own version and go to Program Files (x86)]

  • We bought a time capsule then the wifi has a problem since it does not identify the existing wireless network and it says that its need to have an update firmware. The existing firmware is 7.3.1, does it have an newest update firmware existing now?

    We bought a time capsule, 1TB, then the wifi has a problem since it does not identify the existing wireless network and it says that its need to have an update firmware. The existing firmware is 7.3.1, does it have an newest update firmware existing now? Does APPLE do not provide latest firmware for this item?

    How old is that Time Capsule?  The fact that it still have firmware 7.3.1 suggests that it's not the latest model.  The latest firmware available for my two-year-old model is version 7.5.2.  Apple does provide firmware updates.  You just have to let the Time Capsule download and install them.  Use AirPort Utility to do that.
    Regarding your Wi-Fi problem, please explain what you mean by "it does not identify the existing wireless network".
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • I have just put an audio book into my iTunes music library.  When I tried to transfer it to my iPod shuffle it rearranged the tracks so that they are in the wrong order.  How can I put them in the order they appear in the book?

    I have just put an audio book into my iTunes music library.  When I tried to transfer it to my iPod Shuffle it put the chapters in the wrong order i.e. Chap 1, Chap 10, Chap 11 etc. rather than Chap 1, Chap 2, Chap 3 ...  How can I get it to put them in the order they appear in the book?

    First, we need to know if the audiobook chapters are being treated by iTunes as music files or as audiobooks. If they are not audiobooks purchased from the iTunes store, they might be getting "shuffled". You will need to look at "File" - "Properties" (I think - I don't use iTunes under Windows - or right-click on the file and choose "properties") and look at the media type. If it is "Music", change it to "Audiobook". If this is not the problem, or does not fix anything, please post back.
    Actually, looking at your post again, a second thought occurs to me - assuming there are less than 100 chapters in the book, just renaming them with a leading zero on the first nine chapters might do it. A computer will alphabetically sort filenames in the order you quote (1, 10, 11, 12, 13, ... 2, 21, etc.) but a leading zero will fix that (01, 02, 03 ... 10, 11, 12)

  • Tracks in my albums are all in the wrong order!

    Hi, as it turns out I have a problem. Some of my albums on my iPad have all mixed up, the tracks we appear as, instead of in correct order (listed as 1. 2. 3. Well you get the idea), are in the wrong order! Everything was fine before I update to iOS 7, as anybody else had this problem?
    Many thanks

    iTunes doesn't do multi-level sorts, or rather it doesn't give us users any control over them. Take, for example, the *Album by Year* view and you'll see that is has sub-ordering on quite a few values. In pseudo-SQL it's something like this:
    SELECT * FROM Tracks ORDER BY Sort Album Artist, Year (Of 1st Track of Album), Album, Disc #(Empties Last), Track #(Empties Last)
    Where there is no Sort Album Artist value it is infered from Album Artist, Sort Artist or Artist. Where there is no Sort Album it is infered from Album.
    When you click to sort on the Year column any previous ordering is discarded. If the tracks are in the wrong order then all you can do is click again to change between an ascending or descening sort.
    For general tips on grouping & ordering tracks in iTunes see http://samsoft.org.uk/iTunes/grouping.asp
    tt2

  • Cover Flow in the wrong order

    I have had my Ipod Touch for about a week now, and I have about 1000 songs on there. I love using 'Cover Flow' to browse through my music, but whenever I do, the Albums are all in the wrong order. I know this isn't a major thing, but I really like to have them in the same order as iTunes, as I use that a lot as well.
    I have tried resetting the Ipod, but I haven't tired restoring it through iTunes cause I don't want to loose all my music and have to sync it all over again.
    Is there a solution?
    Can anyone help me?

    One other thing which I think has been happening to many people recently is the change in album artwork. There must have been something wrong with the 2.2 update! The album artwork is fine in the 'Cover Flow' (just in the wrong order!), but when I'm scrolling in vertical view some of my albums have just completley black pictures of the actual artwork!
    Btw, all of these things are fine in iTunes, so it must be something wrong with my iPod and not with how I organize my music! Thanks to anyone who can help!

  • MySQL PHP XML not sorted in the right order

    Hi, maybe someone can point out to me where I go wrong.
    I use an XML derived with PHP from a MySQL database to loop through a series of pictures.
    The XML I get from a database query gets sorted in the wrong order.
    I try to sort it by orde (is a columnname) but it keeps sorting by the ID.
    Any help is greatly appreciated.
    Thanks
    This is the PHP code to create the XML:
    $link = mysql_connect("localhost", "xxxx", "xxxxxxxxx");
    mysql_select_db("xxxxxxxxxxx");
    $query = 'SELECT * FROM gallery WHERE categorie = "dessin" ORDER BY "orde" ASC';
    $results = mysql_query($query);
    echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
    echo "<dataLoaded>\n";
    while ($line = mysql_fetch_assoc($results)) {
    echo "<galerie>\n";
    echo "<id>" . $line["gallery_id"] . "</id>\n";
    echo "<orde>" . $line["orde"] . "</orde>\n";
    echo "<image><![CDATA[" . $line["starturl"] . $line["image"] . $line["endurl"] . "]]></image>\n";
    echo "</galerie>\n";
    echo "</dataLoaded>\n";
    mysql_close($link);

    Thanks Kglad. Didn't work though.
    I also looked it up in the PHP reference with mysql_fetch_row you need to specify a single row I understand.
    In this case it might be many and the number differs.
    But I found the solution. I removed the quotes around orde and now it works.
    $query = 'SELECT orde, starturl, image, endurl FROM gallery WHERE categorie ="dessin" ORDER BY orde ASC';
    Nevertheless thank you and others for the great help on these forums.
    Jos

  • Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Why does iPhoto change the sort order of the photos in my album when I attempt to share via Photo Stream?

    Did anyone find a good way to sort the shared albums better, so that the ones you share with can better find their way around.
    You can arrange them manually in an album, select all and use the Photos ➙ Batch Change ➙ Date to menu option and check the box to add a set interval between photos. That will let the photos be sorted by date and be in the order you want:
    OT

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • Spell Checker does not replace the wrong spelling with the right one

    I have a GWT application which has a textarea. When the user types a wrong spelling, it gets underlined in red. When the user right clicks on the wrong spelling, the popup menu provides some suggestions; The user clicks on one of the suggestions but the wrong spelling does not get replaced.
    The javascript console contains the following error:
    [18:54:12.843] NS_ERROR_INVALID_POINTER: Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIInlineSpellChecker.replaceWord] @ resource://gre/modules/InlineSpellChecker.jsm:273
    Please let me know how to fix this problem.

    If this is while using Firefox, try to Firefox in Safe Mode to see if the
    problem still happens.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Problem loading XML in firefox

    I have stumbled across a problem when loading XML via an
    external address in Firefox.
    If you specify a valid port like '
    http://www.mydomain.com:80/test.xml'
    in the path for XML.load(), then it will not work when viewing the
    Flash in Firefox ,but It works correctly in IE and also in both
    browsers when viewing the page locally (rather than from a server).
    please help me to solve this problem
    Thanks,
    shanthi.

    HI Micke,
    What is the code you are using to load the XML file ?
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. -
    http://www.flashjester.com
    There is a very fine line between "hobby" and
    "mental illness."

Maybe you are looking for

  • How many devices can you have on 1 icloud account

    how many devices can you have on 1 icloud accout?

  • Unique Error while doing hot backup Cloning!

    Dear All, I am using EBS 11.5.10.2 with DB 9.2.0.6. I am doing hot backup cloning by referring *[Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database|https://metalink2.oracle.com/metalink/plsq

  • How to edit the dropdown emails list created as you start to fill in the To: field?

    When compose a new message, via iCloud (safari browser and win 7 os), and start to fill in the To: field, a dropdown list of Email addresses appears.  Some are old email addresses that have been deleted from the iCloud Contacts.  How do I clean this

  • Common Expenses Process

    Hi Experts, I have a issue on common expenses within two company codes, that is When the new employee joins into the company, company will provide a medical insurance to that new employee, say we have 2 company codes X and Y, for all employees medica

  • Help interpreting crash logs

    Powerbook G4 10.5.8 Several issues lately: -crashing browser (all add-ons turned off) -intermittently not able to connect to wifi (same room with another device not having trouble) -kernel panics -disk repair partially repaired disk but failed twice