Transitions won't work in Flex

Hi!

Could someone please point out what I’m doing wrong in the following code?


<mx:transitions>
  <mx:Transition toState="Skjema" fromState="*">
    <mx:Resize duration="4000" target="{test}" heightFrom="20" widthFrom="20" heightTo="1265.1024" widthTo="1259.75" />
    <mx:Move xFrom="230" xTo="500" target="{test}"/>
  </mx:Transition>
</mx:transitions>

I get the error


In initializer for 'effect': multiple initializer values for target type mx.effects.IEffect.