Dav
Dav

Reputation: 150

ActionScript for stringOne and stringTwo

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;
}

Upvotes: 0

Views: 29

Answers (1)

Sudhakar B
Sudhakar B

Reputation: 1563

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/

Upvotes: 2

Related Questions