Hello :)

the _ notation is used to do the difference between private and public ...

if you create a virtual property with get/set used in private the _ notation
:


class Test
{

   function Test()
   {

   }

   /**
    * Internal private value.
    */
   private var _value:Number ;

   public function get value():Number
   {
            return _value ;
   }

   public function set value( n:Number ):Void
   {
            _value  = n ;
           // do something here , notify an event, update the class etc...
else don't use a getter/setter property if you want just used the value of
this property.
   }


}

And in your code :

var t:Test = new Test() ;
t.value = 2 ;
trace(t) ;

EKA+ :)

2006/12/1, Matthias Dittgen <[EMAIL PROTECTED]>:

The set/get (former addProperty) methodology seemed to offer the
solution, but now I see, that I can implicit (not writing
uio.setSomething, but uio._something) set a value, but _something is
private and thus code completion etc. will not work.

Matthias
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to