A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: I need help!! Problems with the command Eval

  1. #1
    Member
    Join Date
    Aug 2000
    Posts
    44

    Arrow

    Hi i have a big problem with the command Eval.
    If i use Set variable: "word" = eval("word"&random)
    The variable "word" is now a random word from a text file.
    If i wright that word in a text box (name of text box = text) the movie should go on to the next frame. I use this script to do that

    if (word eg text)
    go to next frame

    Help



  2. #2
    Junior Member
    Join Date
    Oct 2000
    Posts
    20
    You use: eval("word"&random)

    "word" is considered a textstring, not a variable. Is this what you want.
    The rest I'am not familiar with, sorry

    Nick


  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Is Random a variable (i presume it is because you have not entered a numerical value to randomise after it) if it is you should not use this to name a variable because it is a Flash reserved word. Use ran or something like that. You must also have variables;

    word1, word2, word3 etc. to reference with this evaluation...mgb

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