Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

States - excludeFrom ignored #1202

Closed
yishayw opened this issue Jun 1, 2022 · 1 comment
Closed

States - excludeFrom ignored #1202

yishayw opened this issue Jun 1, 2022 · 1 comment

Comments

@yishayw
Copy link
Contributor

yishayw commented Jun 1, 2022

In the following app I expect the second trace statement to fail, but it doesn't

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                applicationComplete="init()"
                width="100%"
                height="100%"
                currentState="stateB"
                xmlns:s="library://ns.apache.org/royale/spark"
                xmlns:mx="library://ns.apache.org/royale/mx">
                
     <fx:Script>
        <![CDATA[
            private function init():void
            {
                trace(currentState);
                trace(b2);
            }
        ]]>
    </fx:Script>
    <mx:states>
        <mx:State name="StateB" />
        <mx:State name="StateA" />
    </mx:states>
    <mx:Button id="b1" label="yes"/>
    <mx:Button id="b2" label="no" excludeFrom="stateB"/>

</mx:Application>
@yishayw
Copy link
Contributor Author

yishayw commented Jun 2, 2022

Closing this, states were referenced with the wrong case (stateB instead of StateB).

@yishayw yishayw closed this as completed Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant