areaText.contents = "This is an Area Text in a rectangle. See how it flows to the next line.";
/*
i want to break the sentance from 'Text' ie i want to add new line in between and also some more spaces can any one plz help
*/
for example
I want to write the above text like this way
this is an Area
Text in a rectangle. See
how it flows to the
next line
that's a much better explanation, you didn't have to create another thread, you could have replied to my reply in the original thread.
we use the "\r" character to insert a new line and we can use "\t" to insert a "tab" for the spaces, or the actual spaces in a variable
var sixSpaces = " ";
areaText.contents = "This is an Area\rText in a rectangle." + sixSpaces + "See\r" + sixSpaces + "how it" + sixSpaces + "flows to the\rnext line.";
North America
Europe, Middle East and Africa
Asia Pacific