The Tab Key And Indents
Ok, I'm trying to create a input text box where the Tab key actually indents instead of selecting the text and buttons on the page. Is there anyway to do this? Please help I've got a project due date coming up and I seem to be stumped on this part. Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-15-2002, 01:14 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
The Tab Key And Indents
Ok, I'm trying to create a input text box where the Tab key actually indents instead of selecting the text and buttons on the page. Is there anyway to do this? Please help I've got a project due date coming up and I seem to be stumped on this part.
Thanks
Indents Following <br> Tag In Dynamic Text
I am using a dynamic text box (variable name - quote) with html tags selected as an option.
The text to display is defined in an actionscript in the same frame.
If I define the text as:
quote="copy goes here<br> more copy";
the second line of copy will indent in a swf generated in MX on a MAC, but left justifies, ignoring the spaces, on a PC using MX2004.
If I define the text as:
quote="copy goes here<br> more copy";
the second line of copy will indent in a swf generated in MX on a MAC, and on a PC using MX2004.
This is counter to my knowledge of html, that ignores extra spaces.
Any ideas about what I may be doing wrong or what the proper syntax should be?
I will eventually be using an external text file, so that could be an issue as well.
Hanging Indents In Dynamic Textfields
I'm trying to make it possible to change the formatting of a dynamic textField to hanging indents using textFormat.
I figured that the easiest way is to set indent to a negative number and then increase leftmargin accordingly. This works using the 'format'-properties in flash.
However when I use textFormat.indent it doesn't accept negative values (it evidently considers them as equal to 0). So I use getTextFormat to find out what the indent value is when I predefine it: -10 now has become 3266.
And setting indent to 3266 makes the text look like it's indented by -10. (Except for some slight problems in that I occasionally get spaces placed first on the lines, but I can live with that.)
So I'm wondering:
1. is there a better way to do this?
2. is setting the indent to something like 3266 an acceptable way to this or will it probably break at one point?
Hanging Indents On Dynamic Text Fields
Hi,
I would appreciate it if someone could take a look at this file and confirm or deny if I am going crazy.
On my machine the text that should appear in the second two text boxes appears outside, to the right and not mulitlined.
In the second frame where the first three text boxes are no longer on the stage, the two lines of text that wrongly appeared outside the text boxes stay on the stage!!
The new text box that is displayed in the second frame (and not in the first) shows about half a letter outside and to the right of it!!
Is this happening on your machine too?
Help me please!!! Thanks
PS: I did a search and found a few *unanswered* threads that refer to the problem I am describing here.
HtmlText & Stylesheets - No Control Over Indents/margins
I'm trying to figure out htmlText in Flash, and a number of things don't seem to be working:
- The first line of each paragraph is slightly indented. I can't seem to find a setting to remove this.
- There doesn't seem to be any way to control the amount of space before or following a paragraph. Setting "marginBottom" doesn't do anything - and of course it's not defined in the class anyway.
- Can't control how indented <li> elements are, or how much space is before/after them.
Is there any way to get more precise control over formatting of text, using style sheets or some other method? I'm feeling stuck...
- Bob
|