Formatting Issue Classic Text-Dynamic Text
i have run issue dynamic text field in as3 project. here's basic scenario:
on stage classic text - dynamic text filed. loading html content external file text field.
example of html:
<p>some in p tag</p> <ul> <li>a list item</li> <li>a list item <span class="red">red text</span></li> </ul> <p>some other text in p tag</p>
i loading external css document via urlrequest & urlloader
var req:urlrequest = new urlrequest("mystyle.css");cssloader = new urlloader(); cssloader.addeventlistener(event.complete, cssloadcomplete); cssloader.load(req);
on complete parsing css , applying the text field
sheet.parsecss(cssloader.data); // apply style sheet mytext mytext.stylesheet = sheet;
the issue running bullets on unordered list inheriting color span class inside of them, in case above there "red text" span inside list item. expecting "red text" red bullet list item red well. else seems being applied properly.
i'm stummped on one. if can offer suggestions or assistance appreciated.
does same issue if use <font color="#ff0000">text</font> well. it's been known issue while point implemented own bullet class, draw circles , put textfields next content.
that until fl.text.tlftextfield came out solved problem. if can convert textfields tlftextfields won't have issue. otherwise don't believe i've ever seen workaround.
More discussions in ActionScript 3
adobe
Comments
Post a Comment