dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Formating fonts in dynamix text fields

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    109

    Formating fonts in dynamix text fields

    Ok Im sure this has been answered and I searched first but stil have a problem.

    Someone tell me whats wrong here:
    Code:
    mainTxt.htmlText = "<p align=\"left\"><b><font color =\"#000099\" size = \"14\"  >Team: </font>"+this.team+"</p>"+"<p align=\"left\"><font color =\"#000099\" size = \"14\">Time: </font><br>"+this.time+"<p align=\"left\"><font color =\"#000099\" size = \"14\">Level: </font><br>"+this.level+"<br>";
    What im trying to do is make a catagory: then var
    like this
    Code:
    Team: this.team
    Level: this.level
    I want the TEAM: part to be red and the 'this.team' to be black
    there wil be a lot of these loaded form a php if that matters.

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    109

    ok passed that point

    Ok now i am getting some crap in my textBox:

    Code:
    if (!AD_clientWindowSize()) {
            document.write('
    Any idea where that is coming form?
    here is my code:
    Code:
    // set font format
    		var c = "<p align=\"center\"><font color =\"#000099\" size = \"10\">"  
    		
            if(success){
    			
    			mainTxt.htmlText = c+"Team: "+"</font>"+this.team+"<br>"+c+"Level: "+"</font>"+this.level+"<br>"+c+"Mode: "+"</font>"+this.mode+"<br>"+c+"KillGoal: "+"</font>"+this.kg+"<br>"+c+"Time limit: "+"</font>"+this.tl+"<br>"+c+"Skill: "+"</font>"+this.skill+"<br>"+c+"Respawn: "+"</font>"+this.rt+"<br>"+c+"Huds: "+"</font>"+this.huds+"<br>"+c+"Server: "+"</font>"+this.server+"<br>"+c+"PowerUps: "+"</font>"+this.dpu+"<br>"+c+"PPS: "+"</font>"+this.pps+"<br>"+c+"Setup By: "+"</font>"+this.sub+"<br>";

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