I can face errors in state property. how can i resolve this errors in flex 4.6?

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="118" height="118">
<s:layout>
<s:BasicLayout/>
</s:layout>
<s:states>
<s:State name="X">
<mx:AddChild position="lastChild">
<s:Label x="10" y="10" text="X" fontWeight="bold" fontSize="72" width="98" id="label1" height="98" textAlign="center"/>
</mx:AddChild>
</s:State>
<s:State name="O">
<mx:AddChild basedOn="X">
<mx:SetProperty target="{label1}" name="text" value="O"/>
</mx:AddChild>
</s:State>
<s:State name="OWinner" basedOn="O">
<mx:SetStyle name="backgroundColor" value="#42E303"/>
</s:State>
<s:State name="XWinner" basedOn="X">
<mx:SetStyle name="backgroundColor" value="#42E303"/>
</s:State>
</s:states>
<fx:Script>
<![CDATA[
public var used:Boolean = false;
public function reset():void
used = false;
currentState = "";
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:Group>

Without knowing what the error is, then it might be a little difficult to help you.
But, my guess is that you put items in the States, which you don't need to.
You might want to review the documentation for Create and Apply States.

Similar Messages

Maybe you are looking for

  • Creation of Time sheet

    I have to create a time sheet as shown below,                                      2011-10-03      2011-10-04    2011-10-05     2011-10-06    2011-10-07      2011-10-08     2011-10-09                                        Time                  Time 

  • How to load .jar files of subfolder in web-inf/lib folder?

    Hi All, In 'webapps\myappliction\WEB-INF\lib\myfolder' and in myfolder have some .jar files. How to load subfolder jar files in weblogic server 10.0? Do I need to configure subfolder jar path in web.xml? Please help me. Thanks & Regards, Gangadhar

  • Problem using jdk included with JDEV9i

    I am trying to use jdk supplied with jdev9i release candidate 2 on my system (win 98).I have included c:\jde9i\jdk\bin in my system's path and c:\jdev9i\jdk\lib in my class path. But when I invoke compiler using javac it prints a long error message ,

  • Extigy Master Knob won't function?

    Hello everyone, I recently bought the Extigy from a friend. It was just the model, power supply, and usb cable (no driver cd). I hooked it up the day I got it, everything was greant, and the master volume knob could control the volume bar in Win XP.

  • Music Album Art and Blackberry Link Issues

    I have been using blackberry for ages and have never had an issue with the media sync, it normally has worked properly. i had the z10 when it came out and syncing my music via blackberry link had worked well also, music album art showed up on my devi