very nice

BUT: Your images and IDs are not in sync, that's why you see these strange "flickering"

Image "s0013.png" has the ID 1004!
OK, here is what you should do, since hiding/showing images are not necessary and may cause
flickering and unneccessary delays!
1. Hide all your PNG imgages!
2. Create an empty image "display" wiht the same dimension as your PNGs = 320*240, location 160,120
3. Set the layer of your button to top!
4. then put this into your button:
Code: Select all
on mouseUp
put the ID of img "display" into tID
repeat 5
repeat for each item i in "0001,0002,0003,0004,0005,0006,0007,0008,0009,0010,0011,0012,0013"
### This is the trick! Only have ONE image so hiding/showing is not neccessary!
put img ("s" & i & ".png") into img "display"
set the windowshape of this stack to tID
wait 100 millisecs
end repeat
end repeat
put empty into img "display"
set the windowShape of this stack to 0
end mouseUp
