I am having a problem with my text alignment and I can't figure out a way to correct this. Unfortunately, I'm using a mac with CS3 and a Windows computer with CS4, so it could either be an OS difference, a version difference, or a software bug which I can't figure out.
Update: I downloaded a trial CS4 and the problem persists. This seems to be a mac issue. For some reason, the text on my Mac with CS3 are not in the vertical center of the text fields. This causes a problem with my "align vertical centers" alignments, meaning I've had to do the alignment by hand to get it to look right. When I moved my file to my laptop to keep working on my project at home, I noticed that the text alignment was correct on my laptop, causing all of the text placement throughout my document to be off. This means that I can only work on the one computer and can't bring the project home to work through the weekends. I have made an image showing the difference of how the text is aligned on the two versions, and a sample of how it affects my project when i bring it between computers.
I made the file on the mac (CS3) first, and so the alignment is designed to look correct on there. When i bring it to the PC (CS4) the text shifts down, placing it back in the center of the text boxes and ruining the alignment. When I publish the file it keeps the formatting of each system. IE - publishing on the mac makes the final product look like it does on the mac, and publishing on the windows computer makes it look like it looks on the windows computer. The file published from the mac has the mac alignment on both computers, and the file published from the pc has the alignment of the pc on both computers.
Just to clarify, the way flash handles text fields on windows / cs4 is how I imagine it should be. I made the file on mac/CS3 however, and so when i said "ruins the alignment" I should have said "fixes the alignment problem, but breaks my alignment which was made to compensate for the problem I was experiencing."
I'm creating Flash-based software that has text boxes where users write in the answers to questions. I want the text that the user types to be vertically aligned to the middle of the text box, so that even if the response is two or three lines, it is still centered in the box.
It doesn't appear that I can accomplish this through the properties window in Flash. Am I missing something? Or is it possible to set the properties of the text box with actionscript, and would that allow me to vertically align the text?
I am trying to create a scroll text box with two columns appetiser menu. The dimensions are 675 px wide and it doesn't matter what the length is as the scroll text box should be able to scroll down as much as needed, but the width is important. I have arranged the text in the scroll text box as so -
do you know of a way to vertically align text? i have a text box that is the height of 400 and there is one line of text going within it that needs to be centered so there is the same amount space at the bottom and top. the text is subject to change in amount of lines so i need to have a way to have it centered always.
I have a button (a simple rectangle) and I create a new layer and place text on the first keyframe while in Button Symbol Edit Mode. I now want to align the text in the center of the button. I drag over both the text and the button to select them both and than I open the Align Panel and I choose to align in the center. However, it is not aligning the text in the center and it is also moving the button to the left.
I am loading content into a text field, that I created on the timeline, from an xml file...I need to be able to change the alignment of the text, depending on what is loaded.Its not working..Can I use TextFormat() on a field created in the timeline.[code]It seems that the TextFormat() itself, is working properly, b/c trace(format.align); =true but the text itself is not realigned.
I have a dynamic textfield that I am creating in an as3 class. It's a set pixel height.Sometimes it will have up to three lines, but sometimes only one. I know there is not vertical align property. But what would be the solution for aligning this to the bottom? In as2 there was a way to count lines. But I'm having trouble finding that in as3. Not to mention, once I have a line count, how will I shift it down
my align function has stopped working. I am using CS4, so I tried downloading the trial CS5, but it doesn't work there either. So, what am I doing wrong?
I've used the following code to create a textField and style it with a little CSS my problem is the textFeild is as wide as the stage and I want to center the text so its in the middle of the stage but when i use the css attribute textAlign the text is almost all the way to the right instead of centered
PHP Code:
var msg19:TextField = new TextField(); msg19.width = stage.stageWidth; msg19.height = stage.stageHeight;
i have 5 text boxes on the stage ,equally spaced, but when i click one of them ,the respective i want to zoom in or pop out or resized a bit more than the others/ also the text to reallign itself to the new resised dimensions.. hope u understand . i put a screenshot here [URL]
I have 2 spark labels next to each other. They are in a basic layout and both have bottom set to 0. They have different font sizes (28 and 12).
Both fields only display numbers. I want the baseline of the numbers to line up.
At the moment they do not as there are no descenders and the descender area of the line is obviously a different height for the 2 different font sizes.
I'm loading an XML file into a dynamic text field. The information needs to look like a table, meaning that there are distinct columns. Here's basically what I need: Code: Item 1 Some Info Time Item 36 Some more Info Time
Right now, I'm accomplishing this by inserting the correct amount of whitespace like this: ActionScript Code: for (i = 0; i < maxLength - myString.length; i++){ myTextField.htmlText += " "; } This works fine, but only with mono space fonts which are ugly. Is there another/better way to accomplish this?
I have a series of buttons, and as some of you may know, the text on the label is always centered. I just want to know if there is a way to make it left justified.I'm just using the button component in Flash CS5.5. In the properties there is a Label option, i forget the name of now, but it had "left, right, top, middle, etc" but this didn't seem to change anything.
Interestingly, I could find no solid data on what "align to stage" is in the built-in Adobe Help. What is "align to stage" and how does it work? I thought maybe it was a thing to align a shape to center on the stage, but no. I can select the shape, select "align to stage", and the shape doesn't move.
I have the following code layout in mxml. The button will be positioned correctly in the middle, but the text remains anchored to the top. This is not the behavior of the spark component label, but I need multiple style runs in the text and have found the mxText component to be the best solution...
I would like to make the height of my DataGrid rows a bit larger than the default. The problem is that the text is vertically align to the top of the row. I would like to vertically align it to the middle of the row.
Is there a way of doing that via CSS or Skinning in Flex 4.6? note that I am using a Spark DataGrid and not an MX version.
Basically I have a textfield that will have a fixed width and wrap the text, which will be passed to it dynamically. Since the text will be dynamic,there's no guarantee of how many lines the text will take up.Directly underneath that textfield i have another text field that will also take dynamic text. Think of it as a title and a subtitle.so I'll have something like this:
Code: var title:TextField = new TextField(); var subtitle:TextField = new TextField(); title.wordWrap = true;
[code]....
and probably others that I'm forgetting. Getting it to work with a single line of text isn't really a problem, but as soon as the text begins to wrap to multiple lines, everything i've tried seems to fall apart.
i made a function for replacing a text letter by letter. You've probably seen this effect of putting in place of a text a random one, with the length of the new text and then replacing the random text, letter by letter with the new one. It worked fine but I had to do some adjustments, because I needed to vertically align the text to the bottom, and I had the newline character in the text which gave me some issues with the aligning. Since I did this adjustments, string.length returns undefined even if trace(string) shows the correct text in the output window. On the other hand length(string) gives me the right answer. I also use the charAt function which also returns undefined, even if the trace function shows the correct text.
I've seen similar threads but couldn't find one with the exact same issue. I've a PDF / Word document with arabic copy when I try pasting that text in flash all the joined letters start appearing as individual letters.I've tried the dynamic text box solution in which you create a dynamic text box and assign the text to its variable that doesn't work. But strangely when you write arabic in dynamic text box (with out assigning the text to the variable) and double click to select the text box and its content the text starts appearing fine .. but when published its again all individual letter.
found that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1"; var loadit:URLLoader = new URLLoader(); loadit.addEventListener(Event.COMPLETE, completeHandler);
I guess the best way to explain this is that I want to animate the text so that it types itself. I tried using a mask so that it slowly uncovers the text, but for some reason the code for the button that I inserted at the beginning of the flash seems to somehow prevent the mask from working, so the text just appears there and doesn't move or anything.