Hi im newbbi in this forum, but a have some expert ask.
I have to translate and old AS script (Flash 4), to a new AS script (Flash MX), how can i do this?
ive been programing only on AS from MX, i dont know anithing about Flash 4.
Most Flash 4 syntax is deprecated and not used anymore.
In flash go to Window/Reference to open the AS Reference panel. Check out the certain things that are used in the Flash 4 syntax and then check out the Flash MX equivalent (I believe it usually says it at the end of the description).
A lot of times when updating from Flash 4 to Flash MX whatever it is you are trying to do doesn’t work anymore. Sometimes for reasons unknown, othertimes is because of the way it is pulled off.
Depending on the file it could take you a long time to translate, so good luck
tellTarget is replaced with the dot syntax as well…
[AS]tellTarget(target){
gotoAndPlay(3);
}
//becomes
target.gotoAndPlay(3);[/AS]
eval changed to this…
[AS]eval(variable)
//becomes
this[variable][/AS]
You can replace this with the proper timeline target (_parent, _root, this._parent, _parent._parent, it goes on forever…lol)
I agree, but if he doesn’t know enough AS to recreate the effect on his own, then his best chance is trying to re-write it with some updated syntax :-\
And if both methods fail then he/she is getting too ahead of themselves and should slow down. The whole crawl before you can walk and walk before you can run theory goes here.