0 Replies Latest reply on Mar 5, 2013 12:00 AM by KentWood2012

    how to add resize effect on target that using releated size

    KentWood2012

      hey guys

      i found i can't add a resize effect on the Group that using a releated size.code like this

       

      <s:transitions>
                          <s:Transition fromState="*" toState="*">
                                    <s:Sequence duration="300">
                                              <s:Resize target="{aaa}" />
                                    </s:Sequence>
                          </s:Transition>
                </s:transitions> 
                <s:states>
                          <s:State name="a" />
                          <s:State name="b" />
                </s:states>
                <s:Group id="aaa" width="200" >
                          <s:Rect width="100%" height="200" includeIn="a">
                                    <s:fill>
                                              <s:SolidColor color="0xff0000" />
                                    </s:fill>
                          </s:Rect>
                          <s:Rect width="100%" height="100" includeIn="b">
                                    <s:fill>
                                              <s:SolidColor color="0xff0000" />
                                    </s:fill>
                          </s:Rect>
                </s:Group>
                <s:Button click="{currentState='b'}" />
      
      

      as i click that button,Group change its size directly,no resize effect run.is there any way to solove that?

      hope u guys can show me the way,thks vv much