9 Replies Latest reply on Jun 23, 2016 12:49 PM by doronz49506813

    CS5.5 can't find the XML Connector Component - what give

    jdhughen Level 1

      I'm working on a actionscript 2 file in flash CS5.5 and can't find the XML Connector Component any place. What happened to it?  How are you suppose to get a round it missing. Is there someplace I can download the .swc file and install it? converting to action script 3 is not an option in this case.

       

      thanks

       

      Joel

        • 1. Re: CS5.5 can't find the XML Connector Component - what give
          kglad Adobe Community Professional & MVP

          use the urlloader class to load an xml file.

          • 2. Re: CS5.5 can't find the XML Connector Component - what give
            jdhughen Level 1

            Thanks for the reply...

            But I can't find any information on using the URLLoader class in Actionscript 2. This is an Actionscript 2 project that I don't have the time or the knowlage to try convert to AS3.  What I need is the AS2 XML Connector Component, I just can't find it anyplace in CS5.5. Where did they move it to? or is it gone?. The cs5.5 help files link me over to the AS2 reference guide. I found lots of references to it in the AS 2 guide in the cs5.5 help files but they all start with....

             

            1. Confirm that your Publish Settings specify ActionScript 2.0.
            2. Add an instance of the XMLConnector component to your application and give it an instance name.

             

            So the problem is, I can't find an "instance" of the XML Connector Component any place in flash CS5.5. I do see all the parameters and the trigger method listed in the script window but can't find the "component". All the sample scripts I've found on using the XMLconnect have a line to import the component and when I try to use them it throws an error. 

             

            In fact I can't find any of the "Data" components that were in my older copy of flash. So I asume that Adobe , in their collective wisdom, decided we didn't need them any more so I guess the question needs to be...

             

            Given that this project must use actionscript 2, and that the XML connector Component appearently doesn't exsist any more. How do I do the job it did to get an XML file into my AS2 flash project. if I can get it loaded I can use the inspector, as I use to I assume, to bind it. Any code example or links to some would be appreciated.

             

            thanks

             

            Joel

            • 3. Re: CS5.5 can't find the XML Connector Component - what give
              kglad Adobe Community Professional & MVP

              with as2, use the xml class.

              • 4. Re: CS5.5 can't find the XML Connector Component - what give
                jdhughen Level 1

                Thanks, I will give it a shot.

                It's not as easy as using a component and adujucting properties but i think I can make it work

                 

                Thanks

                 

                Joel

                • 5. Re: CS5.5 can't find the XML Connector Component - what give
                  kglad Adobe Community Professional & MVP

                  it's pretty straight-forward:

                   

                  var xml:XML =  new XML();

                  xml.onData = parseXML;

                  xml.loadXML("yourxmlfile.xml");

                   

                  function parseXML(src):Void{

                  trace(src)

                  }

                  • 6. Re: CS5.5 can't find the XML Connector Component - what give
                    jdhughen Level 1

                    I got the XML class to work but Wow, what a royal PITB. Since using the XML class is not a "component" then I can't use the component inspector to parse and bind the data. Unless I missed something I have to now manually code all this.  I can't believe I have to spend over an hour writing/testing code to load and the parse this xml file when I use to be able to load the xml file , parse, and bind the data to my txt boxes with just a few clicks of the mouse using the XML connector and the component inspector. it all took < 5 min and the only code I had to write was the trigger(). Why did they make it so much harder, what am I missing? Please tell me that there is some kind of code assistant or other component that can take care of this. I'm an animator/designer and while I can usually figure out how to write enough code to get what i want or to get in trouble, it's really not what I want to spend my time on. Flash use to be great in letting me point and click passed writting a lot of code. Can someone please explain why they got rid of these useful components? what is the logic here ??  How did this improve the user experience ??

                     

                    Joel

                    • 7. Re: CS5.5 can't find the XML Connector Component - what give
                      jdhughen Level 1

                      Thanks, As I mentioned I did get it to work. now I'm trying to figiure out how to bind the data to my text boxes and I'm having to figure out all the child heirarcy stuff and how that works. I'm close but no cigar yet . I guess it will be a benifit to understand how the nuts and bolts work but it sure was a lot easier to just click on this tag and say put it in this text box and be done.  thanks for your help and sorry for my little soap box outburst

                       

                      Joel

                      • 8. Re: CS5.5 can't find the XML Connector Component - what give
                        kglad Adobe Community Professional & MVP

                        you're welcome.

                         

                        you only need to understand a few things (attributes, childNodes, firstChild, nextSibling and nodeValue) and use trace() to make sure you are where you want to be in the hierarchy.

                        • 9. Re: CS5.5 can't find the XML Connector Component - what give
                          doronz49506813

                          DEAR JOEL,

                          This is Doron Zur (from The State Of Israel).

                          Although your post is a rather old one (2012),

                          perhaps this will help a lot of other frustrated a.s. 2 CS5.5 and CS6 Flash programmers encountering a similar situation.

                          Why all the painstaking code migration and unnecessary needless soap box outburst on your part.

                          I understand your frustration and need to re-adjust to new coding in a time-framed space of time, not always having ample time on your hands and as you say: "I'm an animator/designer and while I can usually figure out how to write enough code to get what i want ... it's really not what I want to spend my time on".

                          You are absolutely right and I quite understand you.

                          Do you have Licensed Macromedia Flash Mx 2004 OR Mx Pro 2004 ?

                          If not try buying old Macromedia Flash Mx 2004 / Pro 2004 from vendors retaining old Macromedia software.

                          Just save the old Macromedia Flash Mx Programmes in the new Adobe

                          CS 5.5 /6 and the XML Connector Component instance will automatically migrate to the CS 5.5 /6.

                          It is indeed a common rule in the computer software world: New Software will always accept older software but Not the other way round !

                          Continue with coding from CS 5.5 /6.

                          No sweat no tears...

                          Well I guess in the years that passed since 2012 you found out some kind of solution, still this will help other programmers in Flash should they run into a similar situation as you have run into.

                          Bye, Good Luck, Happy animation and programming,

                          Doron Zur, Israel.