Tween a line growing- or a box. Without scaling.

By mcmcom | Jul 3, 2009

actionscript3

Hi all,
starting a new AS 3 website and (dont hit me) i must admit this is the first AS 3 site i am doing - it’s going rather well but i do have a question. I woudl like to create a class that will draw a simple box outline based on dimensions i pass it. But i want the actual drawing of the box to be tweened. So the lines would start out as 1px lines and then tween to be say 100 px wide by 100px high.

I have played around with several tweens on both boxes and lines and nothing has worked to my satisfaction. Problem is the lines get fatter as the width scales out. I am thinking that perhaps the only way to do this is to actually draw lines with line to in some loop on onEnterFrame but have not succeeded. So if anyone has an example of this please do share it.

thanks in advance,
mcm

actionscript3

Please reply at our Forum

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 ActionScript 3.0