AS3 / Flash / FlashDevelop - scaleY = 0 ... Bug with scaleY value on Custom Class

I haven't found much on the web about this...

Issue:

Has anyone experienced an issue where a custom class extending a library MovieClip instantiated on stage has an initial scaleY value of 0, but scaleX is 1?

example:

- class MovieClipAndThenSome extends
- class MovieClipPlus extends class FL_MCFromLibrary
- class FL_MCFromLibrary is generated by flash when not found in the classpath (it is the linkage name of a library movie clip in flash) and extends MovieClip

//as3 example..

var newCustomMC:MovieClipAndThenSome = stage.addChild(new MovieClipAndThenSome());

trace(" >> scaleX: " + newCustomMC.scaleX); // output: >> scaleX: 1
trace(" >> scaleY: " + newCustomMC.scaleY);// output: >> scaleY: 0


is this a known flash bug?

solution:

an obvious workaround... call this line after object is added to stage..

this.scaleY = this.scaleX = 1;

1 comment (Add your own)

1. Ray Ban Sunglasses wrote:
First of all, do not hurry when buying Coach Bags , Footwear is the matter of fashion and style. It is advisable to feel free to walk in any physical shop nearby or visit the online UGG Boots on sale shop, and make sure that you clear all your doubts. You can even refer to magazines and fashion blogs to know what type of ghd Hair Straighteners are in fashion. Normally, girls and women prefer to buy shoes according to the seasons. For instance, women choose strappy MBT Shoes for summer and ankle Chanel Jewelry for the winter. Moreover, colour, heels, style, and price also play an important role in Ray Ban Sunglasses shopping.

April 7, 2010 @ 12:34 AM

Add a New Comment

Enter the code you see below:
code
 

Comment Guidelines: No HTML is allowed. Off-topic or inappropriate comments will be edited or deleted. Thanks.