well i dunno this........BUT i strongly think that....
when u apply an AC a magnetic field is produced around it in d opposite direction of d magnetic field of d magnet....so both gets cancelled off so demagnetisation occurs.......
well if d ans is too dumb...dont scold me...