# Transitions won't work in Flex

**URL:** <https://forum.kirupa.com/t/transitions-wont-work-in-flex/297393>\
**Category:** flash\
**Created:** [October 1, 2009, 11:49am UTC](https://forum.kirupa.com/t/transitions-wont-work-in-flex/297393 "2009-10-01T11:49:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marjoth](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@Marjoth](https://forum.kirupa.com/u/Marjoth)\
**Post date:** [October 1, 2009, 11:49am UTC](https://forum.kirupa.com/t/transitions-wont-work-in-flex/297393/1 "2009-10-01T11:49:38Z")

</div>

Hi!

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

```auto

<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

```auto

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

```
