Solved

onmouseout pause, and on mouseover resume playing flash

Posted on 2008-06-10
1
2,754 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now