PDA

View Full Version : Text align problem


Loannem
12-24-2004, 08:10 AM
Hi There

I have a listbox witch get's populated from a xml file. The listbox contains all my text information like Name, contact numbers and email addresses wich you can insert onto a card wich dimensions are
x = 241.35;y = 355.3;
I also have a center align button on my stage.

What I cant get to happen is that when i click an text object in my listbox and insert it onto my card i want to align this text in the center of my card by clicking on my center align button.. but I cant get it to work :(

Any sugestions?

til
12-24-2004, 12:50 PM
as its loading from XML i guess XML holds all the paragraph stuff which means aligning it wont do anything unless u are in flash and have typed the text manaully. If you can arrange the XML with paragraphs and things (use html within XML + a html enabled box)
so code like <div align = center> get flash to pick it up as HTML and it should work. :D