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:
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:
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:
gotoAndPlay (2);
I hope that someone here can help me out…
Greetz