View Full Version : Need Help Trasnlate old AS to a New AS !!!!!!!!!!!
casperxs
June 19th, 2003, 02:51 PM
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?
i`ve been programing only on AS from MX, i don`t know anithing about Flash 4.
Please HELP ME !!!!!!!!!!!!
casperxs
June 19th, 2003, 03:25 PM
ok, or tell me some instruction (in flash 4), like the loadMovie on MX
lostinbeta
June 19th, 2003, 03:44 PM
That is quite a task you have ahead of you.
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 ;)
Here are some tips...
setProperty is replaced with the new dot syntax
setProperty(target, property, value);
//becomes
target.property = value;
tellTarget is replaced with the dot syntax as well...
tellTarget(target){
gotoAndPlay(3);
}
//becomes
target.gotoAndPlay(3);
eval changed to this..
eval(variable)
//becomes
this[variable]
You can replace this with the proper timeline target (_parent, _root, this._parent, _parent._parent, it goes on forever...lol)
pom
June 19th, 2003, 03:59 PM
You're better off rewriting the whole thing, casperxs. There are too many things you'd have to update :-\
lostinbeta
June 19th, 2003, 04:06 PM
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.
casperxs
June 19th, 2003, 04:55 PM
ok iam "he" and, thanks for all ur replys, i will try to lern more about flash 4
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.