You could create an instance variable in the image sprite, by right clicking on it in the objects tab on the right, click on instance variables, then once the small popup opens: click on the "+" sign and type a name like: PlaySong1, give to it an initial value of 1
What you'd want to do is: if PlaySong1 = 1, then play song1
But if playsong1 = 0: do not play song1
You can create an interaction that would add 1 to the value of PlaySong1 whenever you touch image1
And then if PlaySong equals 2 then we reset it to 0
What you can do:
Create an event (by going to system, under General: compare two values) and it would say:
First value:
PlaySong1
is greater or equal
value: 2
Then action: double click on image1 object, set value (under Instance variables section), and give to it the value of 0
This will insure that whenever you touch image1, a value of 1 is added to its instance variable called PlaySong1
Now you have to create the events for playing/not playing the song1:
Condition: Touch object: on touched object, (choose image1)
then create two sub events: one for PlaySong1 = 0 and another for PlaySong1 = 1 (you don't need PlaySong1 = 2 since it is automatically reset to 0 if it reaches 2, as you would have made it earlier)
so while the condition of touched object is selected: add a sub event : either by right clicking and choosing subevent, or hit the B keyboard key
first sub event condition: double click the image1 object: compare instance variables (under instance variables section)
put a value of = 1
Then, action for the first sub event: double click the Audio object, and choose Play (and choose the song1 as you planned)
select again the main condition of the event, on touched object, and hit B again to create another sub event
this time you can copy the first sub event and paste it here, then edit the value from 1 to 0, or you can follow the same step for sub event 1 and just use a value of 0
then action for this value: double click the audio object, and choose "Stop" then choose the name of the file, in your case: song1
That's the basic I think, I hope I didn't forget anything obvious? Also remember to go to tutorials section and search for audio tutorials to learn with better examples.