7 Replies Latest reply on Jun 25, 2013 6:18 AM by kglad

    How do I import actionscript snippets into Flash CC?

    Express1999

      I have a folder of actionscript snippets that I pull from and I used to use the fly-out menu of the Actions pallet to import them but don't see where I can import a snippet now in Flash CC. I see where to import XML but no regular AS snippets.

      Thanks!

        • 1. Re: How do I import actionscript snippets into Flash CC?
          kglad Adobe Community Professional & MVP

          click widow>code snippets>click the code snippets panel's options (gear) combobox>click import code snippets xml.

          • 2. Re: How do I import actionscript snippets into Flash CC?
            Express1999 Level 1

            I found the "gear" and saw the import XML but I am trying to import AS (actionscript) snippets. With CS4/6 I could open the Actions pallet and click the "fly-out" menu and choose "import script." I can't seem to find any such option in Flash CC. I don't need XML snippets imported, I need to import actionscript snippets.

            • 3. Re: How do I import actionscript snippets into Flash CC?
              kglad Adobe Community Professional & MVP

              actionscript snippets are in xml format.  that's how you import and export code snippets.

               

               

              older flash versions also had the shortcuts to import and export script option in the actions panel that did nothing more than open and save actionscript (.as) files.  that feature was close to worthless, because you can use just open (file>open, ctrl-o) whatever actionscript files you want to use, so it was dropped.

               

              again, to do what you want just open (file>open, ctrl-o) whatever actionscript files you want to use.

              1 person found this helpful
              • 4. Re: How do I import actionscript snippets into Flash CC?
                Express1999 Level 1

                So the easy way I'm used to doing it, no longer is available. And I have to open the AS to copy/paste it into the Actions? I'm still not understanding why in the older versions, I could import a "script" with a .as ext and now I cannot.

                 

                My AS is not in xml format. I have a folder of AS that my group use/share and it was very simple and easy to import a script when needed. It worked and we used it a lot. Why remove an option like that?

                • 5. Re: How do I import actionscript snippets into Flash CC?
                  kglad Adobe Community Professional & MVP

                  So the easy way I'm used to doing it, no longer is available.

                  correct

                   

                  And I have to open the AS to copy/paste it into the Actions?

                  yes.

                   

                  I'm still not understanding why in the older versions, I could import a "script" with a .as ext and now I cannot.

                  because the actionscript editor is totally new and the import script option offers no benefit over opening your as file and copying and pasting.  at most, you used to save two steps;  you didn't have to copy and paste.

                   

                  but i'm skeptical that you even saved those steps because, unless you had one actionscript action per file (which would have been a major work-flow stopper), you still had to delete the unneeded parts of your master actionscript file.

                   

                  the way it should work is you have all your code snippets in one master file and you should copy and paste the needed snippets from your master snippets file to your actions panel.  and to do that you should open your master snippets file in another panel and copy from that other panel to your actions panel.  that would have been a better work-flow in older versions and is still available in flash cc.

                   

                  My AS is not in xml format.

                  i understand.

                   

                  I have a folder of AS that my group use/share and it was very simple and easy to import a script when needed. It worked and we used it a lot. Why remove an option like that?

                  you're probably one of the few people that ever used that option.

                  1 person found this helpful
                  • 6. Re: How do I import actionscript snippets into Flash CC?
                    Express1999 Level 1

                    OK. Thanks for clearing this up for me. I get it now even though I'm not too happy about it. We use Flash templates to create online courses and have a resource folder of 33 individual scripts we would pull from and edit for specific actions. I know I can put these into the Code Snippets pallet under a custom folder so I will begin work on this.

                    Again, thanks for the time to break it down for me.

                    • 7. Re: How do I import actionscript snippets into Flash CC?
                      kglad Adobe Community Professional & MVP

                      you're welcome.

                       

                      as i think you know (but just to make sure), you could streamline your work-flow and save time (unless you use only one of the 33 scripts per project) by putting all 33 in one master as file, opening that master in an as panel and copying and paster the snippet when needed.

                       

                      or, even better, which i think you mentioned, create proper xml formatted actionscript snippets and you can use them in the flash snippets panel.

                      1 person found this helpful