2 Replies Latest reply on Feb 28, 2011 3:38 AM by Flex Rock

    RichEditableText doesn't display bindable variable "mavar" where autoComplete

    pol2095 Level 1

      Hello,

       

      RichEditableText doesn't display bindable variable "mavar" where autoComplete and textFlow link

      <?xml version="1.0" encoding="utf-8"?> 
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"  
              xmlns:s="library://ns.adobe.com/flex/spark"  
              xmlns:mx="library://ns.adobe.com/flex/mx"  
              minWidth="955"  
              minHeight="600" 
              applicationComplete="comp()"> 
              <fx:Script>         
                      <![CDATA[ 
                              [Bindable] 
                              public var mavar : String; 
       
                              public function comp():void { 
                                      mavar = 'toto'; 
                              } 
                      ]]> 
              </fx:Script> 
              <!-- Launch your application by right clicking within this class and select Debug As > FDT SWF Application --> 
              <fx:Declarations> 
                      <!-- Place non-visual elements (e.g., services, value objects) here --> 
              </fx:Declarations> 
              <s:RichEditableText id="richEdTxt" editable="false" selectable="false"> 
                      <s:textFlow> 
                              <s:TextFlow> 
                                      <s:p>{mavar}<s:a href="http://www.monsite.com/">www.monsite.com</s:a></s:p> 
                              </s:TextFlow> 
                      </s:textFlow> 
              </s:RichEditableText> 
      </s:Application>