I slightly changed hamtasc so that we can access private members of a
class inside a anonymous function, which is declared in the class. See
the example below. Inside function c i'm able to use ref.value now,
though value is private.
class TestLambdaAccess {
private var value:Number = 1;
private function b(){
var ref:TestLambdaAccess = this;
var c = function(){
trace(ref.value); //accessing value is possible
}
c();
}
public function TestLambdaAccess(){
b();
}
}
The rationale behinde this is, that i don't want to make members public,
only because i access them from a anonymous function. MMC works the same
in that regard.
Cheers,
Ralf.
--
MTASC : no more coffee break while compiling
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org