Old-school Flash fan games often hid their unlockables behind password screens, and Sonic Flash is a classic example. If you want to play as Shadow, head to the title screen and open the passwords section.
Choose the option to enter a password, then type 595313131313131 and confirm. Once the code is accepted, both Shadow and Amy become available as playable characters.
Password systems like this were common in browser games before save files became standard, so keeping a note of the code is a good idea if you ever clear your browser data.