To make it clear,
In flex i declared the states in application and used in view components
which are child of application, but not the application itself.
As you have done in your example :
<mdl:states>
<js:State name="Examples"/>
<js:State name="Utils"/>
<js:State name="Snippets"/>
<js:State name="About"/>
<js:State name="Legal"/>
</mdl:states>
Is it also restricted to be declared in application ?
18.02.2018 01:17 tarihinde Piotr Zarzycki yazdı:
Application itself cannot have states. States can appear in the View
or other components which you will create.
2018-02-17 23:14 GMT+01:00 Serkan Taş <serkan....@likyateknoloji.com
<mailto:serkan....@likyateknoloji.com>>:
Here is my mxml file :
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
<http://ns.adobe.com/mxml/2009>
xmlns:js="library://ns.apache.org/royale/basic
<http://ns.apache.org/royale/basic>"
xmlns:local="*"
pageTitle="HelloWorld">
<js:states> (Gives error : This tag is unexpected. It will be
ignored)
<js:State name="Examples" />
</js:states>
<fx:Declarations>
</fx:Declarations>
<fx:Script>
<![CDATA[
]]>
</fx:Script>
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
<js:initialView>
<js:View width="100%" height="100%">
<js:Container width="100%" height="100%" >
<js:Label id="lbl" text="Hello World" width="200" />
</js:Container>
</js:View>
</js:initialView>
</js:Application>
18.02.2018 00:41 tarihinde Piotr Zarzycki yazdı:
Hi Serkan
In Royale you are using states the same as in Flex. You can check
how did I use them in one of my example. Declaration [1] and
usage [2]
[1] https://goo.gl/TuL3Y3
[2] https://goo.gl/EJroMo
Thanks, Piotr
2018-02-17 22:31 GMT+01:00 Serkan Taş
<serkan....@likyateknoloji.com
<mailto:serkan....@likyateknoloji.com>>:
Hi,
In my flex application i am using states for component
visibility and activity. What is may be the Royal way ?
Example :
<s:Group width="100%" height="100%" includeIn="someState" >
<compsMyForm id="myForm" left="381" right="380"
top="259" bottom="264" horizontalCenter="0" verticalCenter="-3"/>
</s:Group>
--
Piotr Zarzycki
Patreon: _https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>_
--
Piotr Zarzycki
Patreon: _https://www.patreon.com/piotrzarzycki_