A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: "flatten" a Variable string

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    95

    "flatten" a Variable string

    is it possible to "flatten" a Variable so i can move the text of a variable into something like a list then when the var changes the list will not change with it?
    thank you

  2. #2
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    I have no idea what you are asking.... Can you rephrase your question?

  3. #3
    Member
    Join Date
    Jan 2006
    Posts
    95
    sorry
    ok lets say i want to make a list of names
    and i have a input text field with a var name of "names"
    and i also have a "GO" button

    after i type in a name i click the GO button
    when i click the button it will take the "names" var and move it to a new var called "nameList"

    if i would do a code like
    on(release){
    nameList = names;
    }
    it would replace the old name name with the new name

    but i just want add a new name

    thanks for the help

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    nameList += names;
    Which means: nameList = nameList+names;

    gparis

  5. #5
    Member
    Join Date
    Jan 2006
    Posts
    95
    o ok thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center