A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Buttons dont work!!!!!!

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    12

    Buttons dont work!!!!!!

    Oke this is the problem.

    I'm loading a movie clip (movie name = News-ned-movie, Instance name = news-ned) in my timeline.
    This movie contains a Scroll Pane (Scroll content = Movie named "news-ned").
    The movie contains buttons named nieuws-ned01 / nieuws-ned05, and a code:

    news01.onRelease = function () {
    _root.gotoAndPlay("nieuws-ned01");
    }
    news02.onRelease = function () {
    _root.gotoAndStop("nieuws-ned02");
    }
    news03.onRelease = function () {
    _root.gotoAndStop("nieuws-ned03");
    }
    news04.onRelease = function () {
    _root.gotoAndStop("nieuws-ned04");
    }
    news05.onRelease = function () {
    _root.gotoAndStop("nieuws-ned05");
    }

    I hope someone can tell me what's wrong


    Thanks

    Joris

  2. #2
    FK's Giant Steve_w_V's Avatar
    Join Date
    Mar 2003
    Location
    San Jose, California
    Posts
    2,113
    You are targeting the _root. with that code. You need to have a _root.MC_INSTANCE_NAME.doSomething() type code.
    The other day, I bought a box of animal crackers. On the side, it said "Do Not Eat if Seal is Broken". I opened the box and sure enough...

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    12
    I tried targeting the Instance “news-ned”, because that’s the MC with the label I’m revering to. But it didn’t work.

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