Solved

onmouseout pause, and on mouseover resume playing flash

Posted on 2008-06-10
1
2,756 Views
Last Modified: 2008-06-16
Hello, i would like to know how can i make, flash. That when my mouse out of flash it pause (not stop) but pause, and then i mouseover flash again, it resume from same frame.  Let me know. Thanks!
0
Comment
Question by:springfresh
1 Comment
 
LVL 10

Accepted Solution

by:
bluefezteam earned 500 total points
ID: 21750704
hi - this depends on how you have built the flash movie.

If it is one big animation running from the time line, then you can have a button that only has a hitstate (invisible) over the entire flash movie that says onRollover {play();} onRollout{stop();}

that will start and stop things where they are in the timeline (paused)

If your flash movie is a series of nested animations then that is harder to simply pause, one way to do that could be to have the printer panel popup up which pauses everything where it stands - not the prettyest solution, but it depends how your flash movie is built.

Building it all as part of 1 animation is the easiest way as you simply set stop(); and then play();

code below is how to pause a movie using the print method
function pauseMovie()
{
        var p = new PrintJob();
        p.start();
}
 
function onKeyDown()
{
        switch(Key.getCode()){
                case 80: // p key
                pauseMovie();
                break;
                case 19: // pause/break key
                pauseMovie();
                break;
        }
}
 
Key.addListener(this);

Open in new window

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a simple "throw object" gesture on as3 / air mobile ? 3 1,180
HTML 5 or Flash 7 485
Flash doesn't load in Iphone and Ipad 22 486
Accessing Live Dynamic Stream 6 196
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to record live broadcast.

776 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