Author Topic: Skip button clarification  (Read 1512 times)

nate11985

  • Guest
Skip button clarification
« on: April 25, 2013, 02:09:04 am »
Im currently taking Interactive Authoring 1 and we are to create a splash page with a required skip button. I created the code for it and it works fine but I stumbled upon on older forum thread that displays a different code (found here- http://aipodhelp.com/wdim/index.php?topic=580.0).

Here is the code that I am using-

skip_btn.addEventListener (MouseEvent.CLICK, goHome);

function goHome(e:MouseEvent){
gotoAndPlay(466);
}

frame 466 contains the home page for the site. All the frames before that contain the splash page with the skip button. The skip button is a button with an instance name of skip_btn.

I won't paste the code from the forum thread that I stumbled upon as it is pretty long and would only waste space here, but my questions is...

Is there a main difference between the two types of code and if so, what are the differences?

dudelively

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 207
  • Dr. Dude
Re: Skip button clarification
« Reply #1 on: April 25, 2013, 05:33:54 am »
They are both effective solutions, just for slightly different configurations.
Your approach works when the introduction exists on the main-time line.
The thread you are referencing is an approach used when the skip button and introduction is contained within a movie-clip symbol. The button is then within the movie-clip symbol and has to reference the main-time-line in order to skip.
•••••••••••••••••••••••••••••••••••
Dr. Dude
Jason Dude Lively
•••••••••••••••••••••••••••••••••••

nate11985

  • Guest
Re: Skip button clarification
« Reply #2 on: April 25, 2013, 03:58:25 pm »
Makes perfect sense! Thank you :)