Flash ActionScript when enter is pressed goto next scene


How do I, in Macromedia Flash MX, add into the actions a script that will allow me to run a PowerPoint like presentation.

For example I have one scene that loops until I press enter, then it will go to the next scene.

Each scene will run on a loop until the enter key is pressed, then it will go to the next scene and so on...

Can anybody help me??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You will need to use the key object somehting like this:

_root.onEnterFrame = function()
  if (Key.isDown(Key.ENTER))

Hope that's what you were after...

koerstyAuthor Commented:
I don't want to have any buttons on the slideshow. Is their any way to add this to a entire layer? So when the enter key can be pressed at any time?
Koersty, the suggestion fro Xenophon doesn't require a button, place it on the first keyframe of your movie, you might might to add an else to keep it looping, so

_root.onEnterFrame = function() {
      if (Key.isDown(Key.ENTER)) {
            gotoAndPlay(6); // where you want to go when enter is pressed
      } else {
            gotoAndPlay(1);//loop while enter not pressed

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
isn't that just dandy...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.