Solved

onmouseout pause, and on mouseover resume playing flash

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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): …
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…

744 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