I've just been given some files by a client that are coded in AS2/Flash 7.
I need to embed them in an AS3/Flash 10 application for a new site.
Does anyone know if this is possible? I've asked around the office and people are shaking their heads but no-one is quite sure...
Any help would be much appreciated!
you can "load" an as2 swf into an as3 swf and the as2 swf will work without problem.
If by embedding you mean you want to import the file into the library of another file, then that is not a viable solution... regardless that AS2 and AS3 cannot be mixed in the same file, when you import an swf you lose all the actionscript in it. As kGlad mentions, you can load an AS2 file during run-time... use the Loader class for that.
Ah OK thanks guys, have written a test case that appears to be working although admittedly with a few errors to do with where the older files that i'm loading are trying to load other relational files in to continue the game.
Thanks for your help!