A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Tell me how to stick expressions

  1. #1
    Junior Member
    Join Date
    Jan 2002
    Posts
    16
    Hi

    I have made some script with variables like this:

    aube = 50;

    Now i wanted to access the variable in different way for making script easier like this:

    currentbutton = "au";
    trace (curentbutton + "be");

    But only aube appeared in output window not the number 50, what is wrong!!


  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    323
    aube = 50;

    Now i wanted to access the variable in different way for making script easier like this:

    currentbutton = "au";
    trace (eval(curentbutton + "be"));

    this should do it

    David


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