I am pulling in content from Wordpress to an htmlText field that contains both images and text. The default behavior for the image tag in an htmlText field is for it to align to the left of the text so that the text may wrap around it.
I do not want this to happen and cannot for the life of me determine how to stop it from happening. As it stands now, the content Flash is receiving is a paragraph of text, a new line, an image tag, a new line, and another paragraph of text. It places the image to the left and the text to the right of the image.
Can anyone help? Relevant declarations are below.
var blogContent:TextField;
var blogContentFormat:StyleSheet = new StyleSheet();
var newLineDetector:RegExp = new RegExp(“\u000A”, “g”);
blogContentFormat.setStyle(“body”, {fontFamily:‘Georgia’, fontSize:‘12px’, color:‘#666666’});
blogContent = new TextField();
blogContent.embedFonts = true;
blogContent.styleSheet = blogContentFormat;
blogContent.htmlText = “<p>” + body + “</p>”;
blogContent.multiline = true;
blogContent.autoSize = TextFieldAutoSize.LEFT;
blogContent.wordWrap = true;
blogContent.width = 555;
blogContent.htmlText = (blogContent.htmlText).replace(newLineDetector, “”);
blogContent.y = titleTxt.height + 20;
trace(blogContent.htmlText);