about includeIn keyword

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

about includeIn keyword

Serkan Taş
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>

Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Piotr Zarzycki
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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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

Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Serkan Taş

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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


Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Piotr Zarzycki
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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Serkan Taş

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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki


Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Piotr Zarzycki
It is true that in flex you could have declarations in the application level. In Royale the earliest component where you can have such declarations is View. In general you can declare States in every component which inherits from UIBase. <js:Application doesn't inherit from UIBase.

In my example I'm declaring states for some component. Take a look into my main file for example [1]. I'm also using there states. I cannot declare them outside View.


Piotr


2018-02-17 23:21 GMT+01:00 Serkan Taş <[hidden email]>:

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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Serkan Taş
Thanks Piotr,

I'll work on...

18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
It is true that in flex you could have declarations in the application level. In Royale the earliest component where you can have such declarations is View. In general you can declare States in every component which inherits from UIBase. <js:Application doesn't inherit from UIBase.

In my example I'm declaring states for some component. Take a look into my main file for example [1]. I'm also using there states. I cannot declare them outside View.


Piotr


2018-02-17 23:21 GMT+01:00 Serkan Taş <[hidden email]>:

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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki


Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Andrew Wetmore
I have added a note about this difference between Flex and Royale to the help docs [1]

[1] https://apache.github.io/royale-docs/User-interface/Flex-equivalents.html

Virus-free. www.avast.com

On Sat, Feb 17, 2018 at 6:38 PM, Serkan Taş <[hidden email]> wrote:
Thanks Piotr,

I'll work on...

18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
It is true that in flex you could have declarations in the application level. In Royale the earliest component where you can have such declarations is View. In general you can declare States in every component which inherits from UIBase. <js:Application doesn't inherit from UIBase.

In my example I'm declaring states for some component. Take a look into my main file for example [1]. I'm also using there states. I cannot declare them outside View.


Piotr


2018-02-17 23:21 GMT+01:00 Serkan Taş <[hidden email]>:

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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki





--
Reply | Threaded
Open this post in threaded view
|

Re: about includeIn keyword

Piotr Zarzycki
Awesome! Thank you Andrew! :) 

On Sun, Feb 18, 2018, 00:22 Andrew Wetmore <[hidden email]> wrote:
I have added a note about this difference between Flex and Royale to the help docs [1]

[1] https://apache.github.io/royale-docs/User-interface/Flex-equivalents.html

Virus-free. www.avast.com

On Sat, Feb 17, 2018 at 6:38 PM, Serkan Taş <[hidden email]> wrote:
Thanks Piotr,

I'll work on...

18.02.2018 01:29 tarihinde Piotr Zarzycki yazdı:
It is true that in flex you could have declarations in the application level. In Royale the earliest component where you can have such declarations is View. In general you can declare States in every component which inherits from UIBase. <js:Application doesn't inherit from UIBase.

In my example I'm declaring states for some component. Take a look into my main file for example [1]. I'm also using there states. I cannot declare them outside View.


Piotr


2018-02-17 23:21 GMT+01:00 Serkan Taş <[hidden email]>:

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ş <[hidden email]>:

Here is my mxml file :

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:js="library://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]


Thanks, Piotr


2018-02-17 22:31 GMT+01:00 Serkan Taş <[hidden email]>:
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





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki





--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki