Vertically align text Action script 2.0

Hi, I'm very new to action script and I have my first project completed.  One last thing that would add the icing to the cake would be if I could vertically align my text in my dynamic text box, theText. The content of the text is read in from a xml file

Is this possible and if so how?

Also, please bear in mind I'm completely new to this

Tia Flo
LVL 1
flo_the_lil_minxAsked:
Who is Participating?
 
IqAndreasConnect With a Mentor Commented:
Ah, I see now.

No, sorry. There is no direct way to set the formatting of the text so it alilgns that way, however, it is possible to move the textField up and down depending on it's current height. That way, it acts just as if it were aligning vertically.

Here are a few links which touch on it:
http://www.oddhammer.com/tutorials/v_align_text/
http://www.actionscript.org/forums/showpost.php3?p=657153&postcount=4

Taken from http://www.google.com/search?q=as2+textfield+vertical+alignment

The following is the link to the Language Reference on the topic of AS2 TextFields. The Language Reference is a great source of information, however, it's a little dry at times. Use it like you would a Dictionary, as a lookup reference, not a book that you read from start to finish. ;)
http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002237.html
0
 
AreDubyaCommented:
Tia Flo,

This is a good link. I made a quick demo file with the relevant code.

AreDubya

http://www.kirupa.com/forum/showthread.php?t=162160
textAlignCenterAS2.fla
0
 
IqAndreasCommented:
Could you elaborate a little more on what you mean? Do you mean text that is rotated?

O
R

T
E
X
T

T
H
A
T

IS

L
I
K
E

T
H
I
S
?

Flash CS5 has several new text capabilities, including vertical alignment.
http://www.gotoandlearn.com/play?id=118

But look around in the settings panel in while the textField is highlighted, and you might come across options for the effects you want.

Could you elaborate more on what you are trying to do? If you cannot find those text capabilities in Flash, just ask and I can write up some code that will work.


Andreas
0
 
flo_the_lil_minxAuthor Commented:
HI thanks for the example but Andreas is right, I should have more specific.

What I want is for the text to appear in the middle on the text box rather than at the top

Thanks

Flo
0
 
flo_the_lil_minxAuthor Commented:
Hi Andreas,

I seacrhed google but didn't understand the solutions fully.

I shall have a look at the Adpobe page

Thanks

Flo
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.