A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: target depending on variable

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    Hi there.

    I'm really stuck. Please help me out.

    I have three instances on stage ("options" "intro" "welcome").
    Each mc has a button in the first frame, and is passive in the second frame.

    On release on each button I set a variable "active" in _level0 to "options" "intro" or "welcome" respectively. And goes to 2 and stops

    I also want to tell the target in "active" to go to 1 and stop - this part doesn't work!!!

    on (release) {
    tellTarget (eval ("_level0" add _level0:active)) {
    gotoAndStop (1);
    }
    gotoAndStop (2);
    _level0/:active = "design";
    }

    Please help out
    /kristian



  2. #2
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    .... I figured it out myself.
    Thanx me

    on (release) {
    tellTarget ("_level0/" add _level0:active) {
    gotoAndStop (1);
    }
    gotoAndStop (2);
    _level0/:active = "options";
    }

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