SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    ********* Articles ArticleBot's Avatar
    Join Date
    Apr 2001
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Article Discussion

    This is an article discussion thread for discussing the SitePoint article, "Flash Script - Load XML Data into Flash"

  2. #2
    Patrick Besong
    SitePoint Community Guest
    Very good tutorial, but where's page 2?

  3. #3
    Grant Spiteri
    SitePoint Community Guest
    Its good but i get this msg:

    A script in this page is causing the player to run slowly.
    If you continue your computer my become unresponsive do u wish to abort the script?

    And if i say yes it works

  4. #4
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also get the following message:

    A script in this page is causing the player to run slowly.
    If you continue your computer my become unresponsive do u wish to abort the script?

    I click yes and get nothing.


  5. #5
    SitePoint Evangelist Redivider's Avatar
    Join Date
    Nov 2003
    Location
    PA
    Posts
    465
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yet another Sitepoint tutorial that doesn't work properly...

  6. #6
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe its coz the Sample file has been developed in MX (Flash Player 6), hence is getting hanged in MX 2004. Just a guess.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.

  7. #7
    Kloshar
    SitePoint Community Guest
    it crashes yes..no good sorry!

  8. #8
    guest
    SitePoint Community Guest
    I don't know much about flashscript, but this line looks wrong

    mainTag = this.firstChild.nextSibling;


  9. #9
    Another guest
    SitePoint Community Guest
    Well, maybe you could find out more about ActionScript before you say that, 'guest'?

  10. #10
    SitePoint Enthusiast tarunkrsna's Avatar
    Join Date
    Dec 2005
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I ran this script copied from the web page and it crashed for me too. So I downloaded the files and ran them instead. Flash 8 kept wanting to save it as Flash 8 format. Meanwhile I noticed that there were yellow markers in the left hand frame of the actionscript panel suggesting that it had to be saved as minimum ver 6 to run, so I upped my publish settings to 6, saved it in flash 8 format and it ran perfectly.
    Cheeeeeeeeeers.t3rry();

  11. #11
    Alfred
    SitePoint Community Guest
    The code is completely wrong!
    There are no checks for the loading of the file if not loaded it will loop forever.

  12. #12
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you guys have a tutorial for a xml flash tooltip?

  13. #13
    Hozefa
    SitePoint Community Guest
    use this code

    XML_var = new XML();

    // when xml is loaded call functon displayXML
    XML_var.onLoad = displayXML;

    // now load up the url.
    XML_var.load("flash.xml");

    // display in txt xml is loading
    txt = "Loading data...";

    function displayXML() {
    mainTag = new XML();
    elementTag = new XML();
    articleList = new Array();
    elementList = new Array();
    mainTag = this.firstChild.nextSibling;
    articleList = mainTag.childNodes;
    txt = "";
    //loop through xml
    for (i=0; i<=articleList.length; i++) {//start for
    if (articleList[i].nodeType == 1) {
    elementList = articleList[i].childNodes;
    //start for
    for (j=0; j<=elementList.length; j++) {//start for
    elementTag = elementList[j];
    head = elementTag.firstChild.nodeValue;
    if (elementTag.nodeType == 1) {
    txt += head+"<br>";
    }
    }//end for
    }
    }//end for
    }


Bookmarks

Posting Permissions

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