I don´t know how to program but i know some programs that you can use to program
1.adobe flash player:its really expensive but its good to make flash.
2.Stencyl: the good thing of this one is that it´s free.
3.game maker7:it cost arround 20, you can get it free but i think that free it will be a trial or will have less things.