How to Convert As2 to As3

Written by sean farmer
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Convert As2 to As3
(Thinkstock Images/Comstock/Getty Images)

Originally developed by Macromedia, the animation software Flash utilised a new type of language called Actionscript. Once Flash was purchased by Adobe, the language was completely rewritten into the modern Actionscript 3. Since the programming language was completely rewritten, there is no way to convert the previous Actionscript into the new Actionscript 3 without rewriting the code in the original FLA file. To convert the old code into the new language, a strong understanding of Actionscript 2 and Actionscript 3 is required.

Skill level:
Easy

Other People Are Reading

Things you need

  • Adobe Flash CS3 or later

Show MoreHide

Instructions

  1. 1

    Open the original .fla file in Adobe Flash CS3. Open the file's Actionscript editing panel, located under the "Window > Actions" menu on the main menu bar.

  2. 2

    Delete the old script. Make notes of each function and operation executed by the current script before you delete it.

  3. 3

    Open the "Publish Settings" window, located under the "File" menu on the main menu bar. Once open, select the "Flash" tab. Change the section marked "Script:" from Actionscript 2.0 to Actionscript 3.0. Click "OK" to save the settings and close the window.

  4. 4

    Enter the new script into the actions panel. Actionscript 3 is a event-listener-based language, meaning you will need to define each event, function and variable in different classes. Functions from Actionscript 2 will not work, but many have been renamed and simply require new event listeners and definitions.

  5. 5

    Save the .fla file as a Flash CS3 file.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.