public function remove(u:Unit)
{
for (var i = 0; i < size; ++i)
}
The errors are:
1008: variable 'i' has no type declaration
1008: return value for function 'remove' has no type declaration
public function remove(u:Unit)
{
for (var i = 0; i < size; ++i)
}
The errors are:
1008: variable 'i' has no type declaration
1008: return value for function 'remove' has no type declaration
You have no braces after your for-loop declaration.
public function remove(u:Unit)
{
for (var i = 0; i < size; ++i)
{}
}
Also, perhaps size is not defined.
Please, in future use stackoverflow.com for pure programming type questions such as this.