RE: Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Patrick Matte | BLITZ
Now that is pretty clever ! Exactly what I need. Thanks !


BLITZ | Patrick Matte - 310-551-0200 x214

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

Hello Patrick,

PMB> Anybody has any other idea ?

owerriding or watch of properties is impossible.

Don't use extending. Use composition:

class Test1 {

 private var __mc:MovieClip;
 public function Test1(mc:MovieClip){
  this.__mc= mc
 }

 public function get _xscale ():Number {
  return this.__mc._xscale;
 }

 . etc

}



-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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
___
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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Muzak
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" 
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


___
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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-19 Thread Andrew J Kirkham
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" 
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 ?


___
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


Re[2]: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Iv
Hello Patrick,

PMB> Anybody has any other idea ?

owerriding or watch of properties is impossible.

Don't use extending. Use composition:

class Test1 {

 private var __mc:MovieClip;
 public function Test1(mc:MovieClip){
  this.__mc= mc
 }

 public function get _xscale ():Number {
  return this.__mc._xscale;
 }

 . etc

}



-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Shang

Interesting question!

I've tried a bit.

class MyMc extends MovieClip{
public function MyMc(){
trace("I'm on!");
}
public function set _xscale(xs){
super(xs);
_root.doBitmap(this);
}
public function set _yscale(ys){
super(ys);
_root.doBitmap(this);
}
}

My idea is that you only need to capture the setter part, that's when
the movieclip changes size. Then you call you bitmap function. The
super calls keeps the movilip scales intact.

Cheers!

/*
http://www.flashrevolution.net
*/

On 1/19/07, Patrick Matte | BLITZ <[EMAIL PROTECTED]> wrote:

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 ?
> ___
> 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
___
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


___
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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Patrick Matte | BLITZ
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 ?
> ___
> 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
___
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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Steven Sacks | BLITZ
Nevermind, you can't watch _xscale or _yscale.

BLITZ | Steven Sacks - 310-551-0200 x209
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks | BLITZ
> Sent: Thursday, January 18, 2007 4:16 PM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Override _xscale and _yscale setter in AS2
> 
> You can do it with enabled, but you can't with _xscale or _yscale.
> 
> You have to use a watcher to catch it and return oldVal.
> 
> 
> BLITZ | Steven Sacks - 310-551-0200 x209
>  
> 
> > -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/comp
> > onents/AbstractComponent.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 ?
> > > ___
> > > 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
> > 
> ___
> 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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Patrick Matte | BLITZ
It seems like you can't watch _xscale and _yscale

BLITZ | Patrick Matte - 310-551-0200 x214


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

You can do it with enabled, but you can't with _xscale or _yscale.

You have to use a watcher to catch it and return oldVal.


BLITZ | Steven Sacks - 310-551-0200 x209
 

> -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/comp
> onents/AbstractComponent.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 ?
> > ___
> > 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
> 
___
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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Patrick Matte | BLITZ
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 ?
> ___
> 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
___
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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Steven Sacks | BLITZ
You can do it with enabled, but you can't with _xscale or _yscale.

You have to use a watcher to catch it and return oldVal.


BLITZ | Steven Sacks - 310-551-0200 x209
 

> -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/comp
> onents/AbstractComponent.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 ?
> > ___
> > 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
> 
___
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


RE: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Patrick Matte | BLITZ
See I have a component which sets some movieClips _xscale and _yscale.

It works fine with MovieClip that contain vector graphics because they
scale nicely.

But with bitmap Graphics, scaling looks bad.

So I wanted to extend the movieClip class and override the _xscale and
_yscale setters so that instead of having the actual clip scale, a
smooth bimapData would be drawn at the new scale.



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 3:33 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Override _xscale and _yscale setter in AS2

In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread eka

if you overrides the properties the problem is to keep the resize effect on
the movieclip ?

EKA+ :)

2007/1/19, Thomas Fowler <[EMAIL PROTECTED]>:


Why not just make a getter and setter called XScale and a getter and
setter
called YScale in your subclass each returning and setting their respective
values?

- Original Message -
From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Thursday, January 18, 2007 5:33 PM
Subject: [Flashcoders] Override _xscale and _yscale  setter in AS2

In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
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


___
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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread eka

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/AbstractComponent.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 ?
___
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


Re: [Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Thomas Fowler
Why not just make a getter and setter called XScale and a getter and setter 
called YScale in your subclass each returning and setting their respective 
values?


- Original Message -
From: "Patrick Matte | BLITZ" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Thursday, January 18, 2007 5:33 PM
Subject: [Flashcoders] Override _xscale and _yscale  setter in AS2

In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
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


[Flashcoders] Override _xscale and _yscale setter in AS2

2007-01-18 Thread Patrick Matte | BLITZ
In AS2, is it possible to override the _xscale and _yscale setter in a
subclass of MovieClip ?
___
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