A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: um.. shouldn't this be simple?

  1. #1
    Member
    Join Date
    Feb 2001
    Posts
    32
    i don't know, why this doesn't work:
    i have 2 mc, one nested inside the other.

    in the parent timeline i define a variable (isevent):

    isevent = "no";


    and in the second mc i need to know that value of isevent:

    if (_parent.isevent = "no") {
    gotoAndPlay (2);
    } else {
    gotoAndStop (1);
    }


    does anyone know what's wrong?
    thanks

    leaf

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    148
    You need an extra '=' sign

    if (_parent.isevent == "no") {
    gotoAndPlay (2);
    } else {
    gotoAndStop (1);
    }



  3. #3
    Member
    Join Date
    Feb 2001
    Posts
    32
    :-D

    thanks!!!
    i knew i overlooked something obvious. i guess i'm just working too much ;-)
    no concentration any more.
    ()0Oo :-(

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