_root path using variable?

basically i’ve got a inbox type gig set up, and when you log in, php checks the passwords, and sends the first ten message’s information back to the flash file, using a loop such that the subject of the first message would be 1_subject, the second 2_subject, and so on.

in the swf, when you click inbox, it creates 10 dynamic “message” movieclips in a loop, where the first would be “message1”, the second “message2”, etc. inside each clip is a code that strips “message” away, leaving just the number (x=1, x=2, etc), but it’s in string format, if that matters…

when i try the following:

subject = “_root.”+x+"_subject"; //it actually prints “_root.1_subject” instead of the actual subject for message one

or

subject = _root.x+"_subject"; //it prints “undefined_subject”

anybody know how i should fix this??

thanks for the help