Buritto/Hero4.5 html images in TextArea
Well I've been using a Spark TextArea in a Spark VGroup and loading dynamically from an XML file HTML.
I even managed to make anchors send events that are listened too! Awesome.
after using a MobileTextField for CSS and my code for extracting from XML
The XML needs to have the entries wrapped in CDATA for those interested.
[note: viewText is just a String.]
var mtf:MobileTextField;
if(targetTextArea != null) {
mtf = targetTextArea.textDisplay as MobileTextField;
}
...
mtf.htmlText = viewText;
mtf.addEventListener(TextEvent.LINK, linkHandler);
}
public function linkHandler(linkEvent:TextEvent):void {
}
Anyway IMG SRC tags don't seem to be working however I reference them. Assets ../Assets jpg png whatever, yet it's suggested somewhere that's suppose to work. I've seen it explained you can use getImageReference via an id attribute to get to the image it's self and that a loader is automatically created for you, so I'm thinking that it is broken when you load from XML or something but I'm basically stuck without it working so any help or verification of it being a bug or not would be greatly appreciated.
