Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
luxfx #1
TextField.wordWrap bug!
This is driving me crazy. The wordwrap only works for the first paragraph
(paragraphs are separated by a pair of <BR> tags), while the next paragraph
ignores it. The code is attached.
Where 'mc' is the textfield. I've got the border set so I can see the
textfield's edge. The information is being pulled from an XML object called
SECTION.
What's really funny is that the behavior of the error depends on the location
of the "wordwrap". If I move the 'wordwrap' line to the end, then everything
works fine on plugin version 7, but no wrapping takes place in version
6, in any paragraph.
You can see the result here:
[L=http://p114-001.birnamdesigns.com/]http://p114-001.birnamdesigns.com/[/L]
When the page loads, click the "contacts" menu button to load the problematic
text in the main area. The outline shows the textfield bounds. (and ignore
the 'test version' alert box, that's just for testing)
mcPage.createTextField(cName, getNextLevel(), SECTION.pages[i].contents[j].x,
SECTION.pages[i].contents[j].y, SECTION.pages[i].contents[j].w,
SECTION.pages[i].contents[j].h);
var mc = mcPage[cName];
mc.multiline = true;
mc.wordWrap = true;
mc.html = true;
mc.embedFonts = true;
mc.border = true;
mc.htmlText = trimXML(SECTION.pages[i].contents[j].text);
mc.setTextFormat(TextContentFormat);
mc._width = SECTION.pages[i].contents[j].w;
mc._height = SECTION.pages[i].contents[j].h;
luxfx Guest
-
cannot set multiline and wordwrap on uitextfield
hello, this is my first post here, I have a problem with making radiobutton text automatically wrap text into multiple lines when the text is longer... -
wordwrap bug?
Linked text can not wrap. -
textField.autoSize/wordWrap question
Hey, Quick question. I'm trying to right justify various sentences, 1-3 lines of text each in a separate text box, and then position the text... -
Textfield
hi friends i created one form in that i want when the form is loaded, cursor is stick in to the top position of the field. please help me. ... -
Textfield.html = true vs TextField.setTextFormat
H I need to use html textfield to control when the text must change the line (br tag). The problem is that I can't use setTextFormat if I use html...



Reply With Quote

