i'm trying to create a list in an htmlText field using the <li /> tag. i have two questions. 1. first of all whenever i do this sets the whole text field as a list (not that big of a deal) 2. but whenever i do use that tag, whenever i change the contents of the textField (within flash or loaded externally) it stays a list!!! any help!?!?
what I can understand is that u r doing something like var urText = "abcdefghijklmnopqrstuvwxyz" _txt.htmlText = "<li>" + urText + "</li>" // where _txt is the instance name of the textfield so try to make a flag var isList = true; if(isList) _txt.htmlText = "<li>" + urText + "</li>" else _txt.htmlText = urText
thanks. my problem is that i'm loading two different .html files into flash. one contains a <li> tag the other doesn't. whenever i change the textfield to display the .html file containing the <li> tag it converts the whole textfield to a bulleted list. once that's executed i can't turn it off. here's some sample code: XML.prototype.ignoreWhite = true; //...........loads two different html files var h1:XML = new XML(); h1.load("h1.html"); // loads the file without the <li> tag var h2:XML = new XML(); h2.load("h2.html"); // loads the file with the <li> tag //..........changes the display h1_btn.onRelease = function () { display_txt.htmlText = h1; // displays the html files with their tags } h2_btn.onRelease = function () { display_txt.htmlText = h2; // same } //.........toggles the html property on and off toggle_btn.onRelease = function () { if (!blah) { display_txt.html = true; blah = 1; } else { display_txt.html = false; blah = 0; } } once i display the h2.html file and display_txt.html property is set to true. i cannot turn off the bulleted list! if i hardcode it, it does the same thing. i don't know if that is too much or if it makes sense. thanks for your help.
Don't see what you're looking for? Try a search.
|