I know AddProperty was useful in creating getter/setters when defining AS1 
based classes

ie
//CODE BEGIN
//create a new square class
_global.Square= function(side){
this.side=side

this.addProperty("area",this.getArea,this.setArea);
}


Square.prototype.setArea=function(area){
this.side=math.sqrt(area);
}

Square.prototype.getArea=function(){
return Math.pow(this.side,2);
}

//CODE END

Is this same AddProperty technique useful with AS2 classes?



[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
             - Bruce Mau,'LifeStyle'
_______________________________________________
[email protected]
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