Skip to content

Replace the Flash tags on an existing page

import { configure, watchFlash } from "@swf2es/web";
// Each Flash <object>/<embed> becomes a <swf2es-player> with its params, now and as the
// page adds more, until stop(). replaceFlash() does it once, for the tags there now.
const stop = watchFlash();