Skip to main content
Inspiring
March 6, 2007
Question

setBounds()

  • March 6, 2007
  • 9 replies
  • 720 views
Hi,

I am searching for something linke a setBounds-function. Or even better
something to tween between two bounds without frame tweening but in
actionscript. But the relativ center-point always confuses me. Any ideas
oder tutorials?

TIA
This topic has been closed for replies.

9 replies

Inspiring
March 8, 2007
kglad wrote:
> then use setInterval() and updateAfterEvent() for your tweens.

I usually use onEnterFrame scripts that I put on a clip and delete it
after animation is done. Or I just overwrite it.

But this has not much to do with the subject ... "setBounds"!?
kglad
Community Expert
Community Expert
March 7, 2007
then use setInterval() and updateAfterEvent() for your tweens.
Inspiring
March 7, 2007
castten wrote:
> destination. no space finetuning?

I meant no space for fine tuning. Like making it reeeal smooth or
something like that.
Inspiring
March 7, 2007
kglad wrote:
> the tween class has bounce and elastic etc transitions.

yes, but I only found a way to set time, property, start, end and
destination. no space finetuning?

> and is there some reason you've positioned your square's registration point in an inconvenient location?

for conveniece in first place.
kglad
Community Expert
Community Expert
March 6, 2007
the tween class has bounce and elastic etc transitions. and is there some reason you've positioned your square's registration point in an inconvenient location?
Inspiring
March 6, 2007
kglad wrote:
> what is it that you want to tween?

I have a four squares but with a centerpoint not in the center, on
different positions. I can tween it with keyframes but I thought it
might be possible to tween them with the bounds. Like in director you
can tween easily a sprite rect because you can calculate two rects into
each other.

Once I saw some prototypes setting the left,upper etc. witch comes near
my idea. The thing is, some tweens look more dynamicly when you programm
them. With bounce back etc. like Bounce and Elastic transitions in the
tween class. But the ones in the tween class looked a bit to stiff for
me (with to few parameters).

Well I did some frame tweening and will see if my customer likes it this
way.
kglad
Community Expert
Community Expert
March 6, 2007
what is it that you want to tween?
Inspiring
March 6, 2007
kglad wrote:
> check the tween class.

I looked at it today, but only found out to tween regular properties.
kglad
Community Expert
Community Expert
March 6, 2007
check the tween class.