AS3 destructible terrain

I am trying to make a side scrolling 2d shooter based underground and I want to use a destructible 2d environment but I’m a noob at coding so is there a chance someone could give me some pointers?