bearings and dynamic text

I have a dynamic text field, the scroll and text is rendered in HTML format. How can I create a rollover for the text State? Thank you.

Thank you. I tried a stylesheet earlier and could not make it work, but it might have been user error. I'll try the docs.

Tags: Adobe Animate

Similar Questions

  • Flash CS5 glitch with setChildIndex and dynamic text fields?

    Since the upgrade to CS5 to have two distinct problems.

    I have a clip with 5 images.  When I'm on frame 3 (main game) and I use the command setChildIndex on one on-screen element existing on the framework itself, the item in question will now be added to permenantly stage and will persist through the management remaining (end and end the game).  This behavior was not present in the project until I converted it to CS5.  If I remove the setChildIndex command, the on-screen elements stop their depth of sorting (as your would expect) and they bleed is more in the next section, which is at the end of the level.

    I also have problems with a dynamic text field.  It is currently set to don't not selectable, but when you hover over the field it shows the symbol for the pointer of your mouse cursor, and when you click it, a highlight of small block appears to the left or to the right of the field.  You cannot change the contents of the field, or even select them, but if you try a small black mark selection appears at the end of the field.  I destroyed and recreated this field, and the bahavior seems to remain the same.

    Any other experience of these questions, or something similar with CS5?

    using any actionscript code that adds a DisplayObject instance to the list of display (including the definition of its index) has always caused this behavior.  which is expected.

    to remove this item use removeChild() or removeChildAt().

    to disable the cursor changes during a textfield, assign the property mouseChildren of the parent of the textfield property to false.

  • Selector of colors and dynamic text fields

    Hello

    Good so I have two problems here, and I don't know how to solve one of them!

    Problem 1.
    Change the font of a dynamic text field. I know how to do this with the properties of text etc format using action script, but I don't know how if you create a text field in the action script.

    I need to change the font of the text in a dynamic text field that is created and remains on the scene. I have a clip, and inside that movie clip is the text field, with all the content properly shaped. If I had to add the text field using action script I loose all the formatting. So is that nothing at all that I can change the text field properties by using script of action of a dynamic text field created on the stage?

    Problem 2.
    The color picker component! I want to use the color selector component to change the color of the text in the above dynamic text box. No doubt, I have the same problem as above, but this side, I can't work out how to draw the color from the color picker value when the user selects. I tried to use the ColorPickerEvent ColorPickerEvent.CHANGE knowledge... and so on. However, I am coding on the frame instead of an external action script file. and when I export the movie, the following error message appears: 1046: Type was not found or is not a constant of compilation: ColorPickerEvent.

    Someone at - it ideas how can I remedy this?

    Your help will be greatly appreciated, it is part of my studies and have been fighting for a time: S

    Many thanks for you help in advance

    Jude :D

    I don't know if I understand the problem of text format that you are experiencing. Looks like you want to have text that is already formatted to change to another format.

    If this is the case, simply set the new text format whenever the time comes to do so.

    If you have...

    var format1:TextFormat = new TextFormat();
    Format1.font = "arial";
    Format1. Size = 14;

    var format2:TextFormat = new TextFormat();
    format2.font = "papyrus."
    format2.size = 28;

    Then you can switch between the two formats according to the needs...

    tField.setTextFormat (format1);

    tField.setTextFormat (format2);

    as long as these formats are in the scope of their guest.

  • Masking and dynamic text

    I have a dynamic text in a Clip on the timeline. Text looks fine without mask. When I add a layer for the dynamic text Clip mask disappears. Can someone shed some light why?

    Thank you

    That's all! On most of the other my dynamic text fields I does not include the seal of the police, don't know why I don't have it.

    Thanks for the reply and I'll have to remember this one!

  • Creating a hyperlink in AS2 using xml and dynamic text

    Hello

    I want to insert two hyperlinks to my site flash AS2 - one for my e-mail address and one for my domain name. I use an xml file to import the e-mail address and url.

    As in my code, you can see that I'm storing xml data in _root.email and _root.website, and I actually got their display on the Web page (in dynamic text boxes email_txt.text and website_txt.text, respectfully), but how do I actually turn the latter into links?

    getURL (_root.website) works for the url link. You can run whenever you want.

    If you want to make a link in your textfield, html-enable website_txt and use a standard hyperlink: 'link'.

    How you want to send it work depends on the two choices that I mentioned above.

  • Variables and dynamic text fields

    OK, so I'm a complete dunce, but I only use Flash for a few days so please be patient with me.

    All I want to do is a dynamic text field to view a variable using Actionscript. The code is below, but it won't work. Can someone please advise? I have to use LoadVars? I thought it was just for the external data.

    just a little mistake

    var myValue:String = "text to display";
    This.icon_mc.icon_txt. Text = myValue;

  • Alpha, content and dynamic text field

    Hello.

    I have a MovieClip (mcContainer) that contains a dynamic text field (txt1), which was created directly on the stage. Then I added some text to the text box with:

    this.mcContainer.txt1.text = 'my wonderful text ";

    When I change the mcContainer alpha, alpha of the text does not change. So, what I am doing wrong?

    Thank you in advance.

    you need to incorporate your policy to apply a change to the _alpha of a textfield.

  • _Alpha and dynamic text

    I have a dynamic textfield in a movieclip. I control the _alpha of the movieclip with As the background of the movieclip will fade but not dynamic textfield.

    Any suggestions on how to get the TextField to fade as well?

    See you soon
    Alfred

    You'd have to enbed the police.

  • Dynamic text and Movieclip appear on turnover of button

    Hi guys,.

    I have a question - when one of my buttons is overthrown, I want text and a movieclip to appear. When the button is wrapped is no longer on, I want the text and the movieclip to disappear.

    The way that I was going to do was to have anchor_mc as an anchor and turnover have the movieclip play from inside the anchor (as his exact x & Y that his need to) and dynamic text appear.

    Issues related to the:

    (1) How can I join mc_textbox to mc_anchor - OR, how set coordinates for just where mc_textbox should show?

    (2) I how then do the movieclip disappear if the button is reversed is no longer?

    (3) is it not possible for me to all the functions of dynamic merge into one function, text by using IF statements? I tried, but could not get out.

    AS3 code is attached below.

    import flash.events.MouseEvent;

    Stop();

    LINE1.addEventListener (MouseEvent.ROLL_OVER, line_in1, false, 0, true);
    LINE1.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    Line2.addEventListener (MouseEvent.ROLL_OVER, line_in2, false, 0, true);
    Line2.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line3.addEventListener (MouseEvent.ROLL_OVER, line_in3, false, 0, true);
    line3.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    LINE4.addEventListener (MouseEvent.ROLL_OVER, line_in4, false, 0, true);
    LINE4.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line5.addEventListener (MouseEvent.ROLL_OVER, line_in5, false, 0, true);
    line5.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    Line6.addEventListener (MouseEvent.ROLL_OVER, line_in6, false, 0, true);
    Line6.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line7.addEventListener (MouseEvent.ROLL_OVER, line_in7, false, 0, true);
    line7.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line8.addEventListener (MouseEvent.ROLL_OVER, line_in8, false, 0, true);
    line8.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);
    LINE9.addEventListener (MouseEvent.ROLL_OVER, line_in9, false, 0, true);
    LINE9.addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);

    function line_in1(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;
    }
    function line_in2(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in3(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in4(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in5(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in6(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in7(e:MouseEvent):void
    {
    line_output. Text = "this is a test made by the MonkeyTest who previously messed up\n and test a new line;

    }
    function line_in8(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }
    function line_in9(e:MouseEvent):void
    {
    line_output. Text = "until sali has previously MonkeyTest the test done one is - this";
    }

    function line_out(e:MouseEvent):void
    {
    line_output. Text = "";
    var MC = new mc_empty(); addChild (mc);
    }

    It isn't relly clear for me what you have from what you want, so these answers can be as not clear to you.

    1. a way to join them together is instead of the one maually in the other file.  Another way is to use addChild to add the text mc at anchor... mc_anchor.addChild (mc_textbox);  To control where the mc of text is displayed you can set its x and y actionscript properties.using... mc_textbox.x = 0;

    2. make the movieclip disappear you can set its visible property to false... mc_anchor.visible = false;

    3. you can probably reduce code considerably, although it depends in part on what changes there really going to be in the text that is displayed for each bearing.  For now, I'll assume that the text will be completely different for each...

    for (var i: uint = 1; i<10;>

    this ["Line" + String (i)] .addEventListener (MouseEvent.ROLL_OVER, line_in, false, 0, true);
    This ["Line" + String (i)] .addEventListener (MouseEvent.ROLL_OUT, line_out, false, 0, true);

    }

    function line_in(e:MouseEvent):void {}

    var lineTarget:MovieClip = MovieClip(e:currentTarget);

    could use a switch the series if if you know what is a switch

    if(lineTarget == LINE1) {}

    do things for line1

    } else if(lineTarget == line2) {}

    do things for line2

    ) otherwise if... etc.

    }

  • Static text is much better than the dynamic text with the same font settings

    Hello

    I have exactly the same parameters for static and dynamic text, but the static text seems much sharper. Someone knows why?

    Police: Trebuchet MS

    Size: 30 pt

    Anti-alias for readability

    There is a slight difference, but I would not say much better. Incorporate you the dynamic text characters.

  • Loading external/dynamic text fields

    I have a recurring problem with my fle flash and it involves add external SWF and dynamic text files.

    Here goes...

    My flash is implemented with 5 sections. Each separate section is composed different maintimeline on frames and labeled. SO, when you click on a section in the navigation bar it tells the movie to access this section labeled on chronology. On each article, there is a space for the external txt file or an external swf. I've done many tutorials on how to load these things and I can actually get them to load when I put the instance of them on the first image with the code of the main action. BUT I still want more in the timeline panel.

    For example... When you click on a section, I put the area of dynamic text on this article which is further down in the timeline panel. When I test the movie I see that the text box there, but there is no text in there. When I put the same text on image 1 box, it works. SO I think it has something to do with the code to find the instance further to the bottom of the timeline.

    I hope this makes sense... I enclose my code. Any help would be greatly appreciated because I see this as a recurring problem for me in each section.

    Thank you! Sandra

    LINK:

    http://www.sandraschmitt.com/Coclico/index100.html

    CODE:

    Stop();


    Exteranl loaded text fields
    var textLoader:URLLoader = new URLLoader();
    var textReq:URLRequest = new URLRequest ("text_philosophy.txt");

    function textLoaded(event:Event):void
    {
    philosophy_txt. Text = textLoader.data;
    }

    textLoader.load (textReq);
    textLoader.addEventListener (Event.COMPLETE, textLoaded);


    handle events for the buttons...
    collections.addEventListener (MouseEvent.CLICK, clickSection);
    raison.addEventListener (MouseEvent.CLICK, clickSection);
    stores.addEventListener (MouseEvent.CLICK, clickSection);
    news.addEventListener (MouseEvent.CLICK, clickSection);
    contact.addEventListener (MouseEvent.CLICK, clickSection);
    home.addEventListener (MouseEvent.CLICK, clickSection);


    function clickSection(evtObj:MouseEvent) {}
    trace shows what is happening... in the output window
    trace ("the"+ evtObj.target.name + "button was clicked!" ")
    Go to the clicked section on...
    gotoAndStop (evtObj.target.name);
    }

    You must wait until you are on the frame where the textfield must try to assign the text - you can't assign text if it is not present.  You can probably load all the text and saved it as a variable in frame 1, but this variable must be available on the framework where you assign the textfield text charge.

  • Tween alpha with dynamic text

    Hello!

    When I do next...
    1 dynamic Text: the text should be editable in ActionScript
    2. graphic: contains an Imagearriereplan and dynamic text.
    3 MovieClip: Contains a Tween alpha between the graph above.
    dynamic text is not mix on, the fact of the Imagearriereplan. (in exported movie, ctrl + enter)
    However in the previewmode (pressing enter) the text is mixture out.

    My question is: is it possible to mix a text? I think that some time ago I saw an ActionScript command to do so. But I want to tell an interpolation of alpa.
    And why it works in previewmode (enter) and not in the exported sequence (ctrl + enter)?

    Welcome, Tschouba

    You need to incorporate the outlines of fonts so that it works

  • Can I put Chinese and English characters in the same dynamic text box?

    I translate a game in several languages, which is Chinese. I noticed that in an area of dynamic text where English characters are included, they are not displayed when the .swf is exported. The police is embedded in the document with the selected characters. It seems that any character language is initially displayed in the text box, the other language is impossible. For example, if there are Chinese characters first, then English, the English will not display and vice versa. No matter what work around on this? I use Flash CS5 and Actionscript 2.0. Thank you!

    Use two different textfields, one above the other.  assign to the visible property of the textfield useless were false.

  • Create a link using dynamic text and Capture of Variable

    I'm building a dynamic website with Dreamweaver CS5 with Coldfusion 9

    Currently, I created an array of dynamic text. The table is created by querying the invoice table and displays all of the invoices customers. The columns Include invoice #, Date, amount paid, BalanceRemaining, Expiration Date. So, basically lists all invoices that I made a request to the unique customer. It is pulled up using a session variable, that I created from the login page.

    My question is I want to do the # "Bill" when you click on it it goes to a new page and executes a query that retrieves infro associated with this specific invoice such as Services rendered, the Description of Service, Date, price, Total. I was able to create a link to the invoice # but I'm stuck trying to figure out how to capture the Unique invoice # and apply it to the new query. Is it possible if yes, how?

    Thanks for your help!

    < cflock scope = "Session" type = "ReadOnly" timeout = "30" throwontimeout = "no" >

    < cfset MM_Username = Iif (IsDefined("Session.MM_Username"), "Session.MM_Username", DE("")) >

    < cfset MM_UserAuthorization = Iif (IsDefined ("Session.MM_UserAuthorization"), "Session.MM_UserAuthor-ization", DE("")) >

    < / cflock >

    < cfif MM_Username EQ "" EQ MM_UserAuthorization or "" or ListFind("User,Admin",MM_UserAuthorization) EQ 0 >

    < cfset MM_referer = CGI. SCRIPT_NAME >

    < cfif CGI. QUERY_STRING NEQ "" > "".

    < cfset MM_referer = MM_referer & "?" & CGI. QUERY_STRING >

    < / cfif >

    < cfset MM_failureURL = "" sorry.cfm? accessdenied = "and URLEncodedFormat (MM_referer) >"

    < cflocation url = "' #MM_failureURL # ' addtoken ="no">"

    < / cfif >

    < cfparam name = default "PageNum_Invoice" = "1" >

    < cfset GetFileFromPath = CurrentPage (GetBaseTemplatePath ()) >

    < cfparam name = default "PageNum_Query_Invoice" = "1" >

    < cfquery name = "Query_Invoice" datasource = "SBC" >

    SELECT DueDate, AppliedAmount, RefNumber, BalanceRemaining, TxnDate

    OF the invoice

    WHERE CustomerRefFullName = < cfoutput > ' #Session.FullName # ' < / cfoutput >

    < / cfquery >

    < cfset MaxRows_Query_Invoice = 10 >

    < cfset StartRow_Query_Invoice = Min ((PageNum_Query_Invoice-1) * MaxRows_Query_Invoice + 1, Max (voice of Query_In.) RecordCount, 1)) >

    < cfset EndRow_Query_Invoice = Min (StartRow_Query_Invoice + MaxRows_Query_Invoice-1, Query_Invoice.Rec ordCount) >

    < cfset TotalPages_Query_Invoice = Ceiling(Query_Invoice.RecordCount/MaxRows_Query_Invoice) >

    < cflock scope = "Session" timeout = "30" type = "Exclusive" >

    <! - Session variable for invoice reference number - >

    < cfset Session.RefNumber = Query_Invoice.RefNumber [1] >

    < / cflock >

    < cfset QueryString_Query_Invoice = Iif (CGI. QUERY_STRING NEQ "", FROM ('&' & XMLFormat (CGI.) (QUERY_STRING)), de("")) >

    < cfset tempPos = ListContainsNoCase (QueryString_Query_Invoice, "PageNum_Query_Invoice =", "&") >

    < cfif tempPos NEQ 0 >

    < cfset QueryString_Query_Invoice = ListDeleteAt (QueryString_Query_Invoice, tempPos, "&") >

    < / cfif >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    "< html > <!-InstanceBegin template="/Templates/customer_template.dwt.cfm ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 ">"

    <!-InstanceBeginEditable name = "title"--> < title > Untitled Document < / title > <! - InstanceEndEditable - >

    < link href = "styles/Main.css' rel ="stylesheet"type =" text/css">"

    < script src = "SpryAssets/SpryMenuBar.js" type = "text/javascript" > < / script > "

    < link href = "SpryAssets/SpryMenuBarHorizontal.css" rel = "stylesheet" type = "text/css" > "

    <!-InstanceBeginEditable name = 'head'-> head content goes here <! - InstanceEndEditable - > < / head >

    < body >

    < div id = "Container" >

    < div id = "header" > < img src = "Images/site Web - Image.gif" width = "393" height = "217" alt = "TS planning landscaping Logo and company name" > < / div >

    < div id = "menu_bar1" >

    < ul id = "MenuBar1" class = "MenuBarHorizontal" >

    < li > < a class = "MenuBarItemSubmenu" href = "index.cfm" > home < /a >

    < ul >

    < li > < a href = "#" > 1.1 < /a > < /li >

    < li > < a href = "#" > 1.2 < /a > < /li >

    < li > < a href = "#" > question 1.3 < /a > < /li >

    < /ul >

    < /li >

    < li > < a href = "#" > about us < /a > < /li >

    < li > < a href = "#" > Services < /a > < /li >

    < li > < a class = "MenuBarItemSubmenu" href = "#" > user account < /a >

    < ul >

    < li > < a href = "login.cfm" > Connect < /a > < /li >

    < li > < a href = "registration_page_contact.cfm" > register < /a > < /li > "

    < li > < a href = "members_page.cfm" > customer Page < /a > < /li > ""

    < /ul >

    < /li >

    < li > < a href = "#" > contact us < /a > < /li >

    < /ul >

    < / div >

    < div id = 'Hand' >

    < div id = "side_bar" > <!-InstanceBeginEditable name = "sidebar"-> content for id "side_bar" goes here <! - InstanceEndEditable - > < / div >

    < div id = "main_body" > <!-InstanceBeginEditable name = "mainbody"->

    < H1 > < cfoutput > #Session.FullName # < / cfoutput > bills < / h1 >

    < p > here you can view your bills current and past. < /p > < br >

    < name of the form = "customerinvoices" >

    < table border = "1" align = "center" >

    < b >

    < td > < div align = "center" > invoice # < / div > < table >

    < td > < div align = "center" > Date < / div > < table >

    paid < td > < div align = "center" > < / div > < table >

    < td > < div align = "center" > BalanceRemaining < / div > < table >

    Due Date < td > < div align = "center" > < / div > < table >

    < /tr >

    < cfoutput query = "Query_Invoice" StartRowOptional = "" #StartRow_Query_Invoice # "LignesMax =" #MaxRows_Query_Invoice #">"

    < b >

    < td > < a href = "invoice_number_page.cfm" > #Query_Invoice.RefNumber # < /a > < table >

    < td > #LSDateFormat (Query_Invoice.TxnDate, 'MMMM DD, YYYY') # < table >

    < td > #DollarFormat (Query_Invoice.AppliedAmount) # < table >

    < td > #DollarFormat (Query_Invoice.BalanceRemaining) # < table >

    < td > #LSDateFormat (Query_Invoice.DueDate, "MMMM DD, YYY'") # < table >

    < /tr >

    < / cfoutput >

    < / table > < / make >

    < p > < table border = "0" align = "center" >

    < cfoutput >

    < b >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = 1 #QueryString_Query_Invoice #"> first < /a >"

    < cfelse > sorry no bills have been found!

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice GT 1 >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #Max (DecrementValue (PageNum_Query_Invoice), 1) # QueryString_Query_Invoice #"> back < /a >"

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" "PageNum_Query_Invoice = #Min (IncrementValue (PageNum_Query_Invoice), Tota lPages_Query_Invoice) # QueryString_Query_Invoice # ' > next < /a >

    < / cfif > < table >

    < td > < cfif PageNum_Query_Invoice LT TotalPages_Query_Invoice >

    < a href = "#CurrentPage #?" PageNum_Query_Invoice = #TotalPages_Query_Invoice # QueryString_Query_In voice #"> last < /a >"

    < / cfif > < table >

    < /tr >

    < / cfoutput >

    < table / > < / p >

    <! - InstanceEndEditable - > < / div >

    < / div >

    < div id = "footer" >

    < p > home | Who are we | < /P > site map

    < p > & copy; TS in planning landscaping LLC 2010 < /p >

    < / div >

    < / div >

    < script type = "text/javascript" >

    var MenuBar1 = new Spry.Widget.MenuBar ("MenuBar1", {imgDown: "..."}) "" / SpryAssets/SpryMenuBarDownHover.gif ', imgRight: ".. ({"/ SpryAssets/SpryMenuBarRightHover.gif"});

    < /script >

    < / body >

    <! - InstanceEnd - > < / html >

    Without trying to sift through all the code has nothing to do with the question, I think you want to do something like this:

    Select number, Word

    etc.

    #word #.

    Then on nextpage.cfm, your variable will be url.thenumber.

  • Text dynamic and changing text in AS3

    I have a dynamic text box in my library.  I drag my main stage and give it a name... It's now a movieclip. The name is "mcAdmin".  I added a MOUSE_OVER event listener.  I want to change it the color of the text, but for now I just try to change the text; However, it does not display the change in the text that I want.  I do track and change is here on the output window, but it is not displayed as such.  How do I:

    (1) use AS3 to change the color of the font of the text

    (2) use AS3 to change the text and have it display?

    function onMouseOver_txtAdmin(e:MouseEvent):void
    {
    Mouse.Cursor = "Button";

    Current mcAdmin text is 'Administration '.

    I want to change the color of the Administartion on Mouse_Over

    but to see if I can come up with something, I just try to change the text.


    mcAdmin.text = "Hello";
    trace (mcAdmin.Text);


    mcPPMB.alpha =. 5;
    mcASB.alpha =. 5;
    mcISO.alpha =. 5;
    mcEA.alpha =. 5;
    mcAdmin.alpha = 1;

    mcAdmin.scaleX = 1.25;
    mcAdmin.scaleY = 1.25;
    }

    Thank you.

    1

    Type a name for the textfield object if it isn't already (sounds like you put it into a movieclip).

    to change the text, set the text property of your text field

    Like this

    myTextField_txt.text = "here is the text."

    or if she is inside a movieclip

    myClip_mc.myTextField_txt.text = "here is the text."

    To change the color, you need a TextFormat on it. To keep the same fontsize, police etc, you could first get the TextFormat of your existing Textfield, change the color of the TextFormat and place it on the TextField object.

    get the Textformat of the first character

    var TF:TextFormat = myTextField.getTextFormat (0.1)

    Set font color
    TF.color = 0xff0000;

    on the set of the text
    myTextField.setTextFormat (TF)

Maybe you are looking for