It's unfortunate that Scratch is built upon the Flash platform. Though Scratch has been released under the GPL, it requires nonfree software in order to run. Scratch looks interesting, but I cannot recommend its use until this problem is fixed.
Google's Blockly is similar and available under the Apache License:
"Blockly is a component that may be useful for a variety of projects, including educational tools. We want developers to be able to play with Blockly, give feedback, and think of novel uses for it. All the code is free and open source."