Skip to main content
July 3, 2010
Question

How do I change an AS2 file to an AS3 file?

  • July 3, 2010
  • 3 replies
  • 1290 views

I have just started learning Flash, and I have been doing some online tutorials. They told me to create AS2 files for the tuts. I now started on my own project, and I created an AS2 file to do it, but now I am reading that I really should just learn AS3 because it is much more efficient. I have put a lot of work into my project, but I have not created any action script yet. It is all art and pathing right now. So I think this would be the best time to switch it over to AS3 if I can. First off: can I? And Second: How?

Thanks.

This topic has been closed for replies.

3 replies

July 3, 2010

Thanks.

July 3, 2010

Yes, you can change to as3 - especially if you haven't put any code in place yet. as3 is a lot different than 2 but it is _much_ better in pretty much every way - though it's different enough that it's got a bit of a learning curve if you've been doing 2 for any length of time. 3 is more like Java, or C# and runs a lot faster than 2 as well. If you're new to Flash then just learning 3 is definitely the way to go - no sense learning a language that is now quite outdated.

There are lots of online tutorials and a good many books... just start doing some tutorials - search for ones hat deal with the problem at hand and learn as you need to. When you have specific questions just come here and ask - there are lots of people on here that will help you out when you're stuck.

July 3, 2010

Ok, I went to Flie, Publish Settings, and in the Flash tab I changed the AS2 to AS3 and hit "ok". Is that all I have to do?

Ned Murphy
Legend
July 3, 2010

Yes, that's all you have to do to change it from an AS2 file to an AS3 file (only as a file though).  If you had any AS2 code in it that is not the same in AS3, it won't work, but AS3 error reporting will likely let you know about it when you try to run the file.

Petro_O__Bochan
Inspiring
July 3, 2010

AS3 is a superset of AS2 and can be easily converted. AS3 to AS2 is a much harder shift language wise. This resource will get you started:

http://www.adobe.com/devnet/actionscript/as3_migration_table.html