Laptop screen not working

ok so it works when the ac plug is not plugged in but when i plug in screen fades to black???