A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [RESOLVED] dynamic text not displaying

Threaded View

  1. #2
    Senior Member
    Join Date
    May 2010
    Location
    Russia: Western Siberia
    Posts
    268
    preloader_txt = int(pcent)+" || 1mb";
    You can't use this line.

    To assign some text to a TextField you must use it's text variable like this:
    Actionscript Code:
    preloader_txt.text = int(pcent)+" || 1mb";

    I'm not sure it's gonna solve the problem, but if you upload your .fla file here, it'd be easier to find out what's the problem

    The problem may also be with the font itself. For example I always have this sort of problems when I use Russian (cyrillic) fonts

    btw, I think a good programming practice is to make sure you use the correct data types. When I assign some text to a text field I enforce it to be String. Like:

    Actionscript Code:
    preloader_txt.text = String(int(pcent)+" || 1mb");
    It's just an advice
    Last edited by caseyryan; 07-25-2010 at 11:25 AM.

Tags for this Thread

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