Selection color

Hi,

How to change the color of the text when i am selected a text.
/////////////////
**flasmx 2004
////////////////
** **var my_selectfmt:TextFormat = new TextFormat();
my_selectfmt.color = 0xFFFF00;
txt1.selection = my_selectfmt;

I get the result as undefined [COLOR=Blue]What is the solution[/COLOR]****please reply to my id:[COLOR=DarkGreen]rdene2000@yahoo.com

[COLOR=Black]regards
Denesh[/COLOR]

[COLOR=Black]Thanks in advance

[/COLOR][/COLOR]**