# AS code help

**URL:** <https://forum.kirupa.com/t/as-code-help/100239>\
**Category:** Uncategorized\
**Created:** [January 27, 2004, 6:13am UTC](https://forum.kirupa.com/t/as-code-help/100239 "2004-01-27T06:13:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoloDesignz](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@SoloDesignz](https://forum.kirupa.com/u/SoloDesignz)\
**Post date:** [January 27, 2004, 6:13am UTC](https://forum.kirupa.com/t/as-code-help/100239/1 "2004-01-27T06:13:29Z")

</div>

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