Help regarding inserting multiple spaces
Posted: 19 Sep 2017 05:56
Hey everyone!
I want to insert (dynamic number of) multiple spaces inside a text field. How can this be achieved using \n?
I figured out that in order to insert three spaces i need to do the following
s="\n";
s=s+s+s;
which led me to the conclusion that in order to insert say x number of spaces, I need to sum the variable 's' x number of times i.e. I need to use the mathematical function summation. Unfortunately there's no ∑ (summation function) in the action script.
Kindly help in this regard.
Thus far, I've developed the following
n="\n";
diff=10;
i=0;
while(i<=diff)
{
i=i+1;
n= ;
};
What should I write after n=
I want to insert (dynamic number of) multiple spaces inside a text field. How can this be achieved using \n?
I figured out that in order to insert three spaces i need to do the following
s="\n";
s=s+s+s;
which led me to the conclusion that in order to insert say x number of spaces, I need to sum the variable 's' x number of times i.e. I need to use the mathematical function summation. Unfortunately there's no ∑ (summation function) in the action script.
Kindly help in this regard.
Thus far, I've developed the following
n="\n";
diff=10;
i=0;
while(i<=diff)
{
i=i+1;
n= ;
};
What should I write after n=