5 Replies Latest reply on Oct 28, 2006 7:50 AM by kglad

    Actionscript on movie help

    hotmag Level 1
      Hi, I'm currently working on a multimedia flash site for a school project and I'm very new to actionscripts. I have two questions which I would really appreciate any help on:

      1) I have a movie which is started by the user clicking on a button within the movie. Is there any way to hide this button once the movie has started. I tried using "visible = false" script but I get an error message.

      2) The movie is on the home page and I would like it, once the movie has played, to automatically go to the next page. At the moment, once it has finished, it goes back to the beginning of the movie and stops.

      I apologise if this doesn't make much sense. If you need anymore information about the sort of thing I'm after or how my project is set out so far, just say. Any help at all will be much appreciated.

      Thanks, Mike
        • 1. Re: Actionscript help
          kglad Adobe Community Professional & MVP
          1. set the _visible (not visible) property to false

          2. where's the "next page"? is that a html page (if so, use getURL() ) or another frame in the _root timeline (if so, label that frame and use _root.gotoAndPlay() ) or another movieclip (if so, use attachMovie() ) or something else?
          • 2. Re: Actionscript help
            hotmag Level 1
            Thanks for the reply kglad. As i am new to all of this, could you explain a bit more please.

            1. Where would I write the _visible script in. At the moment, the script for the movie looks like:

            stop();
            doorbtn.onRelease = function(){
            gotoAndPlay("houseintro");
            };


            "doorbtn" is the button which starts the movie playing, so how would I script it so that "doorbtn" is hidden once the movie has started playing?

            2. Again, I may need some more explaination as to where I should insert this script. The "next page" is another frame on the timeline labelled "grnd_floor". I only want it to go to this page after the movie has finished playing.

            Thanks again for the reply, and sorry for not understanding much about this, Mike
            • 3. Re: Actionscript help
              kglad Adobe Community Professional & MVP
              try:

              • 4. Re: Actionscript on movie help
                hotmag Level 1
                Thank you so much, both the codes work perfectly now.

                Thanks again, Mike
                • 5. Re: Actionscript on movie help
                  kglad Adobe Community Professional & MVP
                  you're welcome.