# Error #2009: This method cannot be used on a text field with a style sheet

**URL:** <https://forum.kirupa.com/t/error-2009-this-method-cannot-be-used-on-a-text-field-with-a-style-sheet/319997>\
**Category:** Uncategorized\
**Created:** [March 10, 2011, 7:37pm UTC](https://forum.kirupa.com/t/error-2009-this-method-cannot-be-used-on-a-text-field-with-a-style-sheet/319997 "2011-03-10T19:37:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiyi](https://avatars.discourse-cdn.com/v4/letter/s/ee59a6/32.png) [@shiyi](https://forum.kirupa.com/u/shiyi)\
**Post date:** [March 10, 2011, 7:37pm UTC](https://forum.kirupa.com/t/error-2009-this-method-cannot-be-used-on-a-text-field-with-a-style-sheet/319997/1 "2011-03-10T19:37:28Z")

</div>

I keep getting this errors when i put the style in (texts in red)

for (var i:int = 0; i \< 49; i++)  
{  
txtSong.appendText(sname(\_xmlList\*[“songTitle”] + " "));  
txtSong.appendText(sartist(\_xmlList\*[“songArtist”] + "  
"));  
}

i was wondering why is it not working?

Thanks
