all groups > flash (macromedia) > september 2003 >
You're in the

flash (macromedia)

group:

MX2004 IMG wrapping in the wrong ways



MX2004 IMG wrapping in the wrong ways mmlabs
9/13/2003 6:34:43 PM
flash (macromedia): Anybody who has tips how to get IMG behave logically in the Flash 7 player?

Either paragraphs are written partially over it, or it's in the wrong
position, or it has strange empty recntangular areas around it...

!?

Re:MX2004 IMG wrapping in the wrong ways cavellis
9/16/2003 4:12:15 AM
I'm having the same problem. Here's some code that creates a textField, and fills it with some text, an image, and some more text:

this.createTextField("stage_txt", 1, 0, 0, 300, 300);
var obj = this.stage_txt;
obj.autoSize = 1;
obj.background = 1;
obj.scrollable = 1;
obj.backgroundColor = '0xcccccc';
obj.border = 1;
obj.borderColor = "0x666666";
obj.html = 1;
obj.wordWrap = 1;
obj.multiline = 1;
obj.selectable = 0;
obj.htmlText = "<p>here's an image</p><p><img src='http://www.macromedia.com/devnet/images/98x73/mx2004.jpg' width='100' height='100' hAlign='10' vAlign='10'> </p><p>here's some text, which won't show up on the next line after the image.</p>";


The second text always aligns right of the image. Anybody have any ideas? If you copy-paste the htmlText into Dreamweaver it works fine, so it's not the code. Also, if you put this into the textArea component, really weird things happen...


AddThis Social Bookmark Button