[
https://issues.apache.org/jira/browse/FLEX-12267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler closed FLEX-12267.
-------------------------------
> When using move and rotate in Parallel, final position wrong
> ------------------------------------------------------------
>
> Key: FLEX-12267
> URL: https://issues.apache.org/jira/browse/FLEX-12267
> Project: Apache Flex
> Issue Type: Bug
> Components: Effects
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): Windows
> Affected OS(s):
> Browser: Firefox 2.x
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Mark Kessler
>
> Steps to reproduce:
> 1. Create this flex 3 application:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
> <mx:Script>
> <![CDATA[
> import mx.events.EffectEvent;
>
> private function moveAndRotate(event:Event):void{
> var o:DisplayObject = event.target as
> DisplayObject;
> moveAndRotateEffect.target = o;
> rotateEffect.angleFrom = o.rotation;
> moveAndRotateEffect.play();
> }
> private function showMyXY(event:EffectEvent):void{
> var o:DisplayObject = event.target.target;
> trace(o.x+","+o.y);
> }
> ]]
> >
> </mx:Script>
> <mx:Box backgroundColor="#ff0000"
> width="400" height="600"
> rotation="5"
> x="20" y="20"
> backgroundAlpha=".5"
> mouseDown="moveAndRotate(event)"/>
> <mx:Box backgroundColor="#0000ff"
> width="400" height="600"
> rotation="-10"
> x="550" y="-35"
> backgroundAlpha=".5"
> mouseDown="moveAndRotate(event)"/>
> <mx:Parallel id="moveAndRotateEffect" duration="3000"
> effectEnd="showMyXY(event)">
> <mx:Move id="moveEffect" xTo="400" yTo="400"/>
> <mx:Zoom id="growEffect" zoomHeightTo="2" zoomWidthTo="2" />
> <mx:Rotate id="rotateEffect" angleTo="0" />
> </mx:Parallel>
> </mx:Application>
> 2. Run in Debug Mode.
> 3. Click on each of the boxes. notice the coordinates where the boxes end is
> not the target 400, 400 to which the move was set.
>
> Actual Results:
> When clicked Boxes are moved to wrong place
>
> Expected Results:
> when clicked, boxes should move to 400,400
>
> Workaround (if any):
>
> Interestingly, running the effect a 2nd time does move it to the proper
> place.
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira