I've only skimmed the messages and I don't have any practical experience with this issue ( so possibly I am talking rubbish) but I don't think anyone so far has mentioned super.

I wonder if this approach is of any use.

public function set _yscale( value:Number ):Void
   {
          super._yscale = Number;
       //your code :)
   }

Andy


----- Original Message ----- From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, January 19, 2007 12:37 AM
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2


Anybody has any other idea ?

BLITZ | Patrick Matte - 310-551-0200 x214


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Matte | BLITZ
Sent: Thursday, January 18, 2007 4:19 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2

No I've tried that but it doesn't work unfortunately, I've also
overridden the enabled setter before but the _xscale and _yscale setters
seem to be different from the enabled setter.

What I want to do is not scale the movieClip at all and scale redraw a
bitmapData inside of it.

BLITZ | Patrick Matte - 310-551-0200 x214


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Thursday, January 18, 2007 3:50 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Override _xscale and _yscale setter in AS2

Hello :)

Yes you can :) Try this code (not tested)


class Test1 extends MovieClip
{

    /**
     * Constructor
     */
    function Test1()
    {

    }

   public function get _xscale ():Number
   {
        return _xscale_ ;
   }

   public function set _yscale( value:Number ):Void
   {
          __xscale__ = value ;
         // your code :)
   }

   private var _xscale_ = MovieClip.prototype._xscale ;

}

I use this technik in LUnAS the extension of VEGAS my framework
OpenSource
with the "enabled" property... it's possible it's work with the _xscale
property.

NB 1 : Vegas project : http://vegas.riaforge.org/
NB 2 : the AbstractComponent class in LunAS with this hack over the
enabled
property :
http://svn.riaforge.org/vegas/AS2/trunk/src/lunas/display/components/Abs
tractComponent.as



EKA+ :)




2007/1/19, Patrick Matte | BLITZ <[EMAIL PROTECTED]>:

In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?

_______________________________________________
[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