0 Replies Latest reply on Jun 10, 2009 2:40 PM by parrygill

    Wraping Problem - Please help


      Hi Everyone:


        I am new to Flex and have a tough times with Flex controls.


        All my literals are stored in Database. Below are some examples i am having trouble with


      <mx:VBox width="100%" height="100%" horizontalAlign="center">
             <mx:Text width="100%"  id="myText" initialize="initText();"/>
                 <mx:Spacer height="10" />
                 <mx:Panel id="attendeePanel" layout="vertical" horizontalScrollPolicy="off" verticalScrollPolicy="off"
                  styleName="defaultPanel" headerHeight="0">
                     <mx:VBox width="500">
                         <mx:Form width="480" id="AttendeeProfileForm" styleName="defaultForm"  /> 
                     <mx:Spacer />
             <mx:Text paddingLeft="10" paddingRight="10" width="100%"  id="myTextQuestion" initialize="initTextQuestion();"/>


      As you can see i have to hardcode to make it working[Wrap]

          public function initTextQuestion():void
             myTextQuestion.htmlText="<font><b>QUESTIONS:</b></font> If you have questions , please contact Tour de ff Canada 2009 Headquaters at 1-866-281-4545. You can also email us at \n<a href='mailto:info@gggg.com'> <b> info@ggg.com </b> </a>. Operational hours are: Monday - Friday, 8:30 am to 5:30 pm EST" ;


      if i add the same stuff into database \n does not work. for expamle if i use

      <mx:Text paddingLeft="10" paddingRight="10" width="100%"  id="myTextQuestion" htmlText="{model.SiteCopyObject.QUESTIONCONCERN_LABEL}"/>


      where model.SiteCopyObject.QUESTIONCONCERN_LABEL is same value stored in Database.


      I have tried changing '\n' or '{\n}' or \\n or \r in databse but no luck. Any help on this is much appriciated.

      please see the attached how it look in both cases.


      Thanks in advance.