Hello guys. I have created my application, I created a mxml TitleWindow that recall in my application with a button. This is the code of mxml TitleWindow. But with this flex 3.
Now i'm working in flash builder 4 and in my mxml application i have worked in this way for open a titlewindow <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="1000" minHeight="600" xmlns:esri="http://www.esri.com/2008/ags" xmlns:layers="com.esri.ags.layers.*" viewSourceURL="Source/index.html"> <s:layout> <s:BasicLayout/> </s:layout> <s:BorderContainer height="84" right="0" left="0" top="0" horizontalCenter="0"> </s:BorderContainer> <s:BorderContainer top="83" right="0" bottom="0" left="0" verticalCenter="41" horizontalCenter="0"> <esri:Map> <esri:extent> <esri:Extent xmin="12.3498673933049" ymin="41.7449211462468" xmax="12.6468247200555" ymax="42.0530143727505"> <esri:SpatialReference wkid="4326"/> <!-- WGS84 --> </esri:Extent> </esri:extent> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer"/> <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" alpha="{layerAlpha1.value}"/> </esri:Map> <s:BorderContainer height="41" width="145" right="10" top="10" backgroundColor="#000000" backgroundAlpha="0.5"> <s:ToggleButton id="Toc" label="Layer" click="tocPanel.visible ? tocPanel.visible=false: tocPanel.visible=true" selected="{tocPanel.visible}" x="67" y="9"/> </s:BorderContainer> <s:TitleWindow id="tocPanel" mouseDown="tocPanel.startDrag()" mouseUp="tocPanel.stopDrag()" title="Layer" visible="false" close="tocPanel.visible=false" x="932" y="76" width="270" height="264" backgroundColor="#000000" backgroundAlpha="0.5"> <s:states> <s:State name="collapsedState"> </s:State> </s:states> </s:TitleWindow> </s:BorderContainer> but when i write the script for the resizable as well as in the flex 3 i have a error for tag "states"(initializer for prperty states is not allowed here )