PDA

View Full Version : AS2 > AS3 translations?



Kappa
November 11th, 2009, 03:18 AM
is there a site out there that has a translation from all the common AS2 commands?

I'm just learning AS3 now and i have no idea how to do the basic things such as _root.mc.loadMovie("asd.swf"); anymore

Gnoll
November 11th, 2009, 03:29 AM
I think the issue would be the inefficiency of the translation, translating directly from as2 to as3 would probably not use as3 to it's best potential.

As for that specific code I suppose this will achieve that purpose.



var loader:Loader = new Loader();
loader.load(new URLRequest("asd.swf"));
stage.addChild(loader);

cjke.7777
November 11th, 2009, 07:25 AM
I agree with Gnoll completely, AS2 --> AS3 isn't a simple translation where you just change all _x to x.

Its essentially a change in methodology as well, to utilise a more OO'ed and structured way of coding, it does make it alot harder though! But it will be worth it.

jloa
November 11th, 2009, 07:39 AM
Try this one first: http://tinyurl.com/yhkb9j7

For eg u could have found this link in 'bout 5 seconds http://jobemakar.blogspot.com/2007/05/convert-actionscript-2-to-actionscript.html

Krilnon
November 11th, 2009, 07:53 AM
Well, there is this page: http://livedocs.adobe.com/flex/3/langref/migration.html

excogitator
November 11th, 2009, 08:01 AM
This might be of some help, though I haven't tried it out myself.
http://jobemakar.blogspot.com/2007/05/convert-actionscript-2-to-actionscript.html

You can check the below member's site also to get a grip of AS3
http://www.senocular.com/flash/tutorials/as3withflashcs3/

Kappa
November 11th, 2009, 08:25 AM
thanks for the tips

i have a long road ahead of me :(