Are you getting compiler errors in the console? If so, what are they? And if you are, post your code using code tags please: Using code tags properly
If you do post the error messages, post the full errors too.
Remember, coding follows extremely strict language rules. Your syntax needs to be 100% correct, including all necessary punctuation and capitalisation.