Hi, I've always faced this problem, but I don't know how to give a definitive
solution.
Parameters of type paramarray increase their nesting from one call to another,
for example:
Public class ControllerFirst extends ControllerBase
{
...
private function fnmove():void{
var foo:String = "hello";
reevalAccessControl(foo);
}
...
override protected function reevalAccessControl(... args):void{
// In the first call, from fnmove "arguments" you have an
element [0] with a value "hello"
super.reevalAccesControl(args);
...
}
}
Public class ControllerBase
{
...
protected function reevalAccessControl(... args):void{
// When this function is called from ControllerFirst arguments
has an element [0] but this element in turn is an array of 1 element and the
value "hello" is found in args[0][0] on a second level
...
}
...
}
I don't know if I have explained myself... I understand why it happens but I
wonder if there is a way to pass this type of arguments so that the nesting
level 0 is respected and a level is not added for each call.
Thx.
Hiedra