# Desparate to update older actionscipt - won't work in newer players

**URL:** https://forum.kirupa.com/t/desparate-to-update-older-actionscipt-wont-work-in-newer-players/170067
**Category:** Uncategorized
**Created:** [November 22, 2005, 3:25pm UTC](https://forum.kirupa.com/t/desparate-to-update-older-actionscipt-wont-work-in-newer-players/170067 "2005-11-22T15:25:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![weegekid](https://avatars.discourse-cdn.com/v4/letter/w/e8c25b/32.png) [@weegekid](https://forum.kirupa.com/u/weegekid)
#### Post date: [November 22, 2005, 3:25pm UTC](https://forum.kirupa.com/t/desparate-to-update-older-actionscipt-wont-work-in-newer-players/170067/1 "2005-11-22T15:25:05Z")

</div>

I’m trying to use a Flash file (this one–\> [url=][http://www.simplethoughts.com/Reflection.fla](http://www.simplethoughts.com/Reflection.fla)) for a current project. Unfortunately the file and it’s actionscript is pretty old and as a result won’t work in newer flash players.

There’s not a lot of scripting in it and the functionality seems pretty basic. Can the code be easily updated? Or is it a matter of completely recoding everything?

There are only three frames (within the main mc):

Frame 1:

```auto
tracer = 1;
tracerx = 0;
speed = 1.15;
direction = 1;
while (Number(i)<33) {
set(i add ":x", getProperty(i, _x));
i = Number(i)+1;
}

```

Frame 2:

```auto
 
if (tracer eq 1) {
x1 = getProperty("tracer", _x);
} else {
x2 = getProperty("tracer", _x);
tracer = 1;
}
tracerx = x1-x2;
// ===first loop store all past coordinates of the slices
//
i = 1;
while (Number(i)<33) {
set(i add ":flexa", eval(i add ":flexb"));
i = Number(i)+1;
}
//
// ===setting of flex the variable that simulate a cyclic movement
//
flex = Number(Number(flex)+Number((speed*direction)))+Number(random(3));
if (Number(flex)<Number(-5)) {
direction = 1;
}
if (Number(flex)>5) {
direction = -1;
}
//
// ===the second loop uses the new value of flex and the previous stored datas
// ===the result is applied to the position of the slices
//
2:flexb = Number(flex)+Number(tracerx);
j = 3;
while (Number(j)<33) {
set(j add ":flexb", eval(j-1 add ":flexa"));
setProperty(j, _x, eval(j add ":x")+Eval(j add ":flexb"));
j = Number(j)+1;
}
x1 = x2;

```

Frame 3:

```auto
tracer = 0;
gotoAndPlay(2);

```

Can anyone offer any suggestions? I’m not a great scripter (I get by) and can’t figure out how I would recode this.

Thanks!
