Jason, 

 

This is a common problem in Flash as well. The solution is to nest the
object you want to scale within a parent object which you then rotate. 

 

Try this: 

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 

  layout="absolute"

  backgroundColor="white"

  >

  <mx:Button label="parallel" click="parallel.play()"/>

  <mx:Button x="100" label="sequence" click="sequence.play()"/>

  <mx:Button x="200" label="reset" click="c.x=200; c.y=200; c.rotation=0;
p.x=0; p.y=0; p.scaleX=1; p.scaleY=1;"/>

  <mx:Canvas id="c" x="200" y="200">

            <mx:Panel id="p" width="100" height="100" x="0" y="0"/>

  </mx:Canvas>

  <mx:Parallel id="parallel" duration="200">

    <mx:Rotate target="{c}" angleFrom="0" angleTo="90"/>

    <mx:Zoom target="{p}" zoomHeightTo="0.5" zoomWidthTo="0.5"/>

  </mx:Parallel>

  <mx:Sequence id="sequence" duration="200">

    <mx:Rotate target="{c}" angleFrom="0" angleTo="90"/>

    <mx:Zoom target="{p}" zoomHeightTo="0.5" zoomWidthTo="0.5"/>

  </mx:Sequence>

</mx:Application>

 

Regards, 

-Keith 
 <http://keithreinfeld.home.comcast.net/>
http://keithreinfeld.home.comcast.net
  

Reply via email to