  | |  | 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 -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |