a wild guess, try if(_parent.Coins==0)
since the if is IN a movieclip and the variable is declared ON the main timeline (the _parent of the movieclip).
Also Coins and coins are 2 different variables. make sure you spelled it right.

gparis