Solved

How do I pause the movie at the first frame and make it so that when the users hits control and enter it begins to play

Posted on 2004-08-13
2
191 Views
Last Modified: 2010-04-03
How do I pause the movie at the first frame and make it so that when the users hits control and enter it begins to play from the 2nd frame on?
0
Comment
Question by:groovymonkey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
dutchfoxer earned 250 total points
ID: 11794206
SIMPLE SOLUTION:
On first keyframe create an empty keyframe with actionscript:

on (release, keyPress "<Enter>") {
     gotoAndPlay(3);
}

On second keyframe create an empty keyframe with actionscript:
gotoAndPlay(1);

On 3rd you start you movie or something.

---------
MORE advanced:

mykeyListener = new Object();
mykeyListener.onKeyDown = function () {
   if (Key.isDown(Key.CONTROL) and Key.isDown(Key.ENTER)) {
      gotoAndPlay(2)
   }
}
Key.addListener(mykeyListener);
stop();



And bellow the Macromedia Actionscript Dictionary about the subject:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary393.html

Good luck!
0
 
LVL 1

Expert Comment

by:techE_or_not_techE
ID: 11794264
Control and enter is a BAD combination -- that just starts the movie over.  You might want to think about something else, like:  CTRL + SHIFT

Try this:

var key:Object = new Object();
key.onKeyDown = function() {
      if (Key.isDown(Key.CONTROL) && Key.isDown(Key.SHIFT)) {
            _root.gotoAndStop(2)
      }
};
Key.addListener(key);
stop();
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question