How to Pause a Flash Movie

If only you could customize the modal dialogue, hehe!

Works with animations as well as code. Since it’s modal, it’ll also prevent your users from interacting with the Flash movie itself.

function pause()
{
        var my_pj:PrintJob = new PrintJob();
        my_pj.start();
        my_pj.addPage(this);
        my_pj.send();
}

pause();

Comments

6 responses to “How to Pause a Flash Movie”

  1. Jayson K. Hanes Avatar

    Dayum!.. how interesting…. sweet idea!!

  2. Casey Corcoran Avatar

    Interesting indeed, the only thing I can add is that you can alternatively do your switch statement like so:

    switch(Key.getCode()){
    case 80: case 19:
    pauseMovie();
    break;
    }

    Cheers!

  3. PiXELWiT Avatar

    Great hack.

  4. squib Avatar
    squib

    but that beings up the print dialogue box (WinXP) – surely that will confuse the hell out’a users ?

  5. yotsse Avatar
    yotsse

    Hi,

    How can I play pause my movie without the print function ???

    Thanks

  6. JesterXL Avatar

    …still workin’ on that one, chief…