# Expanding with AS

**URL:** <https://forum.kirupa.com/t/expanding-with-as/21300>\
**Category:** flash\
**Created:** [May 20, 2003, 2:32am UTC](https://forum.kirupa.com/t/expanding-with-as/21300 "2003-05-20T02:32:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![buddylee](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@buddylee](https://forum.kirupa.com/u/buddylee)\
**Post date:** [May 20, 2003, 2:32am UTC](https://forum.kirupa.com/t/expanding-with-as/21300/1 "2003-05-20T02:32:51Z")

</div>

Hey guys, got another question for ya. Been a while since I posted, but I am stumped again. On my navigation bar at the bottom of my page, I have a translucent rectangle that follows my mouse when I roll over the nav bar. I have had it change the width to match the link. Such as the width for Home is 50, and the width for Network Installation is 150. The only problem is that it does not look very professional when it the rectangle jumps from 50 to 150. I want it to “grow” from 50 to 150. Here is what I have so far.  
The name of the rectanlge is “slider”

```php
if (_root.slider._width<100) {
		_root.slider._width += 1;
	}
	if (_root.slider._width>100) {
		_root.slider._width -= 1;
	}

```

This does not work. What am I doing wrong. The old script I had was…

```php
_root.slider._width = 100;

```

This works, but it not what I want. Any suggestions?

---

<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:** [May 20, 2003, 2:34am UTC](https://forum.kirupa.com/t/expanding-with-as/21300/2 "2003-05-20T02:34:18Z")

</div>

this thread should help you 🙂

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21149&highlight=easing](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21149&highlight=easing)

---

<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:** [May 20, 2003, 2:49am UTC](https://forum.kirupa.com/t/expanding-with-as/21300/3 "2003-05-20T02:49:00Z")

</div>

Still a little confused with this. I do not follow that post. I know it is the right thing, but I want to write what I understand until I can progress to that level. Thanks for the reply b/c that is exactly what I need, I just cannot figure that out. Anything a little less complex?

---

<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:** [May 20, 2003, 2:53am UTC](https://forum.kirupa.com/t/expanding-with-as/21300/4 "2003-05-20T02:53:26Z")

</div>

try scaling with ease. The basic concept should be searchable
