# Line animation using actionscript

**URL:** <https://forum.kirupa.com/t/line-animation-using-actionscript/17207>\
**Category:** Uncategorized\
**Created:** [April 2, 2003, 5:11pm UTC](https://forum.kirupa.com/t/line-animation-using-actionscript/17207 "2003-04-02T17:11:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crzydimnd](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@crzydimnd](https://forum.kirupa.com/u/crzydimnd)\
**Post date:** [April 2, 2003, 5:11pm UTC](https://forum.kirupa.com/t/line-animation-using-actionscript/17207/1 "2003-04-02T17:11:50Z")

</div>

hey all, I have what seems like a rather easy effect to acheive here, but I’m having troubles with it.

Basically, I want a line to scale from the left side of my movie to the right. When I use “this.line.\_width = 20”, it scales on both sides. I want it to only scale to the right. Is there a way to do this with actionscript? I’m going to make the line scale at a variable rate in the future, so it starts out scaling fast, then slows down as it reaches its destination. If anyone has any suggestions, I’d appreciate it.

Gene

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 5:31pm UTC](https://forum.kirupa.com/t/line-animation-using-actionscript/17207/2 "2003-04-02T17:31:41Z")

</div>

You have to set the registration point to the side you want to be static.

When you create your bar clip in the create new symbol panel there is a square made up of 9 little squares, each of those little squares represent a location that your registration point can be at. Click on the one in the middle ROW (not column) on the side that you want to keep in one place, that way when you scale it, it will scale from that point only and not both sides as it would if the registration point were in the center.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 6:46pm UTC](https://forum.kirupa.com/t/line-animation-using-actionscript/17207/3 "2003-04-02T18:46:39Z")

</div>

argh! it’s so easy! and I knew it was… thanks a lot.

sorry to waste your time!

Gene

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 6:47pm UTC](https://forum.kirupa.com/t/line-animation-using-actionscript/17207/4 "2003-04-02T18:47:08Z")

</div>

You didn’t waste my time. I was here anyway, might as well help people :beam:

Glad your problem is fixed.
