Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Splash Skip Intro Button

Explorer ,
Jun 01, 2008 Jun 01, 2008
Hi,

I'm a beginner level student. My project is to create a Splash Intro and a 4 page Website (Home page and 4 internal pages). I have to use Flash (no HTML, Java, CSS, etc). We are using Flash CS3 with Action Script 3.

The Splash Intro should play continuously. This part I have working like a charm. However, the project requires a Skip Intro button. I have made the Skip intro button and gave the "instance" a name. The next part is where I'm stuck. I want to be able to click on the Skip Intro button and go to the first page of my "Website." I have all of my pages on one timeline. No movie clips. This is very basic.

My Home page has some animation on it. My name comes in from the left and three buttons come in from the right. When the user clicks on the Skip Intro button, I want it to go to the Home page, play the brief animation and STOP.

I don't want the Skip Intro button to just go to frame 40 (for example) and just stop. And, if it goes to frame (50) for example and stops the user will miss the animation (right?). Can anyone help ?

Here is what I have but it doesn't work:

function (event:MouseEvent):void {
gotoAndStop(400);
}

skip_btn.addEventListener(MouseEvent.CLICK, playMovie);


mindforge

TOPICS
ActionScript
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jun 01, 2008 Jun 01, 2008
That code from frame 310 will be seen anywhere you click along the timeline until you interrupt it with a new frame, but it only works at 310. So I believe the only thing you need to do is put that stop(); in at 440 that you mentioned... don't sweat the code at 310... it's okay as is (assuming I'm on track with what you have)..
Translate
LEGEND ,
Jun 01, 2008 Jun 01, 2008
If that is what you have, you missed naming the function, and I believe you stated it should go to frame 40 (not 400):

function playMovie(event:MouseEvent):void {
gotoAndStop(40);
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 01, 2008 Jun 01, 2008
Hi Ned,

Thanks for your help. Ok, I think I'm almost there. I have added this code to the 1st frame of my action layer.

skip_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
gotoAndPlay(401);
}

Where skip_btn is the name of my Skip Intro button. I mispoke before. The frame I want to go to is actually (401).

Now, everything works excpet one little thing. I have my Splash page working. The skip_btn code takes me to the exact frame I want to go to. The Home page animation plays.

I want the animation to stop right around frame (440). My thought was to go to frame (440) on the action layer and add: stop();

But when I went there the code that I added on frame (310): gotoAndPlay(1); for my Spash repeat was also in the action panel when I clicked on frame (440)?

I'm sooo close. I just want to stop the movie at frame (440). Any ideas?

mindforge
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2008 Jun 01, 2008
That code from frame 310 will be seen anywhere you click along the timeline until you interrupt it with a new frame, but it only works at 310. So I believe the only thing you need to do is put that stop(); in at 440 that you mentioned... don't sweat the code at 310... it's okay as is (assuming I'm on track with what you have)..
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 01, 2008 Jun 01, 2008
Hi ,

That did it!! I removed the frames on the action layer past frame (310) and inserted: stop ();

Thank you very much!

mindforge
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2008 Jun 01, 2008
You're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 07, 2012 Mar 07, 2012

I have the same assignment but am so much more lost. I dont have the code for the button I dont understand what part of the code is what for the skip inro code my names and instances are different and dont know how far down in the frames to put my website so I can have the intro play in so many frames. I dont know how to make the skip intro button code work help help

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 21, 2016 Oct 21, 2016

i have some problems. I'm making Skip button but the problem is, the skip is executed and it jumps from  207 to 1346 smoothly with no problems but it loops back to frame 207 after few seconds on frame 1346 and yes there is stop(); after 1352 so there is no reason for it to loop back. the two frames are on different layers, could that be a problem?

this is the code i'm using

skip_btn1.addEventListener(MouseEvent.CLICK, Skip)

function Skip(MouseEvent):void

{

     gotoAndPlay("end1");

  SoundMixer.stopAll();

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 22, 2016 Oct 22, 2016
LATEST

I really need help with this, it is frustrating. I see no reason why it is doing it and have no solution to it so far as it doesnt generate any debug solution.

if you can help me and point out to the problem, I have uploaded the *fla file  to my google drive (https://drive.google.com/open?id=0B4JJpUNJiB4falg5SUFVTXdEZlk )

any help will be much appreciated, it is very short file, 3 leyers only with no more than 5 frames

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines