Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35273

[FlexJS] No error in code with multiple views

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FalconJX 0.8.0
    • Apache FalconJX 0.8.0
    • Falcon, FlexJS
    • None

    Description

      This code when run will have the second view displayed, no warnings or errors occur.

      <?xml version="1.0" encoding="utf-8"?>
      <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:js="library://ns.apache.org/flexjs/basic"
                     applicationComplete="init()">
      
         <fx:Script><![CDATA[
                   public function init():void {
                       text1.text = "Visible";
                       text2.text = "Hidden";
                   }
             ]]></fx:Script>
      
         <js:valuesImpl>
             <js:SimpleCSSValuesImpl/>
         </js:valuesImpl>
      
         <js:initialView>
             <js:View id="view1" visible="true" percentWidth="100" percentHeight="100">
                 <js:Label id="text1" text="View 1" />
             </js:View>
             <js:View id="view2" visible="false" percentWidth="100" percentHeight="100">
                 <js:Label id="text2" text="View 2" />
             </js:View>
         </js:initialView>
      
      </js:Application>
      

      Attachments

        Activity

          People

            jmclean Justin Mclean
            jmclean Justin Mclean
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: