I have a dynamic text field in flash that is populated by an input box. The dynamic text field has a maxmium width it can be. So i have it as multiline WITH wodrwap on. My problem is that I have to send this data to server and for the php to be able to text the text and output the text as it is displayed in flash. There seems to be no way of finding the linebreaks and passing them in the string as far as I can see?
Is there a way I can stop a single word splitting over two lines when putting dynamic text into a fixed width, multiline text field?I have a simple method of checking if there are more lines than words and then running a while loop to reduce the font size until there are the same amount or less lines than words. But this doesnt always work, if say the final word of three is quite short and the second word splits over two lines then I still have 3 words and 3 lines.
I created a comboBox(Using the one in Component/Flash). I am unable to make the texts in DropDown menu to be shown in MULTILINE. I have tried larger Row Heights and smaller texts so the issue is related to something else.
I found this piece of code searching in archive discussions "TextInput(aCb.getChildAt(1)).textField.multiline=true;"
I have some text pulled in from a db via cfm and remoted into flash - I'm trying to figure out a way to determine if whether or not a given string requires the vertical space of a multiline text box.Visually, two lines take up more space than a single line and when the string only takes up a single line, the second (empty) line creates to much whitespace and has everything below it too far away from that initial single line. When the string can fill both lines, it doesn't look bad at all - so, ultimately, I'm trying to get that whitespace gone.
i did a flash form for the first time.I have a multi line input text, it works fine when u type in the content.But when i hit sent, and I checked my email, the whole message is in one single line. All my other fields work fine cos they are single line input text.All my Variables are sent to my asp and then to my email.I guess my asp file did not capture the vbCrlf and convert it to <br>, am i right?
I have a multi line input text, it works fine when u type in the content.But when i hit sent, and I checked my email, the whole message is in one single line. All my other fields work fine cos they are single line input text.All my Variables are sent to my asp and then to my email.I guess my asp file did not capture the vbCrlf and convert it to <br>, am i right?
my input field instance is form_comments and the default text I have in the field is "Your comments" the same code (with obvious changes) is working fine on my single line fields... just not this last one?
how to do the SUBJECT? Is it even possible? As soon as I put the textfield multiline, I cannot align it to right at all. The help only writes about left alignment in multiline textfield.Does somebody know some workaround?
I have a problem with the text on them.I want the text to wrap, autosize and be multiline - ie I want the button to be a certain width and if the text is longer for a particular button the button will be higher with the text going onto the next line.The wierd thing is that it worked, I went and made a cup of tea, came back and it was not working! Maybe the cat changed my code but I cannot see where.
i have a text area, set to multiline. For some reason, when my text imported from xml shows up in the box, it starts several lines down into the box. So for example, my Text box is positioned with the top at the midpoint of my stage, but the text starts about 3/4 down the page, about half way down the text box. Can someone please tell me why this is happening and what I can do to fix it?
I noticed that when I put my cursor in the box and move it up and down, the rest of the text 'scrolls' into the frame, but otherwise it's cut off.
Anyone know of a good reg exp that can do this, optimally in one go? It needs to remove whitespace at begin/end of each line, remove LFs and CRs and replace with a single space but if there's a <br> (or <br/>) at the end of the line it should not add a space. I'd need this in a JavaScript conform regexp.
I have been asked to add support to a xml based website. I have been looking into it and have realised that it is not going to be very straight forward. The text does have english phrases in when describing products being used.
After doing some research I have found that CS3 does not 'support' rtl text. I also read that CS4 has added support, is this worth looking into? I read that it was buggy.
I found FlarabySWF which does what I think I am after, but not for all the languages I need, and only at design time rather than runtime.
I also found Gchats TextBox 3.0.0 but this didn't seem to work.
I also found some solutions using CSS, but these didn't seem to work with multiline text. See this example. It also didn't work as the text I am trying to display is bi-directional ..
Actualy, importing Arabic text is not a problem, but dealing with bidirectional text of Arabic and English within the same line is a big one.
I have a TextField with multiline and word wrap enabled, and a fixed width. I want to calculate the total height of the text inside it. I tried using TextField.textHeight, but that gives me the height of one line. Because of the wrapping, I can't easily calculate the number of lines to multiply it with the line height. TextField.height just gives me the fixed, default height of the field, 100 pixels.
Does the TextField class support automatic vertical centering of multiline text? Any way to control vertical alignment other than "flush top"?
It seems like it ought to, but if there is a method or property in the class that turns it on, I can't find it. (Maybe a case of not being able to see the trees for the forest, there's so much junk in there, plus the TextFormat...)
I'm running into an issue where, if the dynamic text field I create wraps and autoSizes to 2 lines or more, the last disappears (sometimes partially). However, this only happens when I apply a DropShadowFilter to it. If I don't apply the drop shadow filter, it renders correctly. Note that whether or not the text renders correctly, flash seems to know that the text has wrapped and autosized, as this is how i assign the Y position of the second text field below it. See code below:
I am using Flash CS3 and AS2. I have a dynamically generated text string that is displaying in a multiline dynamic text box. This dynamic text box is inside a container movie clip which contains everything that I want my user to be able to print (other dynamic text fields, graphics etc.) When I view my swf on screen it displays exactly as I intended - if the text exceeds the text-box length, then it word-wraps. But when I print the container movieclip, the overflow is hidden and does not wrap to the next line.
I have a dynamic textfield on the stage which is rendered for HTML. Then I load the xml text in it, but the CDATA html tags are not working(it works on singleline, but not on multiline)
I tried setting wordWrap/html etc to true but nothing seem to work.
When I create an empty input text-field and compile, the curser starts at the 2'nd line when I click the text field! Is there a work-around to get the initial curser position at the top?
I'm trying to experiment with taking text from a textarea in a flex project and open it up in a php page. But the php isn't line breaking where it should be. An Example of the text i'd like to bring over to php would be:
You: Hi there Them: Hello You: This is a great example Them: I know right?
Here's my php: <?php $text= $_GET['text']; echo $text; ?>
Right now I came up with something like this in the actionscript... var chatBox:String=chat_box.text; navigateToURL(new URLRequest("savelog.php?text="+chatBox), '_blank');
I also tried something like: var chatBox:String=chat_box.text.valueOf().replace(" ","<br/>"); and var chatBox:String=chat_box.text.toString().valueOf().replace(" ","<br/>");
But apparently the isn't translating over no matter how I get the chatBox var so its not even making a <br/>. But, even if i did get that to work it wouldnt be ideal. Because eventually in the end I want to be able to just incorporate the pastebin API to paste this GET data and post it on there. And I don't think it would look too pretty with having <br/> after every line...Is it possible to bring this text over to php and recognize the line breaks in a way that would work well with what im eventually trying to accomplish?
Can a TextField can contain different kinds of linebreaks?
I save and load text from an input field into an XML. I save it as CDATA tags including linebreaks.
This is what happens:
I type a text with linebreaks into the textfield I save the text to the XML I empty the textfield I load the xml into the textfield - everything looks as expected, linebreaks are present I save the exact same textfield again (the only difference this time the content was loaded and not handtyped)This time the XML does not contain any linebreaks when I load it again, the text doesn't have linebreaks
Well I was loading a xml file (using CDATA) into my flash app. I'm still using AS2 and everyting works perfectly with linebreaks and everything. The only thing I can't understand is why a linebreak is so huge? When I load the XML-file into PHP to edit, it looks good. But when I save it and load it again into flash one linebreak is like two linebreaks.
how does one get <br> to work in flash when the <br> is located in an external file?Ive tried <br>,/n, </p> and a bunch of others. Nothing renders properly in flash. it just displays whatever linebreak code im trying to use.here is the flash code. the variable it's grabing is just a string or items pulled from a DB.
Code: text1.html = true; unicodeData = new LoadVars();