# Rotation messes things up

**URL:** <https://forum.kirupa.com/t/rotation-messes-things-up/265974>\
**Category:** flash\
**Created:** [July 15, 2008, 4:59am UTC](https://forum.kirupa.com/t/rotation-messes-things-up/265974 "2008-07-15T04:59:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)\
**Post date:** [July 15, 2008, 4:59am UTC](https://forum.kirupa.com/t/rotation-messes-things-up/265974/1 "2008-07-15T04:59:35Z")

</div>

What the heck, every time i implement rotation, it makes everything go upside down and inside out. Somebody wanna tell me how to make this work properly

```auto

var line1:greLine = new greLine();
var line2:greLine = new greLine();

addChild(line1)
addChild(line2)
line2.y = 200
line1.y =200
line2.x = 100
line1.x =100
line1.width = 0
line1.height = 5
line2.height = 0

line2.rotation = 90
TweenMax.to(line1, 1, {width: 500});
TweenMax.to(line2, 1, {height: 500})

```

It plays out as two intersecting lines (both are part of the greLine class), going right and going down

ie  
-----------------------------\>  
|  
|  
|  
|  
|  
|  
/

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [July 15, 2008, 12:33pm UTC](https://forum.kirupa.com/t/rotation-messes-things-up/265974/2 "2008-07-15T12:33:03Z")

</div>

I think it might be important to note that if you have something that’s, say 1px height and 200 px width like thus;

* * *

And you put rotation 90 on it to make it like thus;

|  
|  
|

Then you still need to tween it’s width to make it taller/shorter. Not height. It’s the same property, just that your object is rotated. Get what I mean?

---

<div class="post-metadata">

**Author:** ![saxx](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@saxx](https://forum.kirupa.com/u/saxx)\
**Post date:** [July 15, 2008, 1:01pm UTC](https://forum.kirupa.com/t/rotation-messes-things-up/265974/3 "2008-07-15T13:01:12Z")

</div>

Yeah i did, but wierd things happen. I ended up just using two movieclips.
