A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to refresh xml on mac?

  1. #1
    Senior Member
    Join Date
    May 2002
    Posts
    359

    How to refresh xml on mac?

    hi everyone!!


    im having some troubles with refreshing xml on a mac. when i update the xml and image file on the server, the mac will still display the old image. i know its working because it works on a PC however i was just wondering if anyone else has had this problem?

    this is the code im using:

    Code:
    urlPath  = "http://www.myurl/"
    
    
    myMP3_xml = new XML();														
    myMP3_xml.ignoreWhite = true;												
    myMP3_xml.onLoad = function(sucess) {
           if (sucess) {						
              loadImages();													
           };
    };
    
    function loadImages(){
         bannerURL1 = myMP3_xml.childNodes[1].childNodes[0].childNodes;
         _root.main.buttonLoaderTop1.loadMovie(urlPath + banner1Name);
    }
    
    myMP3_xml.load(urlPath + 'imagesXML.xml');

    Cheers!
    FlashX

    ________________________
    The mind lies, it only hears what it wants to hear.

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    try:

    PHP Code:
    myMP3_xml.load(urlPath 'imagesXML.xml?random='+new Date().getTime()); 
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    359
    Thanks silentweed!

    Sorry i didnt get back to you sooner, been so busy with work gar!!!

    Will give that a shot, fingers crossed!

    Cheers!
    FlashX

    ________________________
    The mind lies, it only hears what it wants to hear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center