# Need Help Trasnlate old AS to a New AS!

**URL:** <https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575>\
**Category:** Uncategorized\
**Created:** [June 19, 2003, 6:51pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575 "2003-06-19T18:51:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casperxs](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@casperxs](https://forum.kirupa.com/u/casperxs)\
**Post date:** [June 19, 2003, 6:51pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/1 "2003-06-19T18:51:47Z")

</div>

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 !!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 7:25pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/2 "2003-06-19T19:25:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 7:44pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/3 "2003-06-19T19:44:55Z")

</div>

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

[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)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 7:59pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/4 "2003-06-19T19:59:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 8:06pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/5 "2003-06-19T20:06:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 19, 2003, 8:55pm UTC](https://forum.kirupa.com/t/need-help-trasnlate-old-as-to-a-new-as/23575/6 "2003-06-19T20:55:08Z")

</div>

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