Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Transition Logic

    Well, im not having problems activating or inserting transitions but i am
    having problems understanding some basic concepts behind them. Ill try to
    formulate my questions in a way that doesn't sound like I'm channeling crazy
    dead people.

    When your create a state i assume you must have any children you want to
    animate in your transition present in your targeted state, that being said lets
    say i want to move a label left 100 pixels. Setting the transition to move the
    label from its current x value to the new one that is 100 pixels less then the
    original value works just fine, the animation is smooth and tasty but when it
    finishes the label appears where it was before the animation started :( Now
    if i set the label in the state itself to the position i want it to end at when
    the transition finishes(makes more sense) the animation also works but now i
    see the label in its ending position for a split second before the transition
    begins and using any sequential transitions would mean i would see it in its
    ending position until the sequence occurs that animates it. Right now im just
    using Parallel for everything but this can be real clunky and still doesnt
    resolve the issue just kind of masks it :(

    Now this is a little more complex, lets say i have 2 labels, label01 and
    label02. In my targeted state I have both labels visible but i would like my
    transition to sequentialy blur them in from 100 blured to 0, first label01 then
    label02, my problem is that if i use sequence like this:

    <mx:Sequence>
    <mx:Blur target="{label01}" blurXFrom="100" blurXTo="0" blurYFrom="100"
    blurYTo="0" duration="1000"/>
    <mx:Blur target="{label02}" blurXFrom="100" blurXTo="0" blurYFrom="100"
    blurYTo="0" duration="1000"/>
    </mx:Sequence>

    label02 will be completly visible and not blured while label01 blurs in.

    I have considered that i may have to blur the labels in the targeted state
    itself but then they will return to their blurred effect state after the
    transition animation finishes :(

    Am i supposed to create 2 states one that reflects how the transition looks
    when starting and then when the transition ends somehow move the state to a
    second that relfects what i want after the transition ends? This seems wrong..
    help!


    leo

    leotemp Guest

  2. Similar Questions and Discussions

    1. Logic in form
      Hi, I have a form with a field called 'Serial_No'. This is a 9 digit number that will be in the form NN-NNN-NN. I would like to have a hidden...
    2. Logic
      I need some help. I have 2 loops. One to find a RadioButtonList in datagrid and second in Session("Answ"). I am trying to assing value from...
    3. ColdFusion Logic
      Hello I am new to scripting. I decided to learn CF. And i have been asked to make a paint calculator, that calculates the amount of paint u need to...
    4. CMS logic problem
      Hi All Yet again, I know this is a try it yourself, but I just want to get your feedback/comments on this. I'm creating a CMS that will allow...
    5. logic help please
      Hi, I need a sprite to check where its member's position is in a large nested list (which is a combination property and linear list). Here is the...
  3. #2

    Default Re: Transition Logic

    Hi Leo,

    Take a look at <mx:SetPropertyAction>, and also perhaps <mx:AddChildAction>,
    <mx:RemoveChildAction>, <mx:SetStyleAction>. These are specifically intended
    to help with the kind of situation you are describing. They let you control
    the timing of certain parts of the transition relative to certain parts of the
    state change.

    --
    Mike Morearty
    Developer, Flex Builder team
    [url]http://www.morearty.com/blog[/url]
    Mike Morearty (Adobe) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139