4 Replies Latest reply on Nov 17, 2008 8:52 AM by Karl_Sigiscar_1971

    HTML in TextArea in Flex

    new flex guy Level 1
      hello frnd,

      i have a simple query ,
      i'm storing text in string var like
      var coreData:String = '<img border="0" alt="" style="width: 77px; height: 43px;" src="chart.png" />' +
      '<span style="font-weight: bold;">Hi how are you</span><span style="font-weight: bold;">' +
      ' Welcome here<br /><br /><img border="0" alt="" style="width: 76px; height: 43px;" src="chart.png" /> ' +
      'abhishek here<br /></span><br /><span style="font-weight: bold;"><br /><br /></span>';
      var s:String;
      s ="<html><head></head><body>";
      s +=coreData;
      s +="</body></html>";
      myhtml.htmlText = s;

      it woring correctlly in AIr application like :
      <mx:VBox width="100%" height="100%">
      <mx:HTML width="100%" height="100%" id="myhtml"/>
      </mx:VBox>


      but when i used same in flex u can see it not working same like in air.


      Flex code:
      <mx:VBox width="100%" height="100%" >
      <mx:TextArea id="myhtml" textAlign="center" width="100%" height="100%"/>
      </mx:VBox>


      u can run and check code in flex and air, ui'' find difference. In AIr its showing right but not in flex.
      r u have any idea how to make work above example ?

      thx in advanced
      abhishekchess1@gmail.com