Skip to main content
juresti
Known Participant
November 23, 2009
Question

Can I style CDATA in dynamic textfield?

  • November 23, 2009
  • 1 reply
  • 1094 views

<popup><![CDATA[<ul><li>Description should go here</li><li>Description should go here</li><li>Description should go here</li></ul>]]></popup>

Can I style the above line in a Flash Dynamic Textfield? If so how? Thanks for any help.vfad

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 23, 2009

cdata nodes are xml nodes, not html tags.

so no, you can't use a cdata node in a html textfield.

juresti
jurestiAuthor
Known Participant
November 23, 2009

AS3

PopUpID00.PopUpTextID00.htmlText=popupList[0];

This brings in the HTML in the CDATA node. Is there a way to format it?

XML:

<popup><![CDATA[<ul><li>Description should go here</li><li>Description should go here</li><li>Description should go here</li></ul>]]></popup>

kglad
Community Expert
Community Expert
November 23, 2009

that's xml, you should be loading it as xml and then assigning the popup node value to your html enabled textfield.