Since you don't want the default _xscale and _yscale behavior, don't use them
;-)
As has already been suggested, use/create your own getter/setters and do
whatever you want.
private var __xscale:Number = 100;
private var __yscale:Number = 100;
private function setScale(){
// perform custom scaling here
}
public function get xscale():Number {
return this.__xscale;
}
public function set xscale(val:Number) {
this.__xscale = num;
this.setScale();
}
public function get yscale():Number {
return this.__yscale;
}
public function set yscale() {
this.__yscale = num;
this.setScale();
}
This is basically the same as what v2 components do with _width, _height,
_visible (width, height, visible).
regards,
Muzak
----- Original Message -----
From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, January 19, 2007 1:37 AM
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2
Anybody has any other idea ?
BLITZ | Patrick Matte - 310-551-0200 x214
_______________________________________________
[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