thanks for the links.

enrico - i tried scaling first and it didn't work, and rich, i tried the TweenExtend class and that also didn't work. i'm still getting the same results. the zooming in works but my tweens of the 'x' and 'y' is not working anymore.

below is my function. can you see s/thing in the way i'm calculating the displacement for 'nX' and 'nY' that may be the cause of the problem?

thanks for lending a hand. very much appreciated.

public function zoomIn(activeState:MovieClip)
{
var nX:Number = (Stage.width/2) - activeState._xmouse; // activeState is reference to US map mc.
 var nY:Number = (Stage.height/2) - activeState._ymouse;

 // zoom in to the selected state.
new Tween( activeState, "_x", Strong.easeOut, activeState._x, nX, 2, true ); new Tween( activeState, "_y", Strong.easeOut, activeState._y, nY, 2, true );

 // zoom into the map
new Tween( activeState, "_xscale", Strong.easeOut, activeState._xscale, 200, 2, true ); new Tween( activeState, "_yscale", Strong.easeOut, activeState._yscale, 200, 2, true );
}
----- Original Message ----- From: "Rich Rodecker" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Tuesday, August 01, 2006 12:20 PM
Subject: Re: [Flashcoders] tweening multiple properties simultaneously


there is a class out there called TweenExtended...it works exaclty the same
way as the Tween class, excpet you pass in arrays for the properties you
want to tween, and their corresponding starts/finish values.

http://www.sqcircle.com/downloads/




On 8/1/06, Matthew Ganz <[EMAIL PROTECTED]> wrote:

hi.

i'm using the tween class to move a map movie clip's x and y properties.
so whichever state the user clicks on my US map movieClip, it gets centered
on the stage.  it works great like this:

public function expand(activeState:MovieClip)
{
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;

  // move it to the center of the stage.
  new Tween( activeState, "_x", Strong.easeOut, activeState._x, nX, 2,
true );
  new Tween( activeState, "_y", Strong.easeOut, activeState._y, nY, 2,
true );
}

the problem comes when i introduce two new tweens to scale the map as
well. the result is that the x and y don't appear to move but the scale
tween does work.

public function expand(activeState:MovieClip)
{
  var nX:Number = (Stage.width/2) - activeState._xmouse;
  var nY:Number = (Stage.height/2) - activeState._ymouse;

  // move it to the center of the stage.
  new Tween( activeState, "_x", Strong.easeOut, activeState._x, nX, 2,
true );
  new Tween( activeState, "_y", Strong.easeOut, activeState._y, nY, 2,
true );

  // zoom into the map
new Tween( activeState, "_xscale", Regular.easeOut, activeState._xscale,
500, 2, true );
new Tween( activeState, "_yscale", Regular.easeOut, activeState._yscale,
500, 2, true );
}

are there problems tweening multiple properties at once? has anyone
experienced this before?

thank you. -- matt.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to