ActionScript & Flash
Understand wmode and Flash embedding
The wmode parameter controls how a Flash object participates in the page’s rendering. Window, opaque and transparent modes were used to balance layering, appearance and performance. A transparent movie could sit over HTML, but that compositing work could carry a cost.
Choose a mode because the page needs its behavior, then test keyboard focus, menus and rendering in the intended environment. Embedding parameters should not stand in for a responsive layout or accessible controls.
For browser projects built around Canvas, place the canvas in normal HTML layout and use CSS for stacking. Keep instructions and navigation in HTML so the page remains useful when the interactive surface is unavailable.
Moving the surrounding UI into HTML
Put the score summary, pause button and help text beside the rendering surface. Make buttons keyboard reachable and preserve their focus styles. Treat the canvas as the playfield, not as the entire website.