8 Replies Latest reply on Dec 30, 2006 10:33 AM by Seise

    I NEED SOME MORE HELP NOW!!

    Seise
      Now I´m back with a new animation problem that I need help with. If you look at my try out page at: http://www.mickesei.se/flash/index.html

      The problem I have if I press on "Idéen" button it works OK, and the same if I press "Fakta" button, but then the problem comes. If I want to go back to the "Idéen" page again and press on the button the the page opening under the Fakta page.. Why?

      What will I write in the Action Script to open the Idéen page on top?

      Please help me..

      Micke
        • 1. Re: I NEED SOME MORE HELP NOW!!
          kglad Adobe Community Professional & MVP
          because that's the way you made it. if you want that animation to be on-top use swapDepths() to change the depth of the most recently added movieclip to be the highest depth.
          • 2. Re: I NEED SOME MORE HELP NOW!!
            Seise Level 1
            Where will I put it?
            Here is the code to my buttons:

            this.knapp1_mc.onRollOver = function(){
            knapp1_mc.gotoAndPlay("_over");
            }

            this.knapp1_mc.onRollOut = function(){
            knapp1_mc.gotoAndPlay("_out");
            }

            this.knapp1_mc.onRelease = function(){
            _root.anim1_mc.gotoAndPlay("1");

            }


            this.knapp2_mc.onRollOver = function(){
            knapp2_mc.gotoAndPlay("_over");
            }

            this.knapp2_mc.onRollOut = function(){
            knapp2_mc.gotoAndPlay("_out");
            }

            this.knapp2_mc.onRelease = function(){
            _root.anim2_mc.gotoAndPlay("1");
            }

            Thanks... Micke
            • 3. Re: I NEED SOME MORE HELP NOW!!
              kglad Adobe Community Professional & MVP
              try:

              • 4. Re: I NEED SOME MORE HELP NOW!!
                Seise Level 1
                It didn´t work so i tried this instead:

                this.knapp1_mc.onRollOver = function(){
                knapp1_mc.gotoAndPlay("_over");
                }

                this.knapp1_mc.onRollOut = function(){
                knapp1_mc.gotoAndPlay("_out");
                }

                this.knapp1_mc.onRelease = function(){
                _root.anim1_mc.gotoAndPlay("1");
                _root.anim1_mc.swapDepths(1)
                }


                this.knapp2_mc.onRollOver = function(){
                knapp2_mc.gotoAndPlay("_over");
                }

                this.knapp2_mc.onRollOut = function(){
                knapp2_mc.gotoAndPlay("_out");
                }

                this.knapp2_mc.onPress = function(){
                _root.anim2_mc.gotoAndPlay("1");
                _root.anim2_mc.swapDepths(1)
                }

                And it workt with one problem.. I have too press twice at the same button to get i to work right, look at my page..
                • 5. Re: I NEED SOME MORE HELP NOW!!
                  kglad Adobe Community Professional & MVP
                  try:

                  • 6. Re: I NEED SOME MORE HELP NOW!!
                    Seise Level 1
                    It´s the same, I have too dubleclick the secondtime I want to get in on the current page...
                    • 7. Re: I NEED SOME MORE HELP NOW!!
                      kglad Adobe Community Professional & MVP
                      does _root.anim1_mc exist when this.knapp1_mc is undergoing a rollOver?
                      • 8. Re: I NEED SOME MORE HELP NOW!!
                        Seise Level 1
                        I don´t know, It works pretty good, but if yo first click on "knapp1" "Idéen" the anim1 or the bar opens, then you hit button2 "knapp2" and the anim2 "bar2" opens.. But my problem is when you then click on knapp1 again, first the text disappear, then when you click again the the bar opens.

                        Or you can double click on the button, but i want it to reopen on a singel click.

                        Here is the code again:

                        dep=0;
                        this.knapp1_mc.onRollOver = function(){
                        this.knapp1_mc.swapDepths(dep++)
                        knapp1_mc.gotoAndPlay("_over");

                        }

                        this.knapp1_mc.onRollOut = function(){
                        knapp1_mc.gotoAndPlay("_out");
                        }

                        this.knapp1_mc.onRelease = function(){
                        this.knapp1_mc.swapDepths(dep++);
                        _root.anim1_mc.swapDepths(1);
                        _root.anim1_mc.gotoAndPlay("1");



                        }


                        this.knapp2_mc.onRollOver = function(){
                        knapp2_mc.gotoAndPlay("_over");
                        }

                        this.knapp2_mc.onRollOut = function(){
                        knapp2_mc.gotoAndPlay("_out");
                        }

                        this.knapp2_mc.onPress = function(){
                        _root.anim2_mc.gotoAndPlay("1");
                        _root.anim2_mc.swapDepths(1)
                        }


                        Is it because I use movieclip buttons and not button buttons you know, _mc instead of _btn?