dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Why can't I control my movieClips?

  1. #1
    Media Developer CJElven's Avatar
    Join Date
    Jan 2002
    Location
    San Antonio, TX
    Posts
    298
    I have 5 different buttons that control how a movieClip called "facultymenu" proceeds. I set up everything the way I should have (I hope), and lo and behold...nothing happens. So, I tried something simpler, like removing all the "if" statements, just to make sure that the movie could be controlled...no go. So, I have a simple button, that is supposed to send my MC with the instance name of "facultymenu" to the label "jinksstart". But, nothing happens. I tried using just the gotoAndPlay(2), but nothing happens. I haven't had this problem before, so does anyone know why I would now? The buttons are on the main level of the movie (well, in the main timeline, anyway), and the MC I'm trying to control is also on the maintimeline. So, I have this going on on the first button:

    Code:
    on (release){
      facultymenu.gotoAndPlay("jinksstart");
    }
    I've also tried:

    Code:
    on (release){
      facultymenu.gotoAndPlay(2);
    }
    The MC has a "stop()" command in the first frame.
    I've even tried changing the name of the instance to something that isn't the name of the MC, like "bob", but nothing is happening. Does anyone know what I'm doing wrong here? Am I just totally forgetting something simple?

    -CJElven

  2. #2
    Member
    Join Date
    Apr 2000
    Posts
    32
    okay...here it goes..

    Code:
    on (release) {
        tellTarget (_root.facultyMenu) {
            gotoAndPlay("jinksstart");
        }
    }
    also, make sure that you are giving your movie an instance name(it should be facultyMenu)..not just a name.

    Get it? IF you've got any questions...just reply...

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    TellTarget is deprecated... and although it should still work... Writing:

    on (release) {
    tellTarget (_root.facultyMenu) {
    gotoAndPlay("jinksstart");
    }
    }

    ...Is the same as writing:

    on (release){
    _root.facultymenu.gotoAndPlay("jinksstart");
    }


  4. #4
    Member
    Join Date
    Apr 2000
    Posts
    32
    old habits die hard

  5. #5
    Media Developer CJElven's Avatar
    Join Date
    Jan 2002
    Location
    San Antonio, TX
    Posts
    298
    Should I have to target the _root? Both the buttons and the MC are in the _root. Oh well. I'll give it a try and post what happens tomorrow after I get back to the office. Thanks, whether it works or not.

    -CJElven

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