Re: [Flashcoders] AS2 known? bug with _yscale property when class extends MovieClip

2009-05-07 Thread Olivier Besson
it's probably the classical scope issue in as2: you set the value in a 
listener, or in a function which is passed as a parameter.
use "mx.utils.Delegate.create(this, yourFunction)" instead of 
"yourFunction" where you pass the parameter.


Such scope issues also appear if you use "super" keyword.. but it's less 
usual.


 Olivier

Andrew Sinning a écrit :

I'm setting the value inside of the class which extends MovieClip.

It is really bizarre that it would change the yscale of _root.  This 
mc is buried 5 clips deep inside of a swf that is in turn imported 
into the _root.


Jordan L. Chilcott wrote:
Are you dealing with anything that may represent a scoping issue? 
Where are you setting your _yscale?


jord

Andrew Sinning wrote:
I'm using AS2 and I have a symbol linked to a class that extends 
MovieClip.


There's a place in the class where the mc gets scaled.  Because it 
extends MovieClip, I didn't bother to use "this", as in 
"this._yscale = 90".  I simply typed "_yscale = 90".


Curiously, without the "this", the command causes the _root movie to 
be scaled.  Seems like a bug.  Is this a known issue?










--
Olivier Besson (gludion) - (33 1) 44 64 78 99
http://www.gludion.com
http://blog.gludion.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 known? bug with _yscale property when class extends MovieClip

2009-05-04 Thread Andrew Sinning

I'm setting the value inside of the class which extends MovieClip.

It is really bizarre that it would change the yscale of _root.  This mc 
is buried 5 clips deep inside of a swf that is in turn imported into the 
_root.


Jordan L. Chilcott wrote:
Are you dealing with anything that may represent a scoping issue? 
Where are you setting your _yscale?


jord

Andrew Sinning wrote:
I'm using AS2 and I have a symbol linked to a class that extends 
MovieClip.


There's a place in the class where the mc gets scaled.  Because it 
extends MovieClip, I didn't bother to use "this", as in "this._yscale 
= 90".  I simply typed "_yscale = 90".


Curiously, without the "this", the command causes the _root movie to 
be scaled.  Seems like a bug.  Is this a known issue?



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 known? bug with _yscale property when class extends MovieClip

2009-05-04 Thread Jordan L. Chilcott
Are you dealing with anything that may represent a scoping issue? Where 
are you setting your _yscale?


jord

Andrew Sinning wrote:
I'm using AS2 and I have a symbol linked to a class that extends 
MovieClip.


There's a place in the class where the mc gets scaled.  Because it 
extends MovieClip, I didn't bother to use "this", as in "this._yscale 
= 90".  I simply typed "_yscale = 90".


Curiously, without the "this", the command causes the _root movie to 
be scaled.  Seems like a bug.  Is this a known issue?



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS2 known? bug with _yscale property when class extends MovieClip

2009-05-04 Thread Andrew Sinning

I'm using AS2 and I have a symbol linked to a class that extends MovieClip.

There's a place in the class where the mc gets scaled.  Because it 
extends MovieClip, I didn't bother to use "this", as in "this._yscale = 
90".  I simply typed "_yscale = 90".


Curiously, without the "this", the command causes the _root movie to be 
scaled.  Seems like a bug.  Is this a known issue?

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders