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
Solved

onmouseout pause, and on mouseover resume playing flash

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTML 5 or Flash 7 489
Crash with shockwave flash 8 252
Adobe Flash Install via GPO - Remove Prior Versions From GPO? 1 166
Add 'birds singing' to homepage 5 112
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

861 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