Need Help Trasnlate old AS to a New AS!

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.

Please HELP ME !!!

ok, or tell me some instruction (in flash 4), like the loadMovie on MX

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 :wink:

Here are some tips…

setProperty is replaced with the new dot syntax

[AS]setProperty(target, property, value);
//becomes
target.property = value;[/AS]

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)

You’re better off rewriting the whole thing, casperxs. There are too many things you’d have to update :-\

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.

ok iam “he” and, thanks for all ur replys, i will try to lern more about flash 4