Dynamic text - entire paragraph is "BOLD" instead of a single word

I created my website in Flash and I use dynamic text with a scroll bar. I want just the first couple of words in a paragraph to show bold and the rest plain. It seems well in Flash but when I publish it, the whole paragraph is "BOLD".

I did the incorporation with Auto Fill character.

Here are the Flash file to see what I mean (about us):
http://www.swproductions.com/

I appreciate the advice or opinions.

Thank you!
Scot

tallscot,

> Basically I can't a single word in a paragraph
> be bold without making the whole paragraph "BOLD".

It is one of these "problems" with the dynamic text fields. Static text
fields behave differently - which means, they allow you to change the style on
some words or characters, same, but for dynamic text fields, you will have
must use the class TextFormat give you this same flexibility.
even if you type the text by hand. This applies to the color of the text, by the
way.

The TextFormat class allows you to apply your changes to a text as a field
whole or in part:

var fmt:TextFormat = new TextFormat();
FMT. Bold = true;
FMT. Color = 0xFF0000;

all the...
someTextFieldInstanceName.setTextFormat (fmt);

specific characters or...
someTextFieldInstanceName.setTextFormat (0, 5, fmt);

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Tags: Adobe Animate

Similar Questions

  • Dynamic text in paragraph in database form

    I'm building a site for a church and will put up a page for the pastor to his entry on the thoughts, as he sees fit. In database (access), there are spaces where the spaces must be and you can see where a paragraph ends and the other begins, but when I pull a page as dynamic text, that's all the words together in 1 paragraph. someone can help me.

    Thank you

    Never mind.

    You are geniuses.

    It worked. I had no doubt you could, just to help me collect everthing.

    Thanks a ton.

  • Review of the text of the paragraph is bold or italic [JS] CS3

    Hello

    I'm trying to write a script to check a document in section my paragraph and change the text leading 8 and size of points if it is not bold or italic. The problem that I'm trying retrun value I can used to search the text of paragraph is "BOLD" and or italic.

    Does anyone know how to do this?

    Here's what I have so far;

    var the_document = app.documents.item (0);
    var the_story = app.selection [0] .parentStory;

    counter = 0;

    {}
    var current_paragraph = the_story.paragraphs.item (counter)


    {with (the_document.textDefaults)}

    var mytextobject = current_paragraph.texts.firstItem ();
    mytextobject. Leading = 8;
    mytextobject.pointSize = 7;
    }

    counter ++;
    } While (counter < the_story.paragraphs.length);

    The font style is held in a text property called "fontStyle", a string of simple text holding something as "Ordinary", "Italic", "Bold" and "Bold Italic" (or, depending on your policy, something like 'Condensed Light', ' "Extended BOLD" #2 "or"76 Black Italic"").

    ATTENTION: you seem to be checking the entire paragraphs. If the fontstyle is mixed, the property will be indefinite. It will be "Bold" or "Italic" If the entire paragraph, including his final statement is bolded or italicized .

  • Control the appearance of the dynamic text

    Hi all

    is it possible to stretch the police dynamic text or make it bolder by using actionscript 2?

    Thank you!

    Patrick

    don't use movieclips onLoad().  use:

    var LCD:String;

    LCD = "PLEASE HOLD MODE > 1 SECOND TO SELECT;

    mc_LCD_text. LCD_text. Text = LCD;

    var format: TextFormat = new TextFormat();

    format. Color = 0 x 333333;

    format.font = "Helvetica"; //<- this="" won't="" work="" unless="" you="" embed="" fonts="">

    format. Size = 14;

    format. Bold = true

    LCD_text.setTextFormat (format);

  • Scroll event: movieclip instead of dynamic text

    Hello everyone. I am very very new to actionscript, so probably my question sounds a bit ridiculous.

    I'm putting an Arabic text to scroll with a custom scroll bar. So I found a nice video in youtube , all this with a dynamic text field. It works wonderful for Latin characters (from left to right and separated from the letters) but unfortunately not for Arabic characters (they don't connect). In fact, I do not use just a movieclip with the text instead of the dynamic text field. But I don't know how to change the actionscript code for the video instead of the dynamic text field.

    Here I show you the code for the scrolling text in a dynamic text field (it's a small code), on the stage, I got just the dynamic text field (instance name: texto_txt), the scroll bar (a vertical line, the name of the instance: scrollBar_mc) and the scrolling itself (a small rectangle, the instance name (:scrollHandle_mc):

    var content: String = "cjeihfirehjfejlkfjkerjfirjfejifjrijwkjfirwjeknlkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkllllllll";

    texto_txt. Text = content;
    texto_txt.WordWrap = true;

    var min: number = scrollHandle_mc.y;

    var max: number = min +(scrollBar_mc.height-scrollHandle_mc.height);

    var range: number = max - min;

    var arrastrando: Boolean = false;

    the var limits: Rectangle = new Rectangle (scrollHandle_mc.x, scrollHandle_mc.y, 0, scrollBar_mc.height - scrollHandle_mc.height);

    scrollHandle_mc.addEventListener (MouseEvent.MOUSE_DOWN, arrastrandoScroll);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopIt);

    function arrastrandoScroll(mouseEvent:MouseEvent)

    {

    scrollHandle_mc.startDrag (false, bounds);

    arrastrando = true;

    scrollHandle_mc.addEventListener (Event.ENTER_FRAME, progress);

    }

    function stopIt(mouseEvent:MouseEvent)

    {

    scrollHandle_mc.stopDrag ();

    arrastrando = false;

    }

    function progress(e:Event)

    {

    var moverScroll:Number = scrollHandle_mc.y - min;

    var p: Number = moverScroll/range;

    If (arrastrando is true)

    {

    texto_txt.scrollV = % * texto_txt.maxScrollV;

    }

    }

    What I want to do is clear the dynamic text field and use rather a movieclip (text_mc) which already includes the text, the bounding box would be a mask. How can I change the actionscript code? Could someone help me?

    It isn't really a question of mathematics, as it is a logical reasoning, but if you plan to do things with the lineup, you expect better familiarize themselves with the learning of mathematics as well.  Programming and math go hand in hand.

    This is a simplified explanation of what your code should-> if you move the wheel of 25% of the total distance, it can move, then the movieclip should be moved 25% of the distance, he can move (in the sense of oppostie).

    Your scroll handle can be moved from a predefined distance.  In your code, this is called the "range".  See if you can understand how this value is determined in 3 lines of code.

    var min: number = scrollHandle_mc.y;

    var max: number = min +(scrollBar_mc.height-scrollHandle_mc.height);

    var range: number = max - min;

    Later depending on your progress, you can see where the handle of the scrollbar values com into play again to determine where to place the textfield object.  But if we change that to be the movieclip, it becomes more similar to the following...

    function progress(e:Event)

    {

    var moverScroll:Number = scrollHandle_mc.y - min;

    var p: Number = moverScroll/range;

    If (arrastrando is true)

    {

    yourMC.y = % * (yourMCmaxY-yourMCminY) + yourMCMinY;

    where yourMCmaxY-yourMCminY's range of movement of the mc

    who is likely to be negative since yMax is likely< ymin="" for="" the="">

      }

    }

  • "BOLD" in dynamic text

    Hello

    I have a dynamic text on my stage called text_txt

    I want to write the HTML < b > < u > test < /b > < / u >

    So here is my code


    add_txt_style (text_txt);
    function add_txt_style(t:TextField):void {}

    t.condenseWhite = true;
    t.Selectable = false;
    var frm:TextFormat = new TextFormat();
    FRM.font = "Arial"; the real font name
    FRM. Size = 14;
    FRM. Bold = true
    t.antiAliasType = "Advanced";
    t.gridFitType = "pixels";
    t.embedFonts = true;
    t.setTextFormat (frm);

    }

    text_txt.htmlText = "< b > < u > test < /b > < / u >.

    The text is UNDERLINED, BUT NOT "BOLD"

    Did I miss something?

    Thank you very much

    in your code, you have assigned Arial only if your textfield uses ArialBold and is expected to see the same problem as you described above.

    the simplest (but not necessarily the best) for you to do is to add a (hidden) textfield and embed arial bold in this textfield.

  • Newbe help:-application of setting shape to a dynamic text box

    Hi I have a dynamic text box (box_pname), which is filled with the name of the specific page the user is currently, but I can't seem to apply any formting to the text (see code below).

    Can anyone help?

    Code

    Create a TextFormat object.
    var txt_fmt:TextFormat = new TextFormat();

    Specify the paragraph and character formatting.
    txt_fmt. Bold = true; apply "BOLD"
    txt_fmt. Italic = true; apply the italic
    txt_fmt. Size = 14; apply size 14

    This.box_pname = "enter the user details '; set the name of the Page
    This.box_pname.setTextFormat (txt_fmt); apply formatting to the text box

    Stop();

    Found, I had also entered the same name in the var area, once I deleted this text has changed. Thanks for the help.

  • External Embedded Fonts, dynamic text fields, later?

    Hi all

    I'm stuck in Flash8 land. Especially because I use mProjector and MDM Zinc to extend flash projectors and neither support AS3 properly so far. That said...

    Flash8 SWF file is able to use the fonts included in the 'other' sovereign wealth funds? I know it's a permanent fix and an area well-known confusion and well, I'm confused. All attempts I've done so far for an affair have succeeded or failed in various ways, but never completely to operate.

    What I want to do, use fields of dynamic text filled with data from a database (or XML file) with CSS styling, use fonts embedded in a "master font SWF". (and I would cream ice with that too!)

    Import fonts in, say, "shared.fla. I put them all for export via the link (with shared.swf). I opened my other FLAs (say main.fla) and I drag the library shared.fla fonts in main.fla library. Looking at the link, I see that it it set correctly import for Runtime sharing (shared.swf). I can see the fonts available in the list of fonts main.fla and can select and use it very well. I have to define the dynamic text field to incorporate policies to actually see them (and also myTextField.setStyle("embedFonts",true)).

    Now, everything works well and fine, but the kicker is when I want CSS to my text style. If I specify a login of linkage of police embedded in CSS, the text disappears. that I load 'style.css' and I h1 {font family: someEmbeddedFont;}, the < h1 > text will now disappear.

    Clues in how can I specify a font for use in CSS which incorporated thus will work WITHOUT this needed to be incorporated into the library police (as in, not an asset related)? Because it works fine if I incorporate the police in every single SWF. But when I try to use it as a common good, it does not work.

    Any ideas on how a person can achieve this?

    This is so I can change my shared.swf and provide all new fonts with the same identifiers link and change the font in an entire project without re - export any other sovereign wealth funds.

    Thanks for any info!

    I was more or less asking if you could create 2 new documents and comes knocking in the fonts and settings as an example of file for each of us looking to share certain assets of fonts properly.

    I would be happy to host a ZIP containing the example on my server files and you can put a file .txt with credits for you and/or your business.

    Re-edit:

    I want to especially your solution because the solution of sharedfonts.com (which by the way, does not work) is actually exported as Flash 6, CC1. Also your method requires only 1 file instead of a charger and 1 active fonts (fonts 2 files of each). When I change the documents in Flash 8 AS2, I have nothing else to errors. I think that sharedfonts.com is based on the hack is available in previous versions of flash, and that's why when I reproduce it in functional flash8, it simply doesn't work simply.

    Re-re-edit:

    So much worse... found an example of work, and it is not easy to find (unless you know its name or w/e): Sharing fonts in Flash

    His method works for me on the web and offline. It ended up being that if ever I save my documents in Flash CS3 and export to Flash 8, it won't work. But if I save-as down to Flash8 and then publish under flash8 also, it works. Very weird, but works...

  • Spacing and text Styles - paragraph are possible?

    First of all, can I change spacing of the paragraphs in Captivate 8? No line spacing, but the spacing of paragraphs. For example, 6 pt space after a paragraph as you can do in MS-Word.

    Second, 8 Captivate allows me to define text styles? I know I can set some styles for all objects such as the legends, but if I can define a style (for example MyTitle = Verdana 18pt "BOLD" or create 11pt Verdana plain = or MyEmphasis = 11pt Verdana italic red) and then apply to a text that I select an object of legend?

    Answer is doubly negative. Captivate is not as InDesign, its primary goal is e-Learning, to not publish or processing.

    There is no spacing of paragraphs, and I regret as much as you, only leading (line spacing).

    There are object styles only, no text style. Use a different (legend or form) text for the title, emphasis etc container and an appropriate object style. You can add attributes to individual words ("BOLD", false fat...) and the color as well. But that's all.

  • Photoshop 2015.5 CC: Text - text of paragraph tool

    Hello

    I can't change the width on a text paragraph by dragging the right side upper, medium and lower small square that appear when a text layer is active.

    When clicking the square just, it is committed, and deselect the layer. Workaround (kind of): layer converted to text and vice versa for the text of the paragraph then its possible to drag the boxes but only for a short time.

    Is this something others meet and is there a solution?
    MikaelUntitled-1.jpg

    Hello

    Sorry, you experience this problem. Try this workaround to see if that solves the problem of not being able to adjust the size of the text of paragraph https://helpx.adobe.com/photoshop/kb/enable-optional-extensions-photoshop-cc.html#Disable _ Reduce_User_Experience_Friction. However, where it says '3. Save the file as "PSUserConfig.txt" to your version of Photoshop settings folder:... "references to 2015 in the name of the file should be 2015.5 instead.

    I hope this helps.

  • How to get the current line or the entire paragraph?

    Hello.

    I am facing the following problem:

    Suppose I have the following in FrameMaker:

    It is a sentence. And (end of single line)

    There also this sentence. (end of paragraph)

    It is a sentence. And (back)

    There also this sentence. (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    It is a sentence. And (end of single line)

    There also this sentence. (return)

    There also this sentence. (return)

    But there is also this sentence (end of paragraph)

    What I want is this:

    Download the text of the entire paragraph where the insertion point of the cursor is.

    However, when exist from the ends of the hard line I want to change their behavior.

    This is the behavior to the foregoing:

    For the first example of the paragraph if the cursor is either first or second line I want to get the whole paragraph.

    Paragraph if the cursor is in the first line, I want only the first line. And if it's in the second row, I want only the second line.

    The third paragraph if the cursor in the first or second line, I want the first and second lines must be retrieved in plain text. Also, if the cursor is in the third line I want only to the third line.

    For the fourth paragraph, it functions as the third paragraph. If the cursor is in the third row I get only this one.

    Could you please provide of the FDK in C++ to start with code?

    It's a puzzle.

    As you are in the forum script, I am related to this here. You must understand the FDK C++ code yourself.

    There's not much to tease my brain with it. You get the point where the cursor is and pick up the pieces of text more line via the GetText() method, using a bit field which includes the FTI_String and the FTI_LineEnd. Each end of the line has a modifier that tells you if it's a hard or a return. You also get the offset in the paragraph of the current position of the cursor, and then create the necessary strings from the array of items of text returned by the GetText method.

    If you want the full execution of the code, ask someone to program it for you and be prepared to pay for the work.

    Good luck

  • AS3 SharedObject of dynamic text field entry into other frameworks...

    Hello I have the script:

    var gTeams:Array = new Array (teamName1, teamName2, teamName3);

    var so:SharedObject = SharedObject.getLocal ("dataSO");

    var shared_data:String;

    for (var i: int = 0; i < gTeams.length; i ++) {}

    If (["team_name_" + i] so.data) {}

    gTeams [i] .text = so.data ["team_name_" + i];

    }

    }

    function saveTextF (): void {}

    for (i = 0; i < gTeams.length; i ++) {}

    so. Data ["team_name_" + i] = gTeams [i]. Text;

    }

    so. Flush();

    }

    In other settings, I have dynamic text fields:

    tName1, tName2, tName3.

    But I can't get the text in the text entry fields.

    How can I do?


    Thanks for your help

    Use instead of TextEvent.TEXT_INPUT Event.CHANGE:

    teamName1.addEventListener (Event.CHANGE, tName1F);

    function tName1F(e:Event):void {}

    .

    .

    .

    Note that the response number 8 is the right answer to your question.

  • How can I import a Word text, including paragraph withdrawals?

    I use 7 Captivate.

    I need to import the text of a series of documents written in Microsoft Word.

    When I copy and paste most of the formatting is preserved. Bold, italic and underline import perfectly, but I lose the paragraphs indented. They all are aligned to the left.

    Is it possible to import the first lines indented paragraphs?

    Thanks in advance.

    Interesting Lilybiri; But what I see as a 'bad practice' is charging $600 for a program that cannot do some of the basics that many others do it without flinching.

    Moreover, the last time I checked InDesign were used to create mLearning programs. Thanks anyway.

  • Formatting dynamic text (box) [AS2]

    Hello

    I have a button called B and a dynamic text box called T

    How can I make the text box

    (1) fill color change?

    (2) change font of a text?

    (3) to change the font style of the text to "BOLD" or regular?

    (4) to a line of color around the frame?

    To place the text in the frame to click the button I would use

    B.onRelease = function() {T.text = "foo"};

    Also is it possible to change the color of a button by clicking or by moving over it?

    I need to do this in AS2

    Thanks in advance

    Trevor

    To manipulate the font of the text in the textfield, you must use the TextFormat class and the setTextFormatmethod of the TextField.  The help documentation should have examples if you linger, and you should be able to find useful information by using Google.  Here is a link to the TextFormat class we have on the web: http://docs.brajeshwar.com/as2/TextFormat.html

    To change the characteristics of the textfield also far than go to background and border colors, the TextField class has properties to those that you can set.  Here is a link to the same site linked above, but for the information of class TextField.

    http://docs.Brajeshwar.com/AS2/TextField.html

  • the value of the fontStyle in dynamic text with a combobox

    Hello

    I'm making a combobox control, so the user can change the fontstyle that they entered into a dynamic text field.

    Right now it says that the setStyle and fontStyle properties are undefined o f TextRenderer and Textfield.

    That's what I have so far.

    change the font style

    fontStyleCombo.prompt = "Font Style";

    fontStyleCombo.addItem({label:"Medium"});)

    fontStyleCombo.addItem({label:"Bold"});)

    fontStyleCombo.addItem({label:"Italic"});)

    fontStyleCombo.addItem ({label: "Bold Italic"});

    fontStyleCombo.addEventListener (Event.CHANGE, setFontStyle);

    function setFontStyle(evt:Event):void

    {

    var fontStyles:Object = "Bold";

    If (fontStyleCombo.selectedIndex > - 1).

    {

    fontStyles = fontStyleCombo.selectedItem.data;

    }

    var fontStyleFormat:TextRenderer = new TextRenderer();

    fontStyleFormat.fontStyle = fontStyles;

    inputTextRender01.setStyle (fontStyleFormat);

    }

    What class of object is the TextField?  If it is a dynamic TextField then it has properties or methods such as you try to implement.  For the TextField instance you should use the setTextFormat method as after you set the different formats to set.

Maybe you are looking for

  • How to add systemic preferences in RHEL which will enter into force for all profiles.

    I used the following documentation trying to accomplish my task: https://developer.Mozilla.org/en/A_Brief_Guide_to_Mozilla_Preferences https://developer.Mozilla.org/en/Automatic_Mozilla_Configurator/Locked_config_settings I want to add the proxy sett

  • Compaq Presario SR1522X HELP power switch!

    Help! For the life of me, I can't understand the switch on the front panel. How the hell does it work? My switch will not turn on the computer. I took the front panel off, and I'm completely baffled works even in the switch. Any help would be appreci

  • Equium 80 - 132 has PSA87E - the LCD connector pinout

    Can someone help me or direct me to a site (if not here :)) where I can find the pinout of the connector from the motherboard to the LCD from a satellitewithmodel name: EA80-132Model No.PSA87E - 0030069K

  • unusual files in the user part of windows xp pro.

    Hi, this could be something I did and maybe not. If I go to Documents and Settings all users, it has acquired a two different application data folders. And on top of the USER folder now has one in this document, 'MY Documents' and if I try to delete

  • Pavilion g6 1311-eq: driver problem... Please help me!

    Hello.. Help, please... I put t have solutions . I have a problem with the video card driver. I tried to do an update to the current version comes from 2011. When I try to install the drivers from this site... exactly from here ... http://support.hp.