7 Replies Latest reply on Mar 11, 2010 2:57 PM by auto_ghost

    XML pushed?

    auto_ghost

      flash player 8
      actionscript 2.0

      loading animation
      xml loaded...
      PUSHED
      PUSHED
      PUSHED
      PUSHED
      PUSHED
      PUSHED


      this is the message that pops up everytime I try to test movie! I've tried everywhere to find a solution and maybe some-one on here can help me out.

      basically i've been given the flash file of a website to edit, and and then the ftp details of the actual site. So i've dowloaded all the info from the ftp account, tried to use the swf from the flash file i have and it will load the opening scene but won't load the xml driven content! and i get a actionscript pop up window with the message above.

      I've checked where the actionscript is pointing to (e.g. actionscript/loader.as)
      and everything should work but doesn't.

      please can someone help?

      Phil

        • 1. Re: XML pushed?
          kglad Adobe Community Professional & MVP

          those are the result of trace() functions.  you can use movie explorer to find them in the actionscript.

           

          but that won't help you find the xml path error.  use movie explorer to find .xml (dot xml)

          1 person found this helpful
          • 2. Re: XML pushed?
            auto_ghost Level 1

            Hi,

             

            thanks for the reply what is movie explorer?

            • 3. Re: XML pushed?
              auto_ghost Level 1

              loadXML = function() {

               

                  xmlfile = new XML();

               

                  xmlfile.load ("pjp.xml");

               

                  xmlfile.ignoreWhite = true;

               

                  xmlfile.onLoad = function(success) {

               

                      if(success) {

               

                          trace("xml loaded...");

               

                          makeArray();

               

                      } else {

               

                          trace("xml load failed...");

               

                      }

               

                  };

               

              };

               

               

              is this something to do with it?

              • 4. Re: XML pushed?
                kglad Adobe Community Professional & MVP

                it's a tool in the flash ide.  click window/movie explorer.

                • 5. Re: XML pushed?
                  auto_ghost Level 1

                  hi sorry i forgot to mention i found that..

                   

                  however i still don't know what is wrong i've tried changing the actionscript to load the xml file with a few different ones i found on the internet but i still get a message either just:

                   

                  loading animation

                   

                  or

                   

                  loading animation

                  xml loaded...

                   

                  PUSHED

                  PUSHED

                   

                  it should work because i have a finished site dowloaded from their ftp details and the .fla that it was build with and i don't think anything has changed on either, i just hope its something simple

                   

                  does anyone else have any ideas?

                  • 6. Re: XML pushed?
                    carl schooff Level 3

                    this is probably coming from the makeArray() function as this message is coming after xml Loaded.

                     

                    most likely the xml info is being parsed and added to an array.

                     

                    search your all your action script code for trace("PUSHED")

                     

                    this message, while maybe slightly annoying to you, is verifying that something behind the scenes is working correctly.

                    • 7. Re: XML pushed?
                      auto_ghost Level 1

                      /*
                         #############################################################
                         ##   Load and process XML                                  ##
                         #############################################################
                      */

                       

                      // ------------------------------------------------------------- [ Load XML ] ----------------------------------
                      var xmlfile:XML = new XML();
                      loadXML = function () {
                          _root.xmlfile.load("pjp.xml");
                          _root.xmlfile.ignoreWhite = true;
                          _root.xmlfile.onLoad = function(success) {
                              if (success) {
                                  trace("xml loaded...");
                                  makeArray();
                              } else {
                                  trace("xml load failed...");
                              }
                          };
                      }

                       

                       

                       


                      // ------------------------------------------------------------- [ Convert to multi-dimensional arrays ] -------
                      /*
                          navButtons = [
                          ["submenu1_mc",
                              ["galleries_mc", "GALLERIES"],
                              ["advertising_mc", "ADVERTISING", 0],    // [button clip, button title, image category]
                              ["editorial_mc", "EDITORIAL", 1],
                              ["lifestyle_mc", "LIFESTYLE", 2],
                              ["personal_mc", "PERSONAL", 3],
                              ["manipulation_mc", "MANIPULATION", 4],
                              ["clients_mc", "CLIENTS", 5],
                              ["viewall_mc", "VIEW ALL", 6]
                          ],
                          ["submenu2_mc",
                              ["showreels_mc", "SHOWREELS", ],
                              ["show1_mc", "SHOWR SUB ONE", 7],
                              ["show2_mc", "SHOWR SUB TWO", 8],
                              ["show3_mc", "SHOWR SUB THREE", 9]
                          ],
                          ["studios_mc", "STUDIOS"],
                          ["shadowplay_mc", "SHADOWPLAY"],
                          ["bio_mc", "BIO"],
                          ["contact_mc", "CONTACT"]
                      */

                       

                      makeArray = function() {
                         
                          pages = new Array();
                          nodes = xmlfile.firstChild.childNodes;//[0].childNodes;
                             
                          // Build navigation menu array
                          navButtons = new Array();
                          imageArray = new Array();
                          var categoryNum = 1;  // first category (gets incremented in loop)
                         
                          // Loop through 'menuOption' XML nodes
                          for(i=0;i<nodes.length;i++) {
                             
                              var menuOption = nodes[i];
                             
                              navButtons[i] = new Array();
                         
                              // Process options with submenus
                              if (menuOption.attributes.submenumc) {
                                 
                                  navButtons[i][0] = menuOption.attributes.submenumc;  // submenu clip
                                  navButtons[i][1] = new Array();
                                  navButtons[i][1].push(menuOption.attributes.buttonmc);  // submenu button clip
                                  navButtons[i][1].push(menuOption.attributes.name);  // submenu button title
                                 
                                  // Submenu options (categories)
                                  var subOptions = menuOption.childNodes;
                                 
                                  for (var j=0; j<subOptions.length; j++) {
                                     
                                      navButtons[i][j+2] = new Array();
                                      navButtons[i][j+2].push(subOptions[j].attributes.buttonmc);
                                      navButtons[i][j+2].push(subOptions[j].attributes.name);
                                      //
                                      navButtons[i][j+2].push(categoryNum);  // category number for this button
                                     
                                      // Add items (images/video) for this category to 'imageArray'
                                      var subItems = subOptions[j].childNodes;
                                     
                                      imageArray[categoryNum] = new Array();
                                      imageArray[categoryNum].push(subOptions[j].attributes.name);  // category name at index 0
                                     
                                      //trace(subOptions[j].attributes.name);
                                     
                                     
                                      // Add linkage
                                      if (!subItems.length) {
                                          navButtons[i][j+2].push(subOptions[j].attributes.linkage);
                                          //trace (subOptions[j].attributes.linkage);
                                      }
                                     
                                     
                                      for (var k=0; k<subItems.length; k++) {
                                          var client = subItems[k].childNodes[0].firstChild.nodeValue;
                                          var text = subItems[k].childNodes[1].firstChild.nodeValue;
                                          var file = subItems[k].childNodes[2].firstChild.nodeValue;
                                          var type = subItems[k].childNodes[2].nodeName;
                                          //
                                          imageArray[categoryNum].push({client:client, text:text, file:file, type:type});
                                      }
                                      categoryNum++;
                                  }
                                 
                              } else {
                                 
                                  // Process options without submenus
                                  navButtons[i] = new Array();
                                  navButtons[i].push(menuOption.attributes.buttonmc);  // submenu button clip
                                  navButtons[i].push(menuOption.attributes.name);  // submenu button title
                                  navButtons[i].push(menuOption.attributes.linkage);  // submenu button page linkage
                                 
                              }
                             
                          }
                         
                          // Clean up
                          delete nodes;
                          delete xmlfile;
                         
                          // XML loaded and processed
                          doNavigation();

                       

                      };

                       

                      loadXML();

                       

                       

                       

                      This is the AS for my xml page can someone see why it would be giving me that message?