Tweening Box

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

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…

It didn’t work correctly!

I think its screwed up more…

take a look at the “updated fla”

because you have __xscale…

what do I do? get rid of that line?

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

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

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…

Ok thanks I got it :slight_smile:

good good :slight_smile: