0

I have two strings. stringOne and stringTwo

I have code that I want to run for a variable named TXT

How can I do like...

for (stringOne and for stringTwo) {
TXT = stringOne (or) stringTwo;
...
stringOne or stringTwo = TXT;
}
1
  • Well everything inside of the FOR I want done to both strings, however I don't want to have to type the series if actions for each of them. I'd like to have a FOR statement so each string goes through the series of actions done to it. The first step in the series is setting a string named TXT as the value of whatever string it's currently on. The last step is setting the string it's currently on to the new value. Commented May 25, 2012 at 9:55

1 Answer 1

2

You have to take those two strings in an array and use foreach to do some actions on the strings.

see this.

http://www.barklund.org/blog/2009/05/21/for-each-in-loops-in-actionscript-3/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.