I have this code, in one .fla it works perfectly with no errors, in another .fla errors come up saying… “Error Symbol=code, layer=action/code, frame=5:Line 1: Unexpected ‘/’ encountered
/:howmany = 2;”
which isnt letting my use the “/” there, but the other .fla which is just the same, i but a diff project works perfectly…
I modified this script in a blank document, got it working, then took all the peices and put it into my project, and that error comes up… well heres part of the code, can anyone help me out??
[AS]/:howmany = 2;
/:try = 0;
index = 1;
set("/:target_x" add index, getProperty ("/target" add index,_x));
set("/:target_y" add index, getProperty ("/target" add index,_y));
while (Number(index)<=Number(/:howmany)) {
set("/:object_x" add index, getProperty ("/object" add index,_x));
set("/:object_y" add index, getProperty ("/object" add index,_y));
index = Number(index)+1;
}
[/AS]
thanks alot!!!