Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing rectangle shape

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
Hy guys!

For example: i have a rectangle and i want to skew one of it's corners to make it a triangle....i don't want to make it frame by frame (no motion added) but in motion.

When i add a motion tween i can't change the shape of the rectangle....
I think you can do it with actionscript but i don't know how.

I appreciate any help!!!
dragos.jpg

 
1) You could use a shape tween rather than a motion tween to morph between the two.

2) In MX you can actually draw lines dynamically which means you can script the change between the two shapes.

3) In Flash 5 you can create a rectangle by scaling a movie clip which contains a line and duplicating it four times. Then a little bit of script could be used to move one of the corners these four lines form to flatten out and give you a triangle.
 
I use mx and i tried to use a shape tween but didn't work....

I can send you the .fla to understand better what i'm trying to do...if that's ok for you.

Regards,
dragos.jpg

 
It works with shape tween man!!!!
Thanks for help!

I can send you the .fla to show you what i was trying to do....maybe is another way to do it...

Regards,
dragos.jpg

 
Send it to info@wangbar.co.uk if you still want some input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top