How to detect a clickable area (coloured grey in this instance) inside an image sprite (back color is black)
on mouseleave me
cursor 0
end
on mouseenter me
thename= sprite(me.spritenum).member.name
theimage=member(thename).image
end
on mousewithin me
thename=sprite(me.spritenum).member.name
pointinmember= sprite(me.spritenum).mapstagetomember(_mouse.mouseloc)
theimage=member(thename).image
thepix=theimage.getpixel(pointinmember)
if thepix=color( 128, 128, 128 ) then
cursor 3
else
cursor 0
end if
end
Sequence of events:
Me walking down the road.
Passes by a “The wrestler” poster.
Before turning to look in the other direction in disgust, my eyes catch the name “Darren Aronofsky” on the poster.
Me goes in and watches the wrestler.
Comes out of the cinema with tears in his eyes.
Decides to catch up on Aronofsky’s other works.
Rents “The Fountain”.
Watches it over and over and over and over again again again.
I don’t know if this guy will turn out to be the best director ever… but he definitely is my favorite.
All his films said the exact same thing it appears…
Anyways here’s some of the best footage I ‘ve seen on a screen for years…
Monkey King say:
When smoking that huge joint and you get to the point wehn it’s finished and you stand(figuratively speaking) there looking at the roach and think that there might be something left and decide to go for that last drag… DON’T
You ‘re gonna cough your lungs out.