javascript - How to dynamically change text color in a flash html5 canvas project -


i'm trying dynamically change font color in flash html5 canvas project. log_file text box name. how use in actionscript.

this.logger.log_file.htmltext = "<font color='#ff0000' size='-1'>"+myvar+"</font><br>"+this.logger.log_file.htmltext; 

any idea i'm doing wrong? htmltext not supported in javascript?

you can't use <font> in html5, use css instead.

this.logger.log_file.htmltext = "<p style="color:#ff0000">"+myvar+"</p><br>"+this.logger.log_file.htmltext; 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -