/swfidle

How to save CPU by idling a SWF when not interacting with it 😴

Primary LanguageActionScript

swfidle

How to save CPU by idling a SWF's Flash Player window when not interacting with it.

import com.spikything.utils.SWFIdle;
SWFIdle.setup(stage);

Done :)

PLEASE NOTE: This repo is no longer maintained. However, despite the fact that Flash is officially defunct, this code may be useful as old Flash projects can be brought back to life using https://github.com/ruffle-rs/ruffle/ for web/desktop.