Dynamic Text Area

Hi EveryOne,
Due to font rendering issues in flex 3, I've decided to create a custom dynamic TextArea because my App consists of different languages. So in creationComplete Handler, Im calling a method like this
var str:String = htmlTextModification(super.text);
this.htmlText = str;
private function htmlTextModification(value:String):String
                              var valueRequired:String = "";
                              var valueLine:String = "";
                              var beggingSpaceIndex:int=0;
                              var endingSpaceIndex:int;
                              for(var i:int = 0;; i++)
                                        endingSpaceIndex = value.indexOf(" ", beggingSpaceIndex);
                                        if(endingSpaceIndex!=-1)
                                                  valueLine+= value.substring(beggingSpaceIndex,endingSpaceIndex) + " ";
                                                  this.text = valueLine ;
                                                  this.validateNow();
                                                  if(this.textWidth < this.width-10)
                                                            valueRequired+= value.substring(beggingSpaceIndex,endingSpaceIndex)+ " ";
                                                            beggingSpaceIndex = endingSpaceIndex + 1;
                                                  else
                                                            valueRequired+= "<br>" + value.substring(beggingSpaceIndex,endingSpaceIndex)+ " ";
                                                            valueLine = "";
                                                            valueLine+=value.substring(beggingSpaceIndex,endingSpaceIndex)+ " ";
                                                            beggingSpaceIndex = endingSpaceIndex + 1;
                                        else
                                                  break;
                              return valueRequired;
So that we can be setting the breaks in the text whenever the string width crosses the width of text area.
But calling validateNow() is a heavy process, is what I heard.
Is there a work around instead of validateNow(), I just want to calculate textWidth?. More Over I dont want this code in creationHandler. Is that also possible ? Thanks

Hello AGNIVESH,
Have you tried Text Layout Framework. This framework provide us(Developers ) more control on text Engine of flex.
Thanks,
Vikram

Similar Messages

  • Dynamic Text Area with no scrollbars question

    Hello All,
    I have an application that has a dynamic text area that pulls in XML content and i would like to have the text area grow, rather than use a scrollbar and i am wondering if anyone has done this or can point me in the right direction? I have dont quite a few searches and only find examples on how to do this in AS3, and i am using AS2 and CS3.
    Thanks in advance!

    If you are using AS2, then if you manually stretch the width of the textfield to what you want it to be, you can use the following to have it automatically rezise itself height-wise to fit whatever text you assign to it, where tfield is whatever instance name you assign to the textfield in the example code...
    tfield.autoSize = "left";
    tfield.text = "whatever your xml file text is";

  • Dynamic text and IE

    I have a dynamic text area which is fed by the value of a
    SharedObject.
    This appears to work fine in FF, but in IE, the dynamic text
    is rendered
    very small.
    Any ideas on why this is, and how to fix it?
    Seth Meranda
    smeranda2<at>unl<dot>edu

    quote:
    Originally posted by:
    AnandMX
    use embedFonts=true
    coz it seems that your fonts are not embedded thats y it is
    not visible there.
    Thanks - but why would the fonts be visible in Safari and
    Firefox, for example, and not in that version of IE?

  • Dynamic text in Long text of message

    Hi All
    Can you please guide me that how dynamic text are maintained in long text of the messages.
    I have used variable name between 2 ampersands 1.e. &var&..but its nt working. Where could be the mistake ?
    Regards,
    Shreya

    The problem is... I want to show an error message. and when user double clicks on that message, a pop up screen should come showing the detailed description of that message which also contains some dynamic text...eg:
    The message is "Please maintain ABC field for Company Code &1".
    To this short text i want to give a long text description eg:
    "For the Combination of Compay Code &2 and Account &3, ABC field should not be blank".
    Dynamic text element in short text is working fine,  but in long text it is showing &2 and &3..,, ie these are not populated with values.
    Where could be the mistake ?

  • Dynamic text, system fonts, and special characters...

    This one is boggling my mind so if someone can help, please
    do
    I've got a dynamic text area pulling text from a MySQL
    database via AMFPHP. The text includes special characters such as
    accents, umlauts, etc (multi-language site platform). Most of them
    work fine, and ALL of them work fine when I'm on a Mac client.
    However, if I use a Windows client machine in either Firefox or
    IE6, there are a couple characters that for whatever reason just
    don't seem to show up -- instead I get the [] box character.
    The only characters I've found that seem to be affected like
    this are European quote characters like &#146; &#147; and
    &#148; (hex characters 146, 147, 148). I'm using the familiar
    ampersand-pound-number-semicolon escape sequence for them. And like
    I said, they all display fine on Mac/Firefox and Mac/Safari. Why
    are all my other special characters (umlauts, accents, etc) working
    fine and just these things failing? It's also worth noting that
    they look fine if I dump them out to a PHP file and pull it up in a
    browser...
    Please, if anyone can help... I've been bashing my head
    against this for the better part of the day!!

    Hi,
    did you take a look at the "gateway.php' ? There you can
    define charsets. Maybe a western europe charset will
    help you out. Since french language is using a lot more
    accents and so.
    This is what you can find in the gateway.php of amfphp. Just
    have to set the right one ;)

  • Dynamic text box, HTML Text with Image

    Hello Everyone,
    I am using Flash version 8. I have used the text tool and
    created a dynamic text box and have attached the UIScrollBar
    component to it. This text box is configured to allow the use of
    html text to be inputted to it. I have code that reads a file which
    contains a list of text files that I then read and place them into
    the text box. The user can use the scroll bar to scroll through all
    the text.
    I have created an image that is a picture of the tab portion
    of a file folder. On the tab I have place some text. This was all
    done in Photoshop. This tab image is used to separate the different
    stories in the text box. The image is save as a jpeg file
    Everything you have just read works with out any problems.
    Now for the problem!
    This image is only 20 pixels tall and the text is not very
    readable. As we all know the HTML tags are very limited in Flash 8.
    Ideally I would like to put the text and image in to the text
    box as I would normally do. Then place text on top of the image and
    have it all scroll properly with in the text box.
    I have taken the tab image and converted it in to a graph
    symbol and then put the text on top of the image. This looks good;
    however I don’t know how (or if it is even possible) to place
    the graphic symbol in to the text box at the correct place within
    the text.
    Does anyone have ideas on what may work? Remember that the
    image I am working with is only 20 pixels tall which is why the
    text quality on the image is so poor.
    Thank you all for any help you may provide,
    Steve

    Yes Tim I am using the <img> tag and I know that I
    can’t place text over the image. I have set the height and
    width to be the exact size of the image. However When you go to the
    webpage it will open the movie to the maximum size based on the
    resolution of your display; however I do maintain the aspect ratio
    of the movie. For testing I did set a fix size to the size of the
    movie. Sometimes the fix size (1000x750) looks better and sometimes
    a larger size (example 1280x1024). I believe that the main problem
    is the fact the size of the image is 670 pixels wide by 25 pixels
    high and of the 25 pixels the text is only 18 pixels tall. In
    Photoshop this makes it about a 1.75 point font. As you can see the
    real problem is that I don’t have enough pixels to make up
    the text. This is why I am looking for an alterative way to create
    the text.
    I tried importing the image into flash as a graphic symbol
    and then using the text tool to create the text. The results looked
    real sharp, the text was nice and crisp (just what I wanted). The
    problem is that I could not find a way to place the graphic symbol
    into the dynamic text area like id did using the <img> tag.
    This symbol needs to scroll as you scroll the text in the text
    area.
    This is why I am asking for help. I am looking for some ideas
    that may work.
    Thank you,
    Steve

  • HTML tags in Dynamic Text

    I am planning on building a website in flash with 90 percent
    of the site in dynamic text. Will flash read the html tags in a
    text file as text or html and code it as a browser would.

    yes, Flash will accept HTML tags, and there are a couple of
    different methods to make this work. But in my limited experience,
    it's a little tricky, and both require a little extra Actionscript
    to make them function. I read some info about this in some of the
    tutorials, but I can't point to them at the moment.
    First, one can use use the ' yourtext_txt.htmlText =
    yoursource_txt; ' method to read a plain text line that contains
    HTML tags. However there are some parameters that need to be set up
    before it will function properly, and there are several optionals
    to choose from, but it seems most importantly to set the HTML
    property to true as in ' yourtext_txt.html = true; ' but there
    still are several different things requried, especially if your
    looking for dynamic on-the-fly changes to different sections of
    text. here's a snipit I'd been working on that uses a similar
    system with arrays:
    did that work, huh? thought I was adding code.
    Another method is to use a CSS or by defining your own
    stylesheet tags within Flash Actionscript. This method seems to
    work better when using LoadVars, where you would define the
    ContentStyle. First you define the StyleSheet, then apply it to the
    dynamic text area (I'll try this again), here's a snipit: (OK I
    think i get it the code will attach to the end of this post, so I
    post the second set in a following post)
    These are just some examples though, from my own
    experimentations, and of course onw would define thier own
    variables. I'm no expert, but I hope this gets you going, just a
    few ideas.

  • Scrollbar for XML text area

    HI,
    A newbie here and on Flash,
    Sorry for my poor englih too, I'm French.
    My pb :
    I the attach file you will find forfaits.fla which is connected to xml/forfaits.xml. The pb is the UI Component SROLL BAR for the textarea for the img description doesn't work .
    Can you help me?
    Thx a lot

    I think you should connect it to a text area.
    Just create a multiline dynamic text area, connect the text area to the xml file and use the toXMLString();
    for example: myTxt.text = myXML.toXMLString();
    and then attach the scroll bar to the dynamic multiline text area.
    hope it helped

  • Help "enhancing" dynamic text

    Im am currently working on a flash website and have succeeded
    in making a scrolling text area... the thing is the text is dynamic
    and you can't change like one word into one specific font... i've
    been also trying to link this certain word to a different frame in
    the scrolling text area but i can't! also i want to make an image
    appear when you "mouse over" a certain word in this dynamic text
    area. Any help would be much appreciated thank you.

    Hi kglad,
    Thank you for the note. I have gone over the Actionscript and
    can find no obvious flaw. Can you tell me how a property might be
    assigned before the text is loaded? Could network traffic affect
    this?
    I did some tests during peak usage times.
    The tests of the project seem to indicate that once the error
    was encountered and the content reloaded (keeping the same session)
    that the error would not reoccur. Closing the session and browser
    and er-entering resulted in no error.
    However, closing the session then deleting cookies and/or
    temporary internet files then starting a new session caused the
    problem to reoccur. I could delete just the cookies and the problem
    would reoccur. I could delete just the temporary internet files and
    the problem would reoccur.
    Again, the error, when it does occur, seems to affect some
    text fields more than others and never consistantly. Its a moving
    target.
    Thank you for your earlier clue.
    Tim

  • Text Areas in Apex 4.2.2 - Can't be read dynamically - Bug?

    Hi,
    i encountered a big problem after upgrading Apex from 4.1 to 4.2.2.
    On an application page there is a Text Area which will be read and processed after clicking a button. I didn't want a refresh of the page and did it with a dynamic action.
    All this worked like a charm with 4.1.
    Since the upgrade, the value of the Text Area is always returned as null while processing the dynamic action, but the value is filled by the user!
    When i change the type of the Element to Rich Text Area everything works fine, but i don't want this because i don't want HTML in the corresponding table.
    Is this a bug? How can i workaround it?
    Thank you
    Regards
    Daniel

    Yep - it's a bug. But it only occurs when there is also a rich text editor present. The issue is in the initialization of an apex.item instance. When using jQuery .val() the value of the textarea can be retrieved, but not when using $v. And $v is a shortcut to apex.item.getValue. Since a dynamic action is an apex thing, it'll use apex.item.getValue to get the value. And that is returning nothing. The reason is not getValue being wrong, but an incorrect init of the apex.item object when the item concerns a textarea and there is a rich text editor present.
    To explain this somewhat:
    In getValue there is this code:
                if( !lArray ) {
                    switch( _self.item_type ) {
                        /* check single checkbox entry */
                        case 'CHECKBOX'             :lReturn = ( _self.node.checked ) ? _self.node.value : ""; break;
                        /* check single radio entry */
                        case 'RADIO'                :lReturn = ( _self.node.checked ) ? _self.node.value : ""; break;
                        case 'TEXT'                 :lReturn = _self.node.value; break;
                        case 'POPUP_LOV'            :lReturn = _self.node.value; break;
                        case 'POPUP_KEY_LOV'        :lReturn = apex.jQuery( '#' + _self.node.id + "_HIDDENVALUE", apex.gPageContext$ ).val(); break;
                        case 'DATEPICKER'           :lReturn = _self.node.value; break;
                        case 'HIDDEN'               :lReturn = _self.node.value; break;
                        case 'DISPLAY_SAVES_STATE'  :lReturn = _self.node.value; break;
                        case 'DISPLAY_ONLY'         :lReturn = _self.node.innerHTML; break;
                        case 'TEXTAREA'             :lReturn = _self.node.value; break;
                        case 'FCKEDITOR'            :
                                oEditor = FCKeditorAPI.GetInstance( _self.node.id ) ;
                                lReturn = oEditor.GetHTML();
                                break;
                        default                     :lReturn = ""; break;
                return lReturn;
    When textarea you'd expect a return of the value, but nope. Obviously when performing $v on the textarea nothing is returned so what occurs is the default clause.
    Using
    document.getElementById("P1_TEXTAREA").value
    //or
    $("#P1_TEXTAREA").val()
    will return the value.
    However, what is being tested is _self.item_type and _self.node.value.
    These are properties instantiated when apex.item is called, as such
    apex.item("P1_TEXTAREA")
    Checking the console will show all the properties assigned. The node is correct, but item_type is empty... That explains the empty return from getValue.
    So why is the item_type empty when there is a text editor?
    item.js, line 147 (for those interested)
        if( lNodeType === 'FIELDSET' ) {
            //snipped out since irrelevant
        }else if( lNodeType === 'INPUT' ) {
            //snipped out since irrelevant
            // if the node type is not a fieldset or an input, initialise item_type accordingly
        } else {
            _self.item_type = lNodeType;
            switch( _self.item_type ) {
                case 'TEXTAREA':
                    if( _self.node.parentNode.className === 'html_editor' && _self.node.parentNode.tagName === 'FIELDSET' ) {
                        _self.item_type = 'FCKEDITOR';
                    } else {
                        try {
                            if (CKEDITOR.instances[ _self.id ] ) {
                                _self.item_type = 'CKEDITOR3';
                            } else {
                                _self.item_type = null;
                        } catch( e ) {}
                    break;
                case 'SELECT':
                    break;
                case 'SPAN':
                    if( _self.node.className === 'display_only' ) {
                        _self.item_type = 'DISPLAY_ONLY';
                    break;
                default:
                    _self.item_type = false;
        } // end if on lNodeType
    } //end if (_self.node)
    The relevant parts here is the else clause on node type. You can see that firstly item_type is assigned the nodetype. In the case of a textarea the nodetype will be set to "TEXTAREA". Good.
    Then, case TEXTAREA. First if? Nope, not an htmleditor. Else. Try. And in this try is the mistake. If there are no rich text editors then attempting to call CKEDITOR will throw an error since it will not be instantiated. That is good though, and makes sure that when there are no RTE's that the item_type will correctly be textarea since there is no re-assigment happening of item_type.
    Consider now when there are RTE's. The CKEDITOR object will be instantiated, so no error. However, the textarea is obviously not in the array of editors since it is no editor, so it won't be found and we land in the else clause. There the item type is assigned "null". Thus, no longer "TEXTAREA".
    So subsequently, when calling getValue the code will return nothing because of the "unknown" itemtype of the item.
    So all that to say that yes, there is a bug in the apex code when you mix a textarea and a rich text editor on a page. Is there anything you can do to solve this? No, not really, save for editing item.js to account for the faulty assignment.
    If you still have this requirement to have a textarea and RTE on the same page, then I can only advise you not to use a dynamic action, but using an ondemand process and calling it yourself, providing the correct value by using jQuery calls instead of apex ones.
    (plus: should be logged as a bug by someone...)

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

  • How to assign the output of a function to a text area: a PLSQL challenge

    I have a function that returns a PLSQL table of varchar4(4000)
    Here is its signature in a package:
    create or replace package researcher_request_pk
    is
    TYPE query_table_type is table of varchar2(4000) index by binary_integer;
    FUNCTION RequestSQL(P_RRQ_ID in number) return query_table_type;
    end;
    I use this to get around the 32k limit on clobs and varchar2 variables
    I want to assign the output of the function to a text area. I've tried the following PLSQL in a dynamic action and also as the source attribute of the Text Area but it doesn't populate the text area.
    Here is the code i'm using
    declare
    v_table researcher_request_pk.query_table_type;
    begin
    v_table:=researcher_request_pk.RequestSQL(:P64_RRQ_ID);
    for i in 1..v_table.count loop
    htp.prn(v_table(i));
    end loop;
    end;
    Any ideas on the correct syntax to do this?
    thanks in advance
    PaulP

    Thanks for your reply
    The function does populate the PLSQL table with data. e.g. If I place that exact code in a PLSQL region it generates the output on the screen with no problems. The problem is just generating the output into the text area.
    I want the text area to display the output of the PLSQL table (-a dynamic select SQL statement) which I then plan to execute to return records.( i.e. I've build my own runtime query builder)
    My plan is to allow the user to edit the SQL output first before sending the statement for execution.
    Funnily enough I do get the very first word of the first cell appearing, namely 'SELECT' but nothing else. Maybe the "||" that follows has something to do with the rest of it not appearing?? hmmm... will experiment more.
    thanks
    PaulP

  • How to use same dynamic text, multiple times in a Movie

    FLASH CS5.5
    How can a dynamic text field be used multiple times, on any
    frame, in any new layer during a Movie?
    ~~
    A number of unique dynamic text fields are being used.
    The intent is to use them each, many times during a Movie.
    (i.e. a users first name)
    They are successfully being "ExternalInterfaced" from a PDF form field.
    (the SWF is displayed within the PDF as a RMA)
    This all works well, IF I only use one instance of the dynamic text field.
    (one use of each unique text field)
    If I try and use that same dynamic text field, again, in a new layer, later in the SWF,
    all of that said, duplicate dynamic text fields do not display.
    ~~
    Stumped!!!
    Thanks in advance for your advice / comments!
    D-

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • How do I make dynamic text look static while the HMTL tagging is enabled?

    Hi all,
    I am using flash 8 with AS 2.0.
    I have a dynamic text field where I am setting it's text value through a variable. Now, I need this dynamic text field content to look like static font on runtime. I tried embedding the text field but that makes my file so heavy and most importantly, it disables the HTML tagging on the text field.
    Please suggest me on how to make a dynamic text field content look static on runtime while the HTML tagging is enabled and working fine.
    Thanks.

    I am sorry. But the attachment was not intended for what you
    thought my friend.
    It was there so that there are no confusions for what I mean by look of dynamic and static text fields.

  • Linking a class to a dynamic text field to load XML data.

    Hi,
    I'm quite new to ActionScript and would be grateful for any help here.
    I want to load text into a dynamic text field (called 'about_tab') using  a class depending on the language selected (by clicking on a flag icon)  by the user.
    I managed to get this to work when the ActionScript was written directly  in the timeline, but am having problems with doing the same thing via a  class.
    This is my class file:
    package
    import flash.display.SimpleButton;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    import flash.events.Event;
    public class ChangeLang extends SimpleButton
    public function ChangeLang()
    addEventListener(MouseEvent.CLICK, switchLang);
    trace("ChangeLang class working");
    public function switchLang(event:MouseEvent):void
    var lang = event.target.name;
    var req:URLRequest = new  URLRequest("languages/"+lang+".xml");
    var loader:URLLoader = new URLLoader();
    var substance:XML;
    function xmlLoaded(event:Event):void
    trace("function xmlLoaded is running");
    substance = new XML(loader.data);
    about_tab.text =  substance.about_lbl;
    loader.addEventListener(Event.COMPLETE, xmlLoaded);
    loader.load(req);
    Here's one of my XML files (the other is the same except "About" is  written in German):
    <substance>
    <about_lbl>About</about_lbl>
    </substance>
    When I run it, it returns my trace statements that the class ChangeLang  and the function xmlLoaded are running, but no text appears in the  dynamic text field (I should/want to see the word 'About'). I get this  error message:
    1120: Access of undefined property about_tab
    The problem, I'm guessing, is in the part in red in my code. I think I need to target the text field in the display list by creating a  reference to it. If so, could someonw point out how I do this, or perhaps a tutorial that would help. I've tried adding the word stage (i.e.,stage.about_tab.text =  substance.about_lbl; ) but it still doesn't connect. I guess there's something really simple I'm missing, so I  apologize if this comes across as a stupid question
    Thanks for any help.

    Hello flashrocket!
    I'm also new to AS3 and I've just started using external classes and I think I know what you should do to put your code to work.
    Instead of using the text field you created inside your flash file, why don't you use the "TextField" class to create an instance of this object? It's the exact same thing as when you create and instantiate a new text field inside Flash.
    First, import flash.text.*; (includes classes like TextField, TextFieldAutoSize, TextFormat, TextFormatAlign, etc)
    Than you just have to create a var like
    public var about_tab : TextField;
    or
    public var about_tab : TextField = new TextField();
    then, to adjust the properties of this tab you use dotsyntax as if it where on your stage like:
    about_tab.x = 50; about_tab.alpha = .5; etc...
    you can even create a function to "config your textField"
              private function createAndConfigTextField() : void {
                   about_tab = new TextField(); //you only need this line if you
              // only typed something like "public var about_tab:TextField;
              // if instead you used "public var about_tab:TextField = new TextField(); outside
              // this function, just skip this first line because you already have an instance of
              // text field named "about_tab"...
                            about_tab.autoSize = TextFieldAutoSize.CENTER;
                   about_tab.background = true;
                   about_tab.border = true;
                   var aboutTextFormat : TextFormat = new TextFormat();
                   format.font = "Arial";
                   format.color = 0x000000;
                   format.size = 11;
                   format.bold = true;
                   format.align = TextFormatAlign.CENTER;
                   about_tab.defaultTextFormat = aboutTextFormat;
                   addChild(about_tab);
    This is just an example of what you can do... I hope you get it... let me know if you have any doubt...

Maybe you are looking for