# Tweening Box

**URL:** <https://forum.kirupa.com/t/tweening-box/25840>\
**Category:** flash\
**Created:** [July 16, 2003, 10:40pm UTC](https://forum.kirupa.com/t/tweening-box/25840 "2003-07-16T22:40:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Domo](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Domo](https://forum.kirupa.com/u/Domo)\
**Post date:** [July 16, 2003, 10:40pm UTC](https://forum.kirupa.com/t/tweening-box/25840/1 "2003-07-16T22:40:16Z")

</div>

I’m not sure who made this tween… but I remember picking it up on the forum earlier today. It is tween of an expanding box using mathematics in AS it seems like.

Anyways, I love it and was wondering if there is any way that someone could tell me how to modify this so that it keeps expanding the way it does to an 700x400 (pixel) box.

Any help would be appreciated, and I will post the fla.

Thanks in advance… and thatnks to the person who made this thing in the first place!

- Domo

---

<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:** [July 16, 2003, 11:41pm UTC](https://forum.kirupa.com/t/tweening-box/25840/2 "2003-07-16T23:41:10Z")

</div>

I dunno if thats the same fla i looked at a second ago, but it has ht esame name and description so i’m assuming it is.

i just changed the code for the box to:  
[AS]  
if(\_xscale\<700 && \_yscale\<400)  
{

```
	_xscale+=10;
	_yscale+=5
}

```

[/AS]

You should be able to see where that would fit in…

---

<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:** [July 17, 2003, 12:15am UTC](https://forum.kirupa.com/t/tweening-box/25840/3 "2003-07-17T00:15:13Z")

</div>

It didn’t work correctly!

I think its screwed up more…

take a look at the “updated fla”

---

<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:** [July 17, 2003, 2:20am UTC](https://forum.kirupa.com/t/tweening-box/25840/4 "2003-07-17T02:20:07Z")

</div>

because you have \_\_xscale…

---

<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:** [July 17, 2003, 2:39am UTC](https://forum.kirupa.com/t/tweening-box/25840/5 "2003-07-17T02:39:25Z")

</div>

what do I do? get rid of that line?

---

<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:** [July 17, 2003, 2:41am UTC](https://forum.kirupa.com/t/tweening-box/25840/6 "2003-07-17T02:41:22Z")

</div>

if you compare it with the line i gave you (\_xscale), yours has an extra line incase you dind’t notice 😉 So yes…

---

<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:** [July 17, 2003, 2:42am UTC](https://forum.kirupa.com/t/tweening-box/25840/7 "2003-07-17T02:42:45Z")

</div>

Ok, nvm I figured that out… god rid of an extra “\_” in xscale…

Heres my dilemna now…

I made the movie size 700 X 400, but when I publish and put it on an html… the box that gets bigger doesnt come up as 700 X 400… :S

---

<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:** [July 17, 2003, 2:44am UTC](https://forum.kirupa.com/t/tweening-box/25840/8 "2003-07-17T02:44:02Z")

</div>

I don’t think the finished box is 700x400. Maybe you could change the xscale and yscale values to see if it ever reaches 700x400…or trace the size…

---

<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:** [July 17, 2003, 2:55am UTC](https://forum.kirupa.com/t/tweening-box/25840/9 "2003-07-17T02:55:43Z")

</div>

Ok thanks I got it 🙂

---

<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:** [July 17, 2003, 2:56am UTC](https://forum.kirupa.com/t/tweening-box/25840/10 "2003-07-17T02:56:15Z")

</div>

good good 🙂
