Spray Goo Gone & scrub it in & wash them. I got dried chocolate out of a lime green sweater with it, & gum out of jeans too. Good luck to you.
If you somehow found a way to get melted candy corn into blue jeans, than im sure you will be able to find a way to get it out
Candy corn is just sugar and coloring soak them in water overnight and rewash It should come out after soaking
warm water for the crusty parts scrub with an old toothbrush and i would use shout gel or shout advanced for the color stain if there is one.