4 Replies Latest reply on May 18, 2009 7:01 PM by Schlamazel

    How to display a concatenation including a String Variable


      In the following function exercise:


      Why can't I display the Str1 containing diaplayMe when I can display:


      <mx:Button label="Display stuff" click="displayMe (daInput.text +daInput2.text)" />



      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">


              public function displayMe (in1:String) : void
                  mx.controls.Alert.show (in1);
      <mx:TextInput id = "daInput" text="I will display what is in this TextInput control" />
      <mx:TextInput id="daInput2" text="plus this" />


      var Str1:String

      Str1 =="Help";


      <mx:Button label="Display stuff" click="displayMe (daInput.text +Str1+ daInput2.text)" />  





      Thank you


      The Schlameal