Bold a dynamic text box is not working...

Dear Friends,
i neeed to create a text box with bold letter. my coding is as follows.
but it always shows bold, even i gave tf1.bold = false.
    reptitle.text = options[0][0].tit;
    var tf1:TextFormat = new TextFormat();
    tf1.color = options[0][0].col;
    tf1.size = options[0][0].siz;
    tf1.bold = options[0][0].bol;
    reptitle.setTextFormat(tf1);
    trace("bold :"+tf1.bold + " dat :"+options[0][0].bol);
Note: where options[0][0] is an array has all the properties bold = true/false, color = 0x----.
Any body can clarify me.. i got struct up..pls..
Thanks and Regards,
Syed Abdul Rahim

you'll need two textformat instances (one with bold enabled and one without) to display text with both bold and non-bold text at the same time with setTextFormat.  if you just want to change the text from bold to non-bold (and vice-versa), you can use one instance.

Similar Messages

  • On Unix Clinet with Java 1.4.1 plug-in, text boxes are not working

    On Unix Client with Java 1.4.1 plug-in version, text box is not responsive (I am not able to enter anything).
    But If load the same applet on the same client by upgrading the plug-in to 1.4.2, it works. Is this a known bug in Java plug-in 1.4.1?
    Thanks

    Might be related...
    http://developer.java.sun.com/developer/bugParade/bugs/4806274.html

  • Keynote Text box transition not working correctly

    Having issues trying to create an animated build-in effect on a bulleted textbox in Keynote ("Scale Big" and "By Character") - I am using Keynote v6.1
    I have created it many times before but for some reason the latest version of keynote refuses to render it properly. I choose the text box, then animate and "Build In" is selected as default, then I:
    - Click on "Add an Effect"
    - Select "Scale Big"
    - Select "By Character" (under "Text Delivery" option) and then preview
    However, the effect that is rendered is the same as the "By Object" option. This effect used to work for me befroe but only recenlty is givin me issues.
    Anybody else face the same issue ? Please advise - it's one of my favorite effects in my presentations

    Scale Big - By Character works correctly for me, I suggest you repair Keynote by doing the following:
    ensure you complete all the tasks and in the order shown:
    1  delete all the iWork applications if you have them, not just Keynote by using Appcleaner from Mac Update to      do this, its freeware
    2  restart the Mac;   Apple menu > restart
    3  immediately after the start chime,  press the shift key until you see the Apple symbol.
         let the Mac fully boot up,  it will take longer as the OS is repairing the drive
    4  when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive  then First Aid tab and      click  repair disc permissions
    5  when complete, restart the Mac normally
    6  install Keynote from the Mac App Store
    please report back.

  • Timing of text box will not appear.  My text boxes stop working on slide 5 and they will not work for the remainder of the slide show.

    Timing of text box not working.  I get the first few slides to work and then on slide 5 my text boxes will not appear.  And they do not appear for the rest of the slide show.   Help anyone.

    Text caption is timed to appear at 2 seconds, but you have a click box at 0sec. Its duration is very short, which means that I cannot see if there is a pause. I suspect this click box is pausing at the end of its timeline, which is at 0.3secs and the Text caption at 2 seconds will not appear before the user has clicked on that click box. The timeline is the core of Captivate, learn at least how to read it.
    Tiny Timeline Tidbits - Captivate blog
    If you want the green text caption 'Click on...' to appear right at the beginning of the slide, you have to check its Timing accordion: set it to start at 0 secs instead of 2 secs and extend its duration to the 'rest of the slide'.
    I don't know what is in the Group. That group and the HIghlight box will disappear at 3 seconds. Or maybe the action that is triggered by the Clickbox is different from 'Continue'?
    Lilybiri

  • Issues with dynamic text box formatting

    I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.
    I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
    The dymanic text field is set to render as HTML. In my actions layer, I set the text:
    this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
    In summary:
    1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
    2. If I embed the font, the alpha fade works but the HTML formatting does not.
    How do I resolve this? It's driving me nuts!

    How do you embed just one style?
    I've tried typing three words in the text field and formatting each (regular, bold, italic) but the text field just defaults to whichever format is first.
    Also, I tried embeding the whole character list and did not have success.

  • Displaying the result of a calculation in a dynamic text box

    Hi folks,
    I'm having a very minor issue here (operator error, I'm sure ). With the help of some folks here, I've created a series of calculations, and I've got that part down. Now, I just need it to show up in the movie.
    I've created the dynamic text box in Flash (CS3), but when I hit test, it won't show up.
    After all the calculations, I should have a figure that I call totalmoney. My dynamic text box is called total. The user doesn't need to hit anything for it to appear. It just appears as part of the movie.
    Here's my code:
    stop();
    var startDate:Date = new Date(2010,0,12);  // use your  startyear, startmonth, startdate in the new Date() parameters.
    var  currentDate:Date = new Date();  // assuming user's clock is correct and in your  timezone.  else use server date/time.
    var numberOfSeconds:Number =  (currentDate.getTime()-startDate.getTime())/1000;
    var interest:Number =  (numberOfSeconds*0.74356);
    var totalmoney:Number =  (interest+15,000,000);
    function displaytotal(evt:TextEvent):void {
         total.text = "totalmoney";
    Any thoughts?
    Thanks!
    Napo

    You didn't have to bury any of the calculations in the function--leaving it as you had it is better.  They could remain where they a=werew, and you'll probably find you want them outside it if you have other plans for using them.  If left inside, they only have scope inside.  In the programming world, it's good to think of functions as things that do one thing and one thing only (though it isn't often practiced that way)--it's called modular design.
    When you place an event as an argument for a function, it typically means that there is an event listener that initiates the call to the function.  If you work with buttons you'll see what I mean.  But if the plan is to create your own call to a function when you desire it as such, not have it driven by an event listener, then you don't need to pass any event to it, though you may pass some other type of variable to it if need be.
    For instance, what you have now will call the function without an argument because the function has the value built into its code....
    displaytotal();
    But you could also make the function a little more generic and set it up to recieve the value instead as an argument...
    function displaytotal(amt:Number):void {
         total.text = String(amt); // an earlier error of mine
    displaytotal(totalmoney);
    That would make your function a little more useful.  Now it could be used to display other Number variables as well.
    // my earlier error was that a textfield displays text, so you need to convert the Number value to s String.
    Hope I'm not confusing you.

  • I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I have powerpoint for Mac on my imac.  I can't seem to get the active text box function to work like it did on my PC.  How can I insert an active textbox into a presentation that will allow me to type while presenting?

    I've gotten a little further on this. The dynamic select is
    working fine. It's the "a href" code that isn't. I'm wondering if
    someone can look at this line and tell me if it's okay to build the
    query string this way. The storeid comes through fine but I'm still
    not getting the employeeid value to pass. Here's line that's not
    working:
    td><a href="registerStoreCust.php?storeid=<?php echo
    $row_storeRS['storeid']; echo "&employeeid="; echo
    $_GET['employeeLM']; ?>">Register
    Customer</a></td>

  • Targeting Dynamic Text Box inside moviecip with variable

    Hi,
    How does one target a dynamic text box to change the border
    color inside of a movie clip? Example below which does not work
    theName = ("answerPrint" + arryCount);
    boxName = ("box" + (arryCount+1));
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0x00cc66;

    Thanks for the reinforcement, but I should of indicated what
    was what:
    theName = ("answerPrint" + arryCount);// Name of Variable
    inside Dynamic Text Box Inside MovieClip
    boxName = ("box" + (arryCount+1));// Instance Name of Actual
    Dynamic Text Box Inside MovieClip
    _root.pagePrintPartA[theName][boxName].border = true;
    _root.pagePrintPartA[theName][boxName].borderColor =
    0xFF0000;
    By certifying this script you showed me wher I went wron (not
    seeing the forest from the trees). The last two lines should be:
    _root.pagePrintPartA[boxName].border = true;
    _root.pagePrintPartA[boxName].borderColor = 0xFF0000;
    I was targeting backwards. Thanks alot DazFaz.

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

    I'm translating a game into several different languages, one of which is Chinese. I've noticed that in a dynamic text box where English characters are included also, they aren't displayed when the .swf is exported. The font is embedded in the document with all characters selected. It seems like whatever language-character is first displayed in the text box, the other language cannot be. For instance, if there are Chinese characters first, then English, the English will not display, and vice-versa. Any work around on this? I am using Flash CS5 and Actionscript 2.0. Thanks!

    Kglad - I'm not sure I follow your instructions for the fix. I assume you want me to set the _visible property to false via Actionscript ( textInvisible._visible = false; ). What is the purpose of this second text field - does it need any specific content in it to function? It doesn't seem to work to fix the problem but maybe I'm misunderstanding.

  • Dynamic text box problems

    I have created a dynamic text box and an input text box.
    I have produced code that replicates whatever is typed in the
    input box to display in the dynamic box along with a date and time
    stamp once a button is clicked.
    This all works fine, except for the sizes of the fonts. for
    both boxes, i selected font size 10 . The input box is fine,
    however the dynamic box text is huge.
    When i make the dynamic text font smaller, it fits in fine,
    but the input text that is inserted into the dynamic text box comes
    in too big. If i make the input text box font smaller it is
    unreadable when typing it in.
    any soultion to how to make my font consistent. I am assumin
    the problem is because both the text boxes are different sizes,
    however i don't know how to resolve the issue.
    Any help is much appreciated.
    Laura

    hi laura
    i think the problem it's in the targetPath "
    mainClip.newspaper_mc.newinstructions.text =
    lu.welcome[langIdx];".
    chech if you have mistype the instance names of your
    movieClip and rewrite it or in the Actions panel select the path "
    mainClip.newspaper_mc.newinstructions" and click the button
    "Insert Target Path" this will open a popup with a tree of your
    MC's on the stage, so you can browse and find the textfield. i hope
    i helped you if not let me know!

  • Dynamic Text Boxes / Resizing text boxes

    I have a site with a dynamic text box that I have initialized
    (I'm not sure that that is the correct term) at the beginning with:
    myText = new LoadVars();
    myText.onLoad = function()
    { textBox_txt.htmlText = this.content;
    myText.load("text/bio.txt");
    stop();
    Then I have just used a text box throughout with the same
    instance name, although sometimes I have it on a new keyframe. I
    assumed I could just keep loading text into it on different frames
    with:
    stop();
    myText.load("text/performances.txt");
    This appears to be working, except that sometimes it seems to
    be confused and the text box on a certain frame has the wrong text
    in it. Do I have to initialize one for each frame in order for them
    to display the right code? What could be causing it to load another
    text file if it's frame action is telling it to load something
    else? It seems unnecessary to have to re-initialize it for a new
    text box instance in every new frame, but is that the way it has to
    be done?
    Also, I'm not clear on resizing text boxes. It seems like if
    I use the width and height numbers to resize this text box on
    different pages then it changes the size of the text inside, and
    the scroll bar (the UIScrollbar) is a little squishy looking
    sometimes. How does this work?
    Thanks for any help.

    You will find it much better to create a new LoadVars object
    for each of the frames, just call them myText1 myText2 etc.
    The name of the text box instance in this case is irrelevant
    but best practice would be to give them individual names.
    As for the stretching effect use setSize() for UI
    components.

  • Part 2: Load Image from URL into Dynamic Text Box - goodinson.snapshot

    I have a flash file where a user can add an image url into a Dynamic Text Box (image_in.text) and the image will now appear in the flash file.
    I am using goodinson.snapshot as featured in this article: Saving Flash graphics as image files at runtime | Adobe Developer Connection
    This application works fine (graphic is generated and downloaded) only if a user chooses an included graphic in the flash file (loaded externally) or if I declare a url inside the flash file for the load image variable (var image_url:String = "http://website.com/image.jpg";).
    However, if a user enters an image url into the Dynamic Text Box (image_in.text), which the flash does successfully load, the download image function no longer works!
    Is this a security bug in flash itself? Or am I missing a code tweak somewhere? 
    If an FLA that does this already exists somewhere, let me know.
    Thanks in advance for your help!

    Thanks for your response!
    The image urls are on the same domain as where the swf is.
    I don't understand how declaring the variable as the url is different from declaring it from the value of a dynamic text box... it's the same url, but only one method works, shouldn't they both work?
    var image_url:String = "http://website.com/image.jpg"; works..
    var image_url:String = image_in.text; does not work, even though the value for image_in.text is identical to the one in the example above.
    Since they are all on the same domain, this should work, right?
    Thanks again.

  • Help with code for score-keeping with dynamic text box

    Hi All,
    I'm having an actionscript 2.0 problem with keeping score.
    I have a dynamic text box with a variable called score.
    I have the following action code for that variable:
    _root.score = 0;
    For the correct answer button I have this action:
    _root.score = Number (score) +10;
    This works fine to increase the score by 10 for each correct answer.
    The problem is that I can't get an if statement to work for when the score reaches 150 to gotoAndPlay a certain frame. I've tried various syntax, I've tried it on the action for a button and an action for the timeline with: 
    onRelease = function () {
    (My learning game is set up to allow for users to answer up to four extra questions to reach the score of 150).
    Nothing works. Any suggestions please?
    Pam

    Below is a link to a small sample file.  See if you can find anything different between your file and the one linked that might cause yours to not work as desired.
    http://www.nedwebs.com/Flash/AS2_score_sample.fla

  • 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

  • Text arrays (variables) and Dynamic Text Box

    Hello everyone. I have a text file (let's call it sample.txt)
    that has numerous variables or arrays in this format:
    &info=This is some information
    &stuff=This is more stuff
    &whatever=Even more stuff again....
    Anyway, I need to load a particular variable via individual
    buttons from this same sample.txt file into a dynamic text box
    (let's call it dynText), and I am a bit lost as to how to do it.
    Please provide me a solution thank you.
    Glenn

    Thank you very much, it's greatly appreciated. It worked
    perfectly except that it does not like variables that begin with
    numbers like:
    &401_2b=401_2b
    The above doesn't work, but if I do this...
    &h401_2b=401_2b
    Everything is fine. Problem being, I am generating the
    variables via PHP and therefore cannot "change" them. Can you
    provide me with a way that ActionScript can "see" the variable that
    starts with a numeric value? Thanks for your time.
    Glenn

Maybe you are looking for

  • Copying text from pdf, "square" characters

    Using SQL 2005 standard edition. I have an issue with pdf generated reports. When copying text from the pdf (from a cell in a table row) the characters are just pasted as "squares" into notepad\word etc. Each character is just a small square. I am us

  • Third party: trigger customer invoice from MIRO

    Hi all, this is the requierement: after the MIRO of the vendor invoice it's ncessary to trigger automatically the customer invoice (third party flow). Do you know specific userexit to use? Other solutions? Let me know for further information. Thank y

  • When Exporting PDF to Excel using Pro XI not all content converts.

    The first portion of the PDF is not included and only the first page of several pages converts.  Is this a trial limitation or a something I'm doing wrong?  thx

  • Adding a gap between tracks AFTER they've been purchased from iTunes?

    Hello. My son gave me his old iPod (white, 10gigs, 2nd generation?), mechanical click wheel. Very nice. Already backed up my System to the little devil. I've been buying music from iTunes, typically classical music. I just added to the Mac and to the

  • Monthly payment plans for macbook pro

    I am planning to purchase a 15" Macbook Pro, but I really would prefer if I could pay off the bill monthly. I know that you can do the Barcalaycard, but is there any way to pay it off monthly without having to get a credit card? if I did get the cred