Opacity Slider scripting

Hi,

i need to create opacity slider for a photo.
I have created slider, but i need AS to be put on myMC(which is my photo) to be able to change opacity…can anyone help with the script?

Thanks!!!