# \[Flash 8\] old actionscript doesn't work in flash... Help please

**URL:** https://forum.kirupa.com/t/flash-8-old-actionscript-doesnt-work-in-flash-help-please/257821
**Category:** flash
**Created:** [April 17, 2008, 1:35pm UTC](https://forum.kirupa.com/t/flash-8-old-actionscript-doesnt-work-in-flash-help-please/257821 "2008-04-17T13:35:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RHA](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@RHA](https://forum.kirupa.com/u/RHA)
#### Post date: [April 17, 2008, 1:35pm UTC](https://forum.kirupa.com/t/flash-8-old-actionscript-doesnt-work-in-flash-help-please/257821/1 "2008-04-17T13:35:41Z")

</div>

Hello,  
I have found a old flash file with endles scrolling gallery. I want to use this and edit it in flash 8 but it doesn’t work. So I hope that someone can help me out on this.  
When i want to test the movie an error massage apears saying:

> 

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 8: Syntax error.  
setProperty “a” add i,\_x,mx;  
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: Syntax error.  
set “a” add Number(i) add “:t1”, i;  
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 7: ‘)’ or ‘,’ expected  
mx = getProperty(“a” add i, \_x);  
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 8: ‘)’ or ‘,’ expected  
setProperty (“a” add i, \_x, mx-15);  
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 14: Unexpected ‘}’ encountered  
}  
Total ActionScript Errors: 5 Reported Errors: 5

Here’s the action script (It’s has 3 frames in the root):  
Frame 1:

```auto
 
mx = getProperty("a1",_x);
mw = getProperty("a1",_width);
itemnr = 5;
for(i=15; i<=itemnr; i++)
{
mx = (mx + mw) + 15;
setProperty "a" add i,_x,mx;
set "a" add Number(i) add ":t1", i;
}

```

frame 2:

```auto
 
a1.onRelease = function() {
mc = _root.a1._x
if (mc>0 and mc<210)
 {
 for (i=1; i<=itemnr; i++) 
    {
  mx = getProperty("a" add i, _x);
  setProperty ("a" add i, _x, mx-15);
 
 }
 
}
}
if (mc>220 and mc<400) 
{
 for (i=1; i<=itemnr; i++) 
    {
  mx = getProperty("a" add i, _x);
  setProperty ("a" add i, _x, mx-15);
 }
}
 

```

frame 3:

```auto
 
gotoAndPlay (2);

```

I hope that someone here can help me out…

Greetz
