Dynamic Text Help

I'm having a small problem in my dynamic text box. For some
reason numbers are not being displayed correctly. I am working with
the Render Text as HTML box checked and am trying to get this
result :
01/15/09: No Meeting
01/15/09: Camping Trip
simple enough, however this is what i am ending up with:
1/1/: No Meeting
1/1/: Camping Trip
Here is the code i am using which returns the above result:
main_info.htmlText ="<p>01/15/09: No
Meeting</p>01/15/09: Camping Trip";
For whatever reason its not liking my numbers, is there
something that i am supposed to put in front of a set of numbers so
it displays it without thinking it is html code ?
Thanks for any help you can offer.

I use this piece of code:
//Load Text
Stage.scaleMode = "noScale";
articleData = new LoadVars();
articleData.onLoad = function() {
box.htmlText = this.job1;
title.htmlText = this.title;
And its works fine on my computer(local), but when i upload
the files the text
dont appear.
I have tried to do another swf to test and the problem still
and i try to use
http://....same problem

Similar Messages

  • Dynamic Text Field is not displaying foreign characters... HELP!

    I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
    Here's what I've tried.
    Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly? What am I missing? Please help...

    More info: I'm noticing that in the actual dynamic text field in my .FLA file, if I type a foreign character like é, it pops up as a block. My family font is set to New Caledonia... is it possible that New Caledonia doesn't have those particular glyphs? The thing that doesn't make sense to me though is, last year when I made this card, it worked fine with New Caledonia... Any help is greatly appreciated!!

  • Dynamic Text won't Print - Ahhhh! Help!!!

    I'm importing a png file using an xml file and a text file
    for importing text. The image and text show up fine, but when I
    PRINT, both don't show up. I"VE GOT TO GO LIVE WITH THIS TODAY. It
    has to Print! PLEASE HELP!

    I found my own answer and thought I should share it with all
    of you. Since I was so surprised that you had to use ActionScript
    to tell the movie to allow dynamic text or a dynamic png files to
    print. You basically add the following lines for each instance of
    dyanmica text or for a movie clip. I was alos using a prebuilt
    component, so I had to give this component an instance name.
    function printpic(){
    print(this.pic, "bframe");
    I called the function printpic just to stay in alignment with
    the instance name of the movie clip on the stage which was pic.
    Then everything printed like it was suppose to.
    D

  • Help Needed for Dynamic Text

    I am looking to create a good dynamic text scroller like the
    one that
    is a component. Any one have information on how to make one
    it is
    really appreciated.
    Thanks
    Randy

    In your program and dynamic actions use structure RP50D for return dates (RP50D-DATE1 and RP50D-DATE2 to retrun values)
    0000 06 75 I INS,0041,,,(RP50D-DATE1),(RP50D-DATE2)/D
    0000 06 76 W P0041-DAR01='01'
    0000 06 77 W P0041-DAT01=RP50D-DATE1
    PROGRAM  ZHPADYN.
    TABLES : RP50D,
             P0000,
             P0041.
    *&      Form  GET_DATE
    *       text
    FORM GET_DATE .
      DATA : I0041 LIKE P0041,
             L_DAT LIKE P0041-DAT01,
             L_DAR LIKE P0041-DAR01.
      PERFORM READ_INFOTYPE(SAPFP50P) USING P0000-PERNR
                                            '0041'
                                            P0000-BEGDA
                                            P0000-ENDDA
                                            '1'
                                            'NOP'
                                            I0041.
      DO 12 TIMES
         VARYING L_DAR FROM I0041-DAR01 NEXT I0041-DAR02
         VARYING L_DAT FROM I0041-DAT01 NEXT I0041-DAT02.
        IF L_DAR = 'HR'.
          RP50D-DATE1 = L_DAT.
        ENDIF.
        IF L_DAR = 'PE'.
          RP50D-DATE2 = L_DAT.
        ENDIF.
      ENDDO.
    ENDFORM.                    "GET_DATE
    Hope this helps,
    Puneet

  • Help ! flash MX dynamic texts

    i have created a dynamic text box to make it to a scroll bar
    . when i select the top part of the text and change color black
    change to red , then when i go to preview . how come the hol text
    in the box also change to red color? i'm newbie in flash MX .. can
    some one give me a solution? tks

    I think text boxes only render in one color. Your option is
    to tell render the text box as HTML (look in the Properties
    Inspector for the tect box for that option) and use HTML font
    attributes in your dynamic text to control the color.
    Hope that helps!

  • 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

  • Please Help -- Dynamic Text Wont Load :-(

    Hi Gang,
    I've just written a quick mail form in Flash8Pro/PHP - the
    user enters their contact details & a message, and it sends it
    off to the specified email address.
    The feature works fine for the most part, but there's one
    little problem. The dynamic text field that confirms the message
    has been sent successfully isn't working properly. I'm using the
    following php code to send dynamic text back to the flash document
    saying the message has gone through OK:
    print "sendresult=Message Sent!";
    where sendresult is the name of the dynamic text field's
    variable.
    The strange thing is that the code works fine if the
    sendresult dynamic text field is inserted into the main flash
    document. It's only when I put the sendresult field into the movie
    clip that holds the flash mail form (including the button with the
    loadvariablesnum command), that the text won't update at all. I've
    tried:
    print "_root.enquirypage.sendresult=Data Sent!"
    and
    print "enquirypage.sendresult=Data Sent!", but neither of
    those make any difference.
    Any suggestions? Anybody know what's causing this problem?
    Any help would be very very appreciated - I know I could probably
    get around this by just setting the visibility of the dynamic text
    field on & off when necessary and keeping it in the main flash
    doc, but I'll be using this feature quite a lot and I'd really like
    a proper/versatile solution. In case it's necessary, the
    actionscript that sends the message off to the php is just:
    loadVariablesNum ("form.php", 0, "POST");
    Many thanks in advance gang,
    - Jay

    Your code loadVariablesNum ("form.php", 0, "POST"); will load
    your variable sendresult in level 0 - the main timeline. If you put
    the text field inside a movie clip it expects a local variable in
    that movie clip.
    Use _level0.sendresult or _root.sendresult as the dynamic
    field's variable.
    Or, instead of loadVariablesNum you could use loadVariables,
    like this:
    _root.enquirypage.loadVariables("form.php", "POST");
    or, if you make the call from a button inside the movie clip:
    this.loadVariables("form.php", "POST");
    /uamg

  • Newb needs help with dynamic text

    Hi Everyone,
    I don't like being a newb - but that's how it is...
    I'm trying to create a multipage registration form that
    allows uses to register products.
    The first page asks for name etc, and on the second page I
    want it to say "Welcome "+username "!" - that sort of thing...
    The problem is I can't get it to keep the dynamic text values
    accross the pages.
    I can get it to repeat the input on the first page with this
    code:
    _root.firstname_txt.onChanged = function() {
    _root.firstname_repeat.text="Hello
    "+_root.firstname_txt.text;
    However when I call it on the second page it is undefined:
    second_repeat.text="hello "+_root.firstnamt_txt.text;
    trace (_root.second_repeat.text);
    I'm sure this is something simple and I'm just a programming
    dunce...
    Any help is appreciated.
    ta

    if your textfield (_root.firstname_repeat) doesn't exist on
    the 2nd frame, its text property will be undefined.
    to remedy, either extend your textfield's existance into the
    frames needed or use a variable to store its text property (in your
    onChanged handler) and use that variable to retrieve the value you
    need.

  • Help with dynamic text

    Hi, I was just wondering if anyone could help me out.
    Basically, I'v created a dynamic text on the main timeline
    with an instance name of "score". I then created a button within 2
    movie clips. The idea is that when the button is pressed, I add to
    the score. The code I'm using on the button is
    on(press){
    _root.score.text +=20;
    I'm not an experienced actionscripter, I was wondering if
    anyone could maybe tell me where I'v gone wrong and what to do to
    make this work. Thanks xD

    Hmmm.
    Well officially the .text property of a textfield is a string
    so what will happen is that the 20 gets turned into string and
    concatenated (or appended) the the string value in the text
    property.
    Can you clarfify the problem? Is your textfield changing or
    not?
    If it is changing then you will need to do something like:
    _root.score.text = Number(_root.score.text)+20;
    That requires that a valid number already exists in the
    textfield. It might be safer to track the score in a separate
    variable and then assign it to the textfield's text property each
    time it changes.
    If its not changing then try putting a trace in to see what's
    happening:
    on(press){
    trace("textfield is:"+_root.score)
    _root.score.text +=20;
    If you see 'undefined' then it may just be a typo - perhaps
    you called it Score with an uppercase S for example. If its defined
    and nothing is visible then it could be that you've embedded fonts
    without numbers or something like that.

  • Help with dynamic text and and css !

    My second question of the day.
    I'm trying to build a feature in my app in which the user can
    hide/reveal
    bolding and or
    italics and or
    underlining. The text is being loaded in from an xml file
    and I was thinking about styling it with css in order to get the
    underlining. My problem is that the only way I can think about
    pulling this off is to have a css style sheet that has a defined
    bold,italic and underline class defined- - then another one that
    just has a italic and underline class defined -- then another one
    that has just a bold and underline class defined . . . and so on
    and so on. You can see why I would prefer a much more streamlined
    system. Unfortunately my experience with dynamic text styling is
    somewhat limited. Hopefully someone can help me out here.

    Perfect. I knew it was some little snippet that I was
    forgetting. I made a temporary fix of creating a 0% alpha box over
    the button like a fake click area above the text, and that worked
    but I know that it was a half-arsed way of working around it.
    Thanks.

  • HELP! Dynamic text is KILLING me!

    I have a movie clip inside a movie clip with a dynamic text
    box in that with the VAR, btntxt. From the main timeline I am
    changing what the text box says by stating with actionscript
    _root.movieclip1.movieclip2.btntxt = "hello, how are you doing?";
    But this isn't working! The text box disappears on me and will not
    load. Can anyone help with this?
    Thanks, Colton

    Try this:
    _root.movieclip1.movieclip2.btntxt.text = "hello, how are you
    doing?";
    If that doesn't work, delete "btntxt" from the VAR field and
    enter put that "btntxt" into the <Instance Name> field.
    And make sure your movieclips have Instance Names of
    "movieclip1" and "movieclip2" as well.
    Chris

  • New and need help - drag and drop with dynamic text

    So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
    Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
    So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
    Your help would be much appreciated!
    This is my code:
    var counter:Number = 0;
    var startX:Number;
    var startY:Number;
    six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
    function pickUp(event:MouseEvent):void {
        event.target.startDrag(true);
    reply_txt.text = "";
    event.target.parent.addChild(event.target);
    startX = event.target.x;
    startY = event.target.y;
    function dropIt(event:MouseEvent):void {
        event.target.stopDrag();
    var myTargetName:String = "target" + event.target.name;
    var myTarget:DisplayObject = getChildByName(myTargetName);
    if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
        reply_txt.text = "Good Job!";
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    event.target.x = myTarget.x;
    event.target.y = myTarget.y;
    } else {
    reply_txt.text = "Try Again!";
    event.target.x = startX;
    event.target.y = startY;
        if(counter == 6){
            reply_txt.text = "Congrats, you're finished!";
    six_mc.buttonMode = true;
    five_mc.buttonMode = true;
    four_mc.buttonMode = true;
    three_mc.buttonMode = true;
    two_mc.buttonMode = true;
    one_mc.buttonMode = true;

    where you have
    xxx.text = ....
    is where you're assigning text.

  • Help with delivering dynamic text through an external file, through XML?

    I'm struggling to find the best way to deliver dynamic text
    from an external file, through XML, to a Flash file.
    I use small Flash pieces to deliver multiple sets of content
    through a single .swf file. An example is here:
    http://www.esi-intl.com/public/government/federal.asp
    In the .swf file at the bottom, I'm using a three-scene .fla
    file. I'm putting the actionScript in the Actions layer atop each
    frame. Example:
    stop ();
    loadVarsText = new LoadVars();
    loadVarsText.load("fedNews.txt");
    //assign a function which fires when the data is loaded:
    loadVarsText.onLoad = function(success) {
    if (success) {
    trace("done loading");
    //Now that we know the data is loaded,
    //set the text content of the Text Field
    //with the instance name "scroller" equal to the
    //contents of the variable
    scroller.html=true;
    scroller.htmlText = this.var1;
    } else {
    trace("not loaded");
    In that .txt file, I'm putting the information like this:
    var1=<font face="tahoma,verdana,sans-serif" size="11px"
    color="#000000"><b><a href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
    Grants ESI Course CON353
    Equivalency</a></b><br>Advanced Business Solution
    in Contracting (CON 353) is an equivalency for DAU's CON 3535
    course, Advanced Business Solutions for Mission Support. <a
    href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
    color="#996633">Continue</font></U></a></font>
    So much of this is pick-ups from what I've researched in
    Google. I'm looking for a way I can feel more confident in my code,
    and also have that code follow CSS.
    Lastly, I recognize the problems in XML with using single
    quotes / double quotes, and the & symbol. This is one of my
    largest time sucks, and I'd like to find a better way to do this.
    Thank you

    Hi,
    Did you ever find a resolution to this? I'm having a similar
    issue that I can't seem to get multiline dynamic text working in
    CS3.
    The font is embedded but it just displays the first line, and
    then a blank. I'm sure this worked fine in Flash MX.
    Cheers, Ant

  • 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

  • Help figuring dynamic text feeds

    hello folks,
    I'm trying to set up a simple flash file that uses dynamic
    text to fade from one text value to another. basically it's like an
    alert page that an admin would update the text file with the
    necessary alerts, so that the flash file on the page would load the
    appropriate new messages.
    The flash would work as such: message1 would fade in and
    display for a desired time, then fade and be replaced by the 2nd
    message (if there is one).
    It seems to me that a perhaps a javascript function or
    something would be more appropriate? but I'm not familiar with
    working with dynamic text so any insight would be greatly
    appreciated.
    thanx

    Hmmm.
    Well officially the .text property of a textfield is a string
    so what will happen is that the 20 gets turned into string and
    concatenated (or appended) the the string value in the text
    property.
    Can you clarfify the problem? Is your textfield changing or
    not?
    If it is changing then you will need to do something like:
    _root.score.text = Number(_root.score.text)+20;
    That requires that a valid number already exists in the
    textfield. It might be safer to track the score in a separate
    variable and then assign it to the textfield's text property each
    time it changes.
    If its not changing then try putting a trace in to see what's
    happening:
    on(press){
    trace("textfield is:"+_root.score)
    _root.score.text +=20;
    If you see 'undefined' then it may just be a typo - perhaps
    you called it Score with an uppercase S for example. If its defined
    and nothing is visible then it could be that you've embedded fonts
    without numbers or something like that.

Maybe you are looking for

  • ITunes won't open for a different reason then anyone else has posted! HELP!

    Hey, hopefully you can help me. I recently tried to move my music to my new external hard drive. It was successful and worked fine. All of the sudden, iTunes decided that it would not open. Whenever I try to open iTunes the following message pops up:

  • Error in asset after change of FYV to 13 period

    Hi, We changed the fisical year variant to 13 period from 12 period in year 2006 i.e. september is two period ,one on 18th and other on 30th. Now we are not able to do master data change i.e. AS02 to change the depreciation Key and even we are not ab

  • How to make a c program "awaken" a java socket

    I am developing a client program which has to communicate with a server written in c. I've created a listener thread which keeps verifying if there is anything in the stream: public void run() {     while(true) {             try {                 if

  • How do i go about finding my pre paid iphone 4gs

    have recently lost my 4S and dont now how to go about finding it using Find my iphone

  • User defined column heading

    Hello Every1, The following is a peice of code produces a report. At the moment the heading of the column is GBCCCL15/16_CSAHEPA because it has been hard coded that way. However what i would like instead, is the heading of the column to be what ever