A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Menu Controll Woes

  1. #1

    controling movie clips with buttons & variables

    Hi all

    i've got a simple animated menu which slides up on rollover and down on rollout but i am having some trouble controlling the movies.

    When i want one of the buttons to start in the up state and be controlled by the other buttons (the button that needs to stay up needs to roll down and return on roll out).

    menu example


    the code in the first frame of the movie is:

    Code:
    onLoadFrame(_root.ovenNav.play());
    var menupage = ovenNav;
    var menuRun = 1;
    var menuloc = true;
    function menuin() {
    while (menuRun<=60) {
     trace("menuRun ="+menuRun);
     trace("menuloc ="+menuloc);
     menuloc == true;
     _root.menupage.gotoAndPlay(menuRun);
     menuRun = menuRun+1;
    }
    _root.menupage.stop();
    menuloc == false;
    }
    function menuout() {
    while (menuRun>=0) {
     trace("menuRun ="+menuRun);
     trace("menuloc ="+menuloc);
     menuloc == true;
     _root.menupage.gotoAndPlay(menuRun);
     menuRun = menuRun-1;
    }
    _root.menupage.stop();
    menuloc == false;
    }
    ok this works ------ but i cann't get the button to go through its tween while incrementing the movie by one using the menuRun variable as its position, any suggestions as to how to do this would be great.

    the other odd thing is that 'menuloc' is always true?

    hope you guys can help
    Last edited by stickygoblin; 06-29-2005 at 06:01 AM.
    Design is a lifestyle -
    live it
    Love it
    breath it do it!
    (and check flashkit daily)

  2. #2
    in addition this code works fine but its the movie tween i am haveing trouble with, is there a way to make sure the movie clip plays to a point before it allows the other movie clips to move?

    any and all help is very welcome on this.
    Design is a lifestyle -
    live it
    Love it
    breath it do it!
    (and check flashkit daily)

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