Textfield html

 
 
// DisplayInfo is used when an item is pressed
// it hides the menu_mc (and the buttons) and shows the 
// infobox_mc, assigning the text of the selected button
// to the textbox within.
function DisplayInfo(){
menu_mc._visible = true; // you can set them false or true if you want it to set it
infobox_mc._visible = true;
infobox_mc.content_txt.htmlText = this.contenttext_text;
}
// close_btn is in infobox_mc ands restores
// the menu (clearing the info text and hiding itself as well)
infobox_mc.close_btn.onRelease = function(){
menu_mc._visible = true;
infobox_mc._visible = true;
infobox_mc.content_txt.htmlText = "";
}
infobox_mc._visible = true;// start the info box visible
 
 
// define basic variables for setting up the menu
var item_spacing = 310; // how far menu items are spaced
var item_count = 0; // counts menu items as they are added from the XML
 
// CreateMenu creates a menu based on the XML object passed.
// It loops through all the items with a for loop adding clips to the menu_mc
// movieclip on the timeline, defining the appropriate text where needed
function CreateMenu(menu_xml){
// start with the first item in the XML
var items = menu_xml.firstChild.firstChild.childNodes; // menu -> menuitems -> child nodes array
for (var i=0; i<items.length; i++) {
// only continue if the type of this item is a member of company
if (items*.attributes.type == "company") { 
// create variables for our elements
var year = items*.firstChild; // same as items*.childNodes[0]
var contenttext = items*.childNodes[1]; // second child node
 
// Create a menu item movie clip in the menu_mc instance on the main timeline
// for each item element offsetting each additional further down the screen
// in second line set _y for vertical menu set _x for horizontal menu
var item_mc = menu_mc.attachMovie("menu_item","item"+item_count, item_count);
item_mc._x = item_count * item_spacing;
item_count++;
 
// assign text using nodeValue to get the text
// from the text nodes and CDATA sections
item_mc.year_txt.htmlText = year.firstChild.nodeValue;
item_mc.main_btn.contenttext_text = contenttext.firstChild.nodeValue;
// set the onRelease of the item button to the DisplayInfo function
item_mc.main_btn.onRelease = DisplayInfo;
}
}
}
 
// manage XML
// create new XML object instance, remembering to ignore white space
var philips_xml = new XML();
philips_xml.ignoreWhite = true;
// define an onLoad to create our location menu when the XML has successfully loaded.
philips_xml.onLoad = function(success){
if (success) CreateMenu(this);
else trace("Error loading XML file"); // no success? trace error (wont be seen on web)
}
// load the xml file!
philips_xml.load("philips.xml");
 
 

hello

i got this script from the squirrelfinder tutorial and i want the button textfield to render as html, i already changed it in this script but for some reason its not working or i am doin something wrong. the textfield that has to render as html is year_txt

i also enabled render as html text button on the textfield

i hope someone can help

greetz Robb