I used 4.1.0.16076. In textlayout, IMG Src in HTML only supports http: //. Then I changed it and re-compiled textlayout. SWC.
Link: https://bitbucket.org/songhuan/flex-output/src/6fba1ce3bf76/swc/
When used: == libassets is used for the link in the Flash library,
It just takes a moment:
Private function createinlinegraphicfromxml (xmltoparse: XML): inlinegraphicelement
{
VaR imgelem: inlinegraphicelement = new inlinegraphicelement ();
VaR formatimporters: array = [_ ilgformatimporter, _ ilgmiscformatimporter];
Parseattributes (xmltoparse, formatimporters );
VaR Source: String = _ ilgmiscformatimporter. getformatvalue ("src ");
If (source. indexof (".") =-1)
{
// Class
Imgelem. Source = getdefinitionbyname (source) as class;
}
Else
{
// URL
Imgelem. Source = source;
}
// If not defined then let inlinegraphic set its own default
Imgelem. Height = inlinegraphicelement. heightpropertydefinition. sethelper (imgelem. Height, _ ilgformatimporter. getformatvalue ("height "));
Imgelem. width = inlinegraphicelement. heightpropertydefinition. sethelper (imgelem. Width, _ ilgformatimporter. getformatvalue ("width "));
/* Not currently supported
VaR floatval: String = _ ilgformatimporter. getformatvalue ("align ");
// Handle difference in defaults between textfield and TLF
// Float "Left" vs. "None"
Imgelem. Float = floatval? Floatval: float. Left;
*/
VaR ID: String = _ ilgmiscformatimporter. getformatvalue ("ID ");
Imgelem. ID = ID;
// Apply active format
Imgelem. format = _ activeformat;
Return imgelem;
}