From Test-Scratch-Wiki
Scratch runs with Adobe Flash Player. Version 10.2 or higher of Flash Player is required to be able to view or see the editor of projects.
It is programmed in Action Script 3. The source code of the base editor can be found at its Github Repository, scratch-flash.