Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26356

Rotate3D parallel not working -- cannot rotate around x, y, and z axis in parallel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • Spark: Effects
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Simply run the following file, observe that one cannot do 3D rotation in parallel:

      ----------------------
      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
      <fx:Declarations>
      <s:Parallel id="p1" duration="2000" target="

      {someText}" >
      <s:Rotate3D id="threeD1" angleXFrom="0" angleXTo="45" autoCenterTransform="true" />
      <s:Rotate3D id="threeD2" angleYFrom="0" angleYTo="45" autoCenterTransform="true" />
      <s:Rotate3D id="threeD3" angleZFrom="0" angleZTo="30" autoCenterTransform="true" />
      </s:Parallel>
      </fx:Declarations>

      <s:Button x="20" y="20" label="start" click="p1.play()" />
      <s:RichText id="someText" x="272" y="162" fontSize="20" fontWeight="bold"
      text="There is some rich text here that I'm going to rotate"/>

      </s:Application>

      Workaround:

      Since effects of the same type in a Parallel currently trump each other (well, the last declared instance does), you can combine like-effects into a single effect as so (when feasible of course) -

      <s:Parallel id="p1" duration="2000" target="{someText}

      " >
      <s:Rotate3D id="threeD1" angleYFrom="0" angleYTo="45" angleXFrom="0" angleXTo="45" autoCenterTransform="true" angleZFrom="0" angleZTo="30" />
      </s:Parallel>

      If you need staggered start delays and such you can nest Parallel tags as necessary to achieve the same result.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: