I have this code:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:states>
<mx:State name="b1">
<mx:SetProperty target="{panel1}" name="y" value="133"/>
<mx:SetProperty target="{panel1}" name="width"
value="636"/>
<mx:SetProperty target="{panel1}" name="height"
value="195"/>
<mx:SetProperty target="{button1}" name="x"
value="687"/>
<mx:SetProperty target="{button2}" name="x"
value="687"/>
<mx:SetProperty target="{button2}" name="y"
value="383"/>
</mx:State>
<mx:State name="b2">
<mx:SetProperty target="{panel1}" name="height"
value="477"/>
<mx:SetProperty target="{panel1}" name="x" value="592"/>
<mx:SetProperty target="{panel1}" name="y" value="10"/>
<mx:SetProperty target="{button1}" name="x"
value="539"/>
<mx:SetProperty target="{button1}" name="y" value="10"/>
<mx:SetProperty target="{button2}" name="x"
value="539"/>
<mx:SetProperty target="{button2}" name="y" value="51"/>
</mx:State>
</mx:states>
<mx:Button x="96" y="336" label="b-1" id="button2"
click="currentState='b1'"/>
<mx:Button x="205" y="336" label="b-2" id="button1"
click="currentState='b2'"/>
<mx:Panel x="96" y="128" width="250" height="89" layout="absolute"
title="panel1" id="panel1">
</mx:Panel>
<mx:transitions>
<mx:Transition fromState="*" toState="*">
<mx:Parallel targets="{[b1,b2]}">
<mx:Move duration="10"/>
</mx:Parallel>
</mx:Transition>
</mx:transitions>
//according the book is ok for transitions but in my flex builder 2
it gives me an error over and over again
it seems that the flex is taking the names of the states as undefined
properties....error 1020
Some one could help me out .
Gustavo A. Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS
904. 265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida