dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Dynamic text with minus sign

  1. #1
    Member
    Join Date
    May 2006
    Posts
    70

    resolved [RESOLVED] Dynamic text with minus sign

    Anyone have any idea why a minus sign breaks my dynamic text field?

    For example, if I have a plus sign like this it works fine:
    mytext.text = "+1000";

    But if I have a minus sign, it only shows the minus and nothing after it:
    mypoints.text = "-1000";

    Thanks for any help!

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    is there are character limit or no numbers embedded?

  3. #3
    Member
    Join Date
    May 2006
    Posts
    70
    There's no character limit and the numbers are embedded. The numbers show up fine when there is a "+" in front of them, but the numbers do not show up when there is a "-" in front of them.

    So basically when I have:
    mytext.text = "+1000";

    it displays:
    +1000

    But when I have:
    mytext.text = "-1000";

    it displays:
    -

    Thanks!

  4. #4
    Member
    Join Date
    May 2006
    Posts
    70
    Ok, I figured it out. The text field was set on multiline, and for some reason if I put the minus sign it would put the "1000" on the next line. And it only was happening with the font I am using. So putting it on single line resolved the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center