Flash xml - not always loading

Hi
I have a calculator that loads an xml file which contains a
load of factors. If the user changes their details (age or sex)
then it reloads this xml file to pull out the relevant factor.
On my local disk this works fine. However, when on the server
it will work 1 or 2 times accessing and parsing the xml file
perfectly, but then will stop working and freeze for a while. It'll
then work again for 1 time and then stop again and so on. I've
attached the code that loads the xml file.
The strange thing is that whether it's working or not it
loads a 0 error code thing (success) and doesn't display "document
failed" - but with the line of text I added to access
childNode[50], it works ok 1 or 2 times, but is undefined when the
calculator freezes.
It seems flash is being a bit hit and miss at loading the xml
file properly. Once it's loaded into flash should it be continually
available or do I need to keep reloading it every time they change
their details? If it's always available, that also doesn't seem to
be working!
Any ideas?

I have solved this I think - not entirely sure how.
In the above code links to a function called processBook and
passes through the value of book_xml. In declaring the processBook
function I pull this into xmlDoc_xml (function
processBook(xmlDoc_xml). Not entirely sure why as I borrowed that
bit from a book.
Anyway, I've removed the reference to xmlDoc_xml and replaced
it with book_xml and it seems to work perfectly. I believe it the
reason is that when it goes back to that function it looks for
xmlDoc_xml which is only available the first time... something like
that anyway...
Thanks

Similar Messages

  • Flash player not always working

    For some reason certain sites won't load video's with flash player at all on my computer, where other sites with flash player will (I think sites that have an updated version required won't work). I am running the 12 version for chrome (it's enabled and i have done everything on this site to fix it
    http://helpx.adobe.com/flash-player.html
    I really would like to not have to use my laptop every time i want to watch a movie. Any advice or help on things i can try?

    Windows 7, and I have tried it on chrome, firefox, and IE
    Date: Wed, 12 Feb 2014 06:38:40 -0800
    From: [email protected]
    To: [email protected]
    Subject: Flash player not always working
        Re: Flash player not always working
        created by Mike M in Using Flash Player - View the full discussion
    What OS?
    http://mmonlinedesigns.com/images/os.png
    What browser?
    http://mmonlinedesigns.com/images/browsers.png
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6113122#6113122
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6113122#6113122
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6113122#6113122. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Using Flash Player at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Webpages do not always load 1st attempt after exch...

    I bought a new TP Link Router & dual aerial wireless USB adapters to solve my line speed issues as the old BT Home hub 1.5 cannot handle the new exchange.
    http://www.shop.bt.com/products/tp-link-300mbps-wireless-n-adsl-router-77S0.html
    Now some websites need to be either clicked twice or ctrl+F5 to refresh the page as it does not always load the first time which is weird also getting random disconnects which do not last long then it auto reconnects!
    Please does anyone have any advice for me on what to look at I am now plugged direct into the BT master socket & using wirelsss but even using wired its the same issue.
    Download speeds are around 1.3Mb up are around 1mb. Still in the line learning phase as its only been 5 days since I plugged this new Router in could it just be natural for that to take longer to stabilise???

    P-a-u-l wrote:
    I bought a new TP Link Router & dual aerial wireless USB adapters to solve my line speed issues as the old BT Home hub 1.5 cannot handle the new exchange.
    I am surprised as all variants of the Hub are compatible with Bt BB (with the exception of Infinity)
    (If I have helped you in any way to say "Thank You" please click on the star next to the message. Thank You)
    If I have solved your Issue please click the "Mark as accepted solution" button.

  • RMD metadata for R3D clip not always loaded

    I'm getting a bug where 'sometimes' the RMD metadata for a clip is not automatically loaded by Premiere for R3D clips (from Red cameras).  I have to right click on the clip, select 'source settings', and then click on 'Reload from RMD'. 
    These R3D files were trimmed in RedCine X.  Could that have anything to do with this inconsistency?

    Check this thread in REDUSER Forum.

  • Last image in flash gallery does not always load

    Several times I have had the last image in a flash web gallery not appear. Today, image #41 is seen in the filmstrip, the gallery indicates I should see #41 of 41 images, but that image does not appear in the thumbnail strip to the left and the large image is still #40. I tried switching out the last file, but that doesn't make a difference. I have built much larger galleries with the same default flash template and had everything work. Is this a bug, or am I missing something?
    Thanks,

    I had the same thing happen to me. Image #25/25 refused to load. Once I added another image for a total of 26 all images loaded.
    Weird.

  • XML not showing load progress...

    I have a fla file that loads a slide show from an XML file. The xml file contains info about each slide. There's over a 100 slides so the loading takes some time. However I'm not getting actual load progress. It traces nothing until after the load is complete and then it shows the progress that it should have traced one by one, however it traced them all at once on the complete. Because it's not firing the onProgress correctly my preloader is rendered useless. Am I doing something wrong on is this a bug in Flash?
    //======================================================================================== =================================================
    //     load xml
    //======================================================================================== =================================================
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.addEventListener(ProgressEvent.PROGRESS, LoadingXML);
    function LoadXML(e:Event):void {
    trace("complete");
    xmlData = new XML(e.target.data);
    ParseSlides(xmlData);
    xmlLoader.removeEventListener( ProgressEvent.PROGRESS, LoadXML);
    xmlLoader.removeEventListener( Event.COMPLETE, LoadingXML);
    MovieClip(root).loading_mc.x = 1500;
    MovieClip(root).loading_mc.bar.width = 1;
    MovieClip(root).loading_mc.loading_txt.text = "";
    function LoadingXML(e:ProgressEvent):void {
    //trace("Loading..." + Math.ceil(e.bytesLoaded * 100 / e.bytesTotal) + "%");
    var loaded:Number = e.target.bytesLoaded;
    var total:Number = e.target.bytesTotal;
    var pct:Number = loaded / total;
    trace(pct);
    MovieClip(root).loading_mc.x = 500;
    MovieClip(root).loading_mc.bar.width = pct * 194;
    MovieClip(root).loading_mc.loading_txt.text = "Loading XML... " + (Math.round(pct * 100)) + "%";
    xmlLoader.load(new URLRequest("XML/SectionII.xml"));
    HERE IS THE OUTPUT: All at once when the complete fires
    0.149821570227718
    0.299643140455436
    0.44946471068315397
    0.599286280910872
    0.74910785113859
    0.8989294213663079
    1
    complete

    Actually it still doesn't work like I need it to. The loading of the xml preloader only works if the temporary internet files are gone. Which means that the time I need the loader is during the parsing of the xml process. I have a function that creates an object for each slide after the xml loads. It runs through a for loop, however the loader won't appear and work during the for loop. It only works after its finished.
    function ParseSlides(slideInput:XML):void {
    // create a list of slide items
    var slideList:XMLList = slideInput.Slide;
    var slideSize:Number = slideList.length();
    var buildPct:Number;
    // run through list to build each slide object
    for (var i:Number = 0; i < slideList.length(); i++) {
      // get progress of building slides
      buildPct = Math.ceil(i / slideSize);
      MovieClip(root).loading_mc.bar.width = buildPct * loadBarWidth;
      MovieClip(root).loading_mc.loading_txt.text = "Building Slides... " + (Math.round(buildPct * 100)) + "%";
      // build slide id and name
      var idElement:XML = slideInput.Slide.attribute("ID")[i];
      var headerElement:XML = slideInput.Slide.header.copy[i];
      var headerAnimationElement:XML = slideInput.Slide.header.animation[i];
      var headerStartXElement:XML = slideInput.Slide.header.startx[i];
      var headerStartYElement:XML = slideInput.Slide.header.starty[i];
      var headerFinishXElement:XML = slideInput.Slide.header.finishx[i];
      var headerFinishYElement:XML = slideInput.Slide.header.finishy[i];
      var headerStartAlphaElement:XML = slideInput.Slide.header.startAlpha[i];
      var headerFinishAlphaElement:XML = slideInput.Slide.header.finishAlpha[i];
      var headerDelayElement:XML = slideInput.Slide.header.delay[i];
      var headerSecondsElement:XML = slideInput.Slide.header.seconds[i];
      var subheaderElement:XML = slideInput.Slide.subheader.copy[i];
      var subheaderAnimationElement:XML = slideInput.Slide.subheader.animation[i];
      var subheaderStartXElement:XML = slideInput.Slide.subheader.startx[i];
      var subheaderStartYElement:XML = slideInput.Slide.subheader.starty[i];
      var subheaderFinishXElement:XML = slideInput.Slide.subheader.finishx[i];
      var subheaderFinishYElement:XML = slideInput.Slide.subheader.finishy[i];
      var subheaderStartAlphaElement:XML = slideInput.Slide.subheader.startAlpha[i];
      var subheaderFinishAlphaElement:XML = slideInput.Slide.subheader.finishAlpha[i];
      var subheaderDelayElement:XML = slideInput.Slide.subheader.delay[i];
      var subheaderSecondsElement:XML = slideInput.Slide.subheader.seconds[i];
      var audioElement:XML = slideInput.Slide.audio[i];
      var videoElement:XML = slideInput.Slide.video[i];
      // create new slide object
      slide[idElement] = new Object();
      slide[idElement].name = idElement;
      // set header information
      slide[idElement].header = headerElement;
      slide[idElement].headerAnimation = headerAnimationElement;
      slide[idElement].headerStartX = headerStartXElement;
      slide[idElement].headerStartY = headerStartYElement;
      slide[idElement].headerFinishX = headerFinishXElement;
      slide[idElement].headerFinishY = headerFinishYElement;
      slide[idElement].headerStartAlpha = headerStartAlphaElement;
      slide[idElement].headerFinishAlpha = headerFinishAlphaElement;
      slide[idElement].headerDelay = headerDelayElement;
      slide[idElement].headerSeconds = headerSecondsElement;
      slide[idElement].subheader = subheaderElement;
      slide[idElement].subheaderAnimation = subheaderAnimationElement;
      slide[idElement].subheaderStartX = subheaderStartXElement;
      slide[idElement].subheaderStartY = subheaderStartYElement;
      slide[idElement].subheaderFinishX = subheaderFinishXElement;
      slide[idElement].subheaderFinishY = subheaderFinishYElement;
      slide[idElement].subheaderStartAlpha = subheaderStartAlphaElement;
      slide[idElement].subheaderFinishAlpha = subheaderFinishAlphaElement;
      slide[idElement].subheaderDelay = subheaderDelayElement;
      slide[idElement].subheaderSeconds = subheaderSecondsElement;
      // set the audio in the slide
      slide[idElement].audio = audioElement;
      // set the video in the slide
      slide[idElement].video = videoElement;
      // push new slide to the array of slide names
      slidesArray.push(slide[idElement].name);
    //MovieClip(root).loading_mc.x = 1500;
    //MovieClip(root).loading_mc.bar.width = 1;
    //MovieClip(root).loading_mc.loading_txt.text = "";
    // start slide
    buildSlide();

  • Srollpane scrolls when loaded data from XML, not when loaded data from ASP

    Hi,
    I load into scrollpane a swf, which has a dynamicly loaded
    data. If I use the XML file, it works (the scrollbar is visible),
    but if I use a asp file, which creates xml, it doesn't work (the
    scrollbar is not visible). Any ideas?

    Hi,
    let say I have a A.swf and a B.swf. In A.swf I have a
    scrollpane in to wich the B.swf is loaded. Below is the code in
    B.swf. If I load the data from a asp file, the scrollbar in the
    scrollpane is not visible, but if I use the xml file, the scrollbar
    is visible.
    What I've meant is that I think that Flash gets the same form
    of data, no matter if I use the asp or xml, because the asp creates
    the same xml form as I use in the xml file. I hope this makes any
    sense.

  • PLUG-INS not always loading - - Coupon Printer Manager plugin has crashed

    ''dupe of https://support.mozilla.org/en-US/questions/914197''
    I am running Windows XP SP3 and all updates are current.
    For weeks, running 7.0.1, 8.0.1 or 9.0.1, whenever I try to print coupons at the www.coupons.com website, I have difficulty and consistently I receive the following Firefox ERROR message...
    "The Coupons Inc. Coupon Printer Manager plugin has crashed"
    ...and I always SUBMIT a REPORT to Mozilla.
    This website is suppose to invoke the following plug-ins...
    Coupons Inc., Coupon Printer Manager 4.0.1.3
    Coupons Inc., Coupon Printer Manager 4.0.0.7
    ...and using Task Manager I watch to see if the Image column shows one or two plug-ins appear - of course, I don't know which ones - see below for additional info. Most of the time only one plug-in appears and then the website asks me to INSTALL the software (again). When two plug-ins appear (again, I do not know which), things run okay for the first coupon - however around 50% of the time I am unable to print a second, third, etc, coupon.
    Regarding add-ons, I have the following:
    PLUG-INS
    Coupons Inc., Coupon Printer Manager 4.0.1.3
    Coupons Inc., Coupon Printer Manager 4.0.0.7
    Java Deployment Toolkit 6.0.300.12 6.0.300.12
    Java Platform SE 6 U30 6.0.300.12
    QuickTime Plug-in 7.7 7.7.0.0
    Shockwave Flash 11.1.102.55
    EXTENSIONS
    Adblock Plus 2.0.3
    Free Download Manager plugin 1.5.5
    APPEARANCE
    FOXSCAPE 4.01
    Default 9.0.1 (disabled)
    I have disabled each of these add-ons to see if anything improves, but nothing does. This does not surprise me since I have been running the same ADD-ONS for months and this problem has only started happening over the past few weeks.
    I have uninstalled the Coupon Printer plug-ins, scrubbed my Registry, and then reinstalled them (with FF closed, as well as opened, of course), and that does not help either.
    Sure would like to RESOLVE this FF problem.
    I am wondering if there's a PLUGINS setting that needs tweaking, and on that note, I have tried setting...
    dom.ipc.plugins.java.enabled
    ...to TRUE (where default is false) and that does not help either.
    The following screen shot shows my about:config / plugin details > http://tinypic.com/r/10dv3v7/5
    Hopefully, others have experienced the same problem and found a workaround or fix.
    Thanks,
    CurlySue :o)

    Sorry, a resolution isn't going to easily or come from Mozilla.
    4 out of 5 of those crashes were directly caused by the Coupons, Inc. Coupon Printer DLL = npMozCouponPrinter.dll
    The developer of that plugin is going to have to fix it. Contact the Coupon website to find out how to report a bug with that plugin.
    https://crash-stats.mozilla.com/report/index/b7c6e33f-d12b-481f-aca0-546b12120111 <br />
    https://crash-stats.mozilla.com/report/index/c4077e92-719a-453b-b046-e4b802120217 <br />
    https://crash-stats.mozilla.com/report/index/51be502e-6bfb-4c31-8738-1f5302120217 <br />
    https://crash-stats.mozilla.com/report/index/9cb6ff8d-0acc-4490-bfa8-c48bf2120217
    This report doesn't specifically indite that plugin, but points to a general plugin fault. <br />
    https://crash-stats.mozilla.com/report/index/a855f8e7-964c-49b8-a049-54aba2120217

  • Why does Sync not always load, or for that matter, the personal addons page?

    For all of the betas, including Minefield, every so often Firefox features do not seem to load. The Add-ons Manager will stay "blank", despite the columns loading, just nothing inside. And thus I am said when this happens. Any ideas?

    Make sure that you do not run Firefox in (permanent) Private Browsing mode (Never Remember History).
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history"
    *Deselect: [ ] "Always use private browsing mode"
    You can check the browser.sessionstore.* prefs on the <b>about:config</b> page and reset user set (bold) browser.sessionstore.*prefs to the default value via the right-click context menu to make sure that Session Restore is enabled and working properly.
    *http://kb.mozillazine.org/Session_Restore
    *http://kb.mozillazine.org/browser.sessionstore.resume_from_crash
    *https://support.mozilla.org/kb/restore-previous-session

  • Firefox 15 does not always load my home page when it starts up.

    Started my computer. Clicked on the Firefox icon to start Firefox. My preferences include loading my home page (an html file on my computer) when Firefox starts. I have also set browser.newtab.url to the same thing.
    Some of the time, a blank page shows where my home page should show.
    My home page should have loaded.
    If I click on "new tab", the new tab always seems to load my home page properly. It is only when I first start up Firefox that this problem may occur.
    Since this is an intermittent problem, and there is a work-around (clicking on the "home" icon), this is undoubtedly a low-priority bug.

    Since the time of Sea Monkey and Netscape, this problem has not arisen for me. It did not happen in Firefox 12. Only when I upgraded to Firefox 15 did this problem start happening. To me, a retired computer programmer, this feels like a regression. I'd guess at either an uninitialized vairable or a race condition.
    In any case, Firefox should be able to handle being closed by clicking on the x in the titlebar. I shall continue doing so.
    There has never been a hang at exit for me, so that is not something I will pursue.
    In addition, since the problem did not occur ever until Firefox 15, I have done the following:
    sudo yum downgrade firefox xulrunner
    Both are now at firefox 12 level.
    To keep things at that level, I've added to /etc/yum.conf the following:
    exclude=firefox, xulrunner
    I'm certain that my recent actions to downgrade will solve the problem and show that this is a regression.

  • Modules not always loading at runtime

    I have a problem at run-time getting the various modules to
    load. Sometimes they do and sometimes I get the following message:
    VerifyError: Error #1014: Class mx.modules::Module not found.
        at flash.display::MovieClip/nextFrame()
        at mx.core::FlexModuleFactory/deferredNextFrame()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\core\FlexModuleFactory.as:460]
        at mx.core::FlexModuleFactory/update()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\cor e\FlexModuleFactory.as:293]
        at mx.core::FlexModuleFactory/moduleCompleteHandler()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\core\FlexModuleFactory.as:526]
    If I then recompile the various components sometimes the message will go away and the
    module will load or sometimes I have to re-compile all of the components in reverse
    order normal order etc. and after 3-4 attempts all of the modules will then load at
    run time.
    Any idea what this could be?
    Scott

    Version is 3.0 (build 3.0.194161)
    There is a main application which loads various modules based
    on the user's menu choices.
    Here's a piece of the menu control:
    menuitem label="Datenbank" type="radio"
                            groupName="one" data="RecipeSearchDB"/>
    and the menu handler function:
    private function menuHandler(event:MenuEvent):void  { 
        if (event.item.@data != "top") {
            //Alert.show("Label: " + event.item.@label + "\n" + "Data: " + event.item.@data, "Clicked menu item");
            if (event.item.@data == "RecipeCreate") {
                //Alert.show("Let's create a new recipe...")
                TargetModule.url = "Recipes.swf";
            else if (event.item.@data == "RecipeSearchDB") {     
                TargetModule.url = "";  
                TargetModule.url = "RecipeQryInput.swf";               
            else if (event.item.@data == "MPCreate") {     
                TargetModule.url = "";  
                TargetModule.url = "MealPlan.swf";               
            else {
                TargetModule.url = "";                  

  • Why do Yahoo Flash videos not always run correctly in Chrome and Firefox/Windows 8?

    I upgraded early last month to Windows 8 Pro.
    Running Yahoo! News and other videos (Yahoo! Screen, etc.; virtually all Yahoo branded products) I get a black screen, no error message on Chrome and Firefox. The videos run correctly on Internet Explorer.
    I have not found a way to run these videos at all in Firefox or the 64-bit Waterfox.
    In Chrome, I can DISABLE the internal Pepper-based Flash player and the videos will run (but nothing ELSE will: no YouTube, etc.)
    I can keep a plug-ins page open in Chrome and repeatedly enable and disable the internal Flash player; I can copy and paste the URL for what I'm watching back into IE...or perhaps some kind and knowing person here will have a better idea. For me, I sense a bug somewhere. BTW...this machine dual-boots Win8 and WIn7. The problem does not exist in Win7. Please don't suggest going back to Win7; that's a VERY mature (translate SLOW and quirky; survived repeated change of motherboard and other major components) install that I'm continually weaning myself away from and rarely boot into it anymore (Win8 boots from SSD and is blazingly fast, Win7 not so much).
    I have not found any site other than the ENTIRE Yahoo site that has this problem!
    Jay from the Bronx

    I'm back! Actually, this issue has been happening to me every now & then but I'd just given up on dealing with it. But now I'm motivated again.
    I clicked on a video link in Facebook that sent me to NASCAR | Facebook which turns from the https URL to those two words on this site for some odd reason, and it just popped a box telling me saying Flash Player Upgrade Required - Get Flash Player and the video's image never displayed under that and it couldn't be played.
    Then once again I went thru all of the steps to insure that both I do actually have Flash Player and that it is Enabled. I do and it is. I also read somewhere to click the gear icon in IE then click Safety > ActiveX Filtering. I do that and I see a checkmark next to ActiveX Filtering. I've tried it both with a checkmark and without one and there's no difference.
    I have Windows 8.1 fully updated, IE-11 and Flash Player
    I see the swinging tire swing image in #5. Verify if Flash Player is installed at Flash Player Help.

  • Uploaded Flash Page not fully loading

    I created a Flash document that contains 6 hidden FLV files
    that reveal and play with a mouse rollover on respective text. The
    file tests perfectly well. However, when I upload all FLV files, as
    well as the respective SWF and HTML files, and then access the site
    on the web, I can't get all six video files to fully load.
    Sometimes all but two of the video files load, other times only
    three, other times only two. Is this a function of having too much
    data in one Flash document so that my server can't handle it all?
    The 6 FLV files range from a maximum of 12 Mgs, to 4 mg--perhaps 25
    mgs total.

    Try this first......
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=25376
    If that doesn't work, then try this.................
    http://www.youtube.com/watch?v=0mQPsyObIz8
    And use the youtube ipad app..............it's free
    https://itunes.apple.com/us/app/youtube/id544007664?mt=8

  • Safari not always loading sites

    been having trouble lately with safari opening sites. it will load without any problems or delays for about 3 or 4 sites, then will stop loading and i have to force quit. It will try to load the page/site, but never gets there. won't even respond to quitting. I end up having to force quit.

    Your problem may not be exactly the same as that of the original poster of this thread, and it can be very confusing for everybody if we try to answer more than one question in each thread.
    In order for us to give your problem our undivided attention in order to try to solve it, would you kindly start your own thread, describing the trouble you are having in the fullest detail, including completing your details to show what Mac you are using, what operating system, and what version of the application in question.

  • Safari not always loading pages (especially yahoo mail)

    Inconsistent loading of pages, like Yahoo mail, ESPN. Some days they load, some days they don't, while other sites load fine. As a relatively new Mac user, thought it may have been a Mac issue but after discussing with friend and in-law, who both have Macs and can load very site, all the time, well, I'm not so sure anymore.
    Suggestions? Tips?
    We love our iMac. Used happily by whole family but internet/Safari issue is frustrating. Running Leopard, internet is wireless.
    Thanks in advance for your help.

    Your problem may not be exactly the same as that of the original poster of this thread, and it can be very confusing for everybody if we try to answer more than one question in each thread.
    In order for us to give your problem our undivided attention in order to try to solve it, would you kindly start your own thread, describing the trouble you are having in the fullest detail, including completing your details to show what Mac you are using, what operating system, and what version of the application in question.

Maybe you are looking for