# \[HELP FLASH!\] Separate the string data into different variables?

**URL:** <https://forum.kirupa.com/t/help-flash-separate-the-string-data-into-different-variables/322115>\
**Category:** Uncategorized\
**Created:** [May 11, 2011, 3:39am UTC](https://forum.kirupa.com/t/help-flash-separate-the-string-data-into-different-variables/322115 "2011-05-11T03:39:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![celestale](https://avatars.discourse-cdn.com/v4/letter/c/9fc348/32.png) [@celestale](https://forum.kirupa.com/u/celestale)\
**Post date:** [May 11, 2011, 3:39am UTC](https://forum.kirupa.com/t/help-flash-separate-the-string-data-into-different-variables/322115/1 "2011-05-11T03:39:35Z")

</div>

Hi peeps,

I have a string that is sent from PHP to Flash. When I Trace the string in flash, it prints the followings:

> 

First Name: Mickey  
Last Name: M  
Designation: Mouse  
Email: [Mouse@yahoo.com](mailto:Mouse@yahoo.com)  
Mobile: 12345678  
Office: 12345678  
Company: Mickey House

I would like to ask if there is a way to separate the string **line by line** and put them into **different variables** in Flash.

For example: The first line I want to save it in Variable\_A. So when I Trace(Variable\_A), it will print out:

> 

First Name: Mickey

For example: The second line I want to save it in Variable\_B. So when I Trace(Variable\_B), it will print out:

> 

Last Name: M

Help is appreciated !! :te:
