7 Replies Latest reply on May 10, 2010 4:55 PM by kglad

    Flash CS4 and XML

    larellG

      Hi,

       

      I'm using Flash CS4,i'm having problems creating a xml file to work

      with the action script for a 3D carousel. I've created folder for

      the image png file and icons xml using a normal notepad in windows

      for file to work with the flash action script 2.0, but in output menu the msg says

      Error opening URL 'file:///C|/Users/User/Documents/caroselFile/icons.xml'.

      They're no compiler errors. Should the notepad be xml editor? I have been

      told i can use a normal notepad.

       

      Maybe i should of saved it in the fla directry but don't know where

      it is.

       

      Thanks Larell

        • 1. Re: Flash CS4 and XML
          kglad Adobe Community Professional & MVP

          show your xml file.

          • 2. Re: Flash CS4 and XML
            larellG Level 1

            <icons>

            <icon image="icon1.png" tooltip="" />

            <icon image="icon2.png" tooltip="" />

            <icon image="icon3.png" tooltip="" />

            <icon image="icon4.png" tooltip="" />

             

            </icons>

             

            Message was edited by: larellG

            • 3. Re: Flash CS4 and XML
              kglad Adobe Community Professional & MVP

              why are you using an absolute path to your xml file?

              • 4. Re: Flash CS4 and XML
                larellG Level 1

                I dont know, thats what i thought flash tutorial instructed me to be to do. So what do i do? Please.

                • 5. Re: Flash CS4 and XML
                  kglad Adobe Community Professional & MVP

                  you can use an absolute path but the chances of an error are much greater than when using a local path.  in addition, your absolute path won't work as soon as you deploy your swf (on a server or as an air or as a projector file).

                   

                  use a relative path.  the easiest is to put the xml file in the same directory with your html, swf and fla.  you can then use:

                   

                  yourxml.load("icons.xml");

                   

                  i like to keep xml files in an xml subfolder of the folder that contains my html,swf and fla.  in that situation you would use:


                  yourxml.load("xml/icons.xml");

                   

                  but whenever you have a path problem, the best bet after a few checks and rechecks of spelling is to put the file to be loaded in the same directory as all the flash files and make sure you can get that working.  then start moving files to create a cleaner more logical setup, if that suits your needs.

                  • 6. Re: Flash CS4 and XML
                    larellG Level 1

                    Hi,

                     

                     

                     

                    I will try that thanx

                     

                    Date: Mon, 10 May 2010 15:30:04 -0600

                    From: forums@adobe.com

                    To: larell@live.co.uk

                    Subject: Flash CS4 and XML

                     

                    you can use an absolute path but the chances of an error are much greater than when using a local path.  in addition, your absolute path won't work as soon as you deploy your swf (on a server or as an air or as a projector file).

                     

                    use a relative path.  the easiest is to put the xml file in the same directory with your html, swf and fla.  you can then use:

                     

                    yoururlloader.load("icons.xml");

                     

                    i like to keep xml files in an xml subfolder of the folder that contains my html,swf and fla.  in that situation you would use:

                     

                     

                    yoururlloader.load("xml/icons.xml");

                     

                    but whenever you have a path problem, the best bet after a few checks and rechecks of spelling is to put the file to be loaded in the same directory as all the flash files and make sure you can get that working.  then start moving files to create a cleaner more logical setup, if that suits your needs.

                    >

                    • 7. Re: Flash CS4 and XML
                      kglad Adobe Community Professional & MVP

                      you're welcome.

                       

                      p.s.  please mark this thread as answered, if it is.