# ActionScript Textfield Properties

**URL:** <https://forum.kirupa.com/t/actionscript-textfield-properties/208406>\
**Category:** flash\
**Created:** [November 28, 2006, 12:03pm UTC](https://forum.kirupa.com/t/actionscript-textfield-properties/208406 "2006-11-28T12:03:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![korkor5](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@korkor5](https://forum.kirupa.com/u/korkor5)\
**Post date:** [November 28, 2006, 12:03pm UTC](https://forum.kirupa.com/t/actionscript-textfield-properties/208406/1 "2006-11-28T12:03:59Z")

</div>

i created a textfield using actionscript code this way and i set the html property to true, but it doesnt take effect or it doesnt work.

createTextField(“scroller\_txt”, 1, -500,100, 2000, 50);  
scroller\_txt.html = true;

but it doesnt show the image i want to embed. Also the other properties i set do not take effect

myTextFormat = new TextFormat();  
myTextFormat.font = “Verdana”; //this should be a string  
myTextFormat.color = 0xffcc00; // the color should hav a 0 before  
myTextFormat.size = 30;

scroller\_txt.setTextFormat(myTextFormat);

What could be the problem?

Please help me out.
