PDA

View Full Version : How to make Ordered List in flash. 1, 2 ,3 or i ii iii



nightbird0
November 13th, 2006, 08:44 AM
Hello Guys

Is there any possiblity to make ordered list in flash 8. In TextFormat class only the bulleted list is available but i want to make a list with 1 2 3 and roman ( i ii iii) . Please guide me because i am searching this on internet but failed.

thanks

developmental
November 13th, 2006, 04:19 PM
i don't think flash supports that level of html content, i may be wrong though.
you could use xml and have it load nodes instead.


<xml>
<content></content>
<list>
<item></item>
<item></item>
<item></item>
<list>
</xml>

myText.htmlText = "<p>"+myXML.firstChild.childNodes[0]+"</p>"
for (i = 0; i<myXML.firstChild.childNodes[1].childNodes.lenght; i++) {
myText.htmlText += "<p>"+i+". "+myXML.firstChild.childNode[1].childNode[i]+"</p>"
}