4 Replies Latest reply on Dec 18, 2007 7:47 AM by ntsiii

    bindable question

    Handycam Level 1
      Frequently I want to use the a variable in my content, as the contents of a list or text box.

      For example <mx:Text id="myText" text="{_presTitle}"/>

      I've been using bindable variables for this, since it seems there's no other way, as in:
      private var _presTitle:String;

      However, is there another way? Obviously, this data is not going to be changed during runtime, so is it really necessary to set a binding like this?

      For simple things like the above text box example, I can create a function and use "myTextBox.text = _presTitle" but how can this be done more simple, without a function and without creating a bindable variable?