A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Adding the values of 2 string variables together?

Threaded View

  1. #1
    Spit
    Join Date
    Oct 2008
    Location
    Philly, PA
    Posts
    51

    Adding the values of 2 string variables together?

    Hi,

    Sorry I screwed up the title, I meant to call it "Convert a value to a variable".

    Using CS3, AS2:

    If I have a variable that's a string value = the name of another variable, can I extract the value and then look for the extracted value's matching variable name to get it's value?

    Ex:

    color = "blue"

    box = "color"

    (Assuming I don't know the value of box)
    How would I get the value of "box" out so I could search for the value "color" as if it were a variable? I need to convert a value to a variable name is what i'm getting at... I think.

    Thanks,

    Spit
    Last edited by SpitSpitSpitty; 08-23-2010 at 11:45 PM.

Tags for this Thread

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