  | |  | Class PROPERTIES | Class PROPERTIES
2004-02-14 - By Milan Zigmond
Back How can be class property reached from function which is in the class
function, like:
class MyClass
{
private var __myProperty:String = "milan ";
function MyClass ()
{
}
public function traceProperty ()
{
var innerFunction:Function = function ()
{
trace (__myProperty);
};
innerFunction ();
}
}
Then if I call in .fla:
var myClass=new MyClass();
myClass.traceProperty();
I get undefined result in output.
How can I get the value of __myProperty in the function "innerFunction " ???
Thanks a lot
milan
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104256
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |