On 20.03.2010, at 20:47, FrankBz wrote:
> 
> 
> Hello everyone, I would like to have a Morph which according to different
> colored morphs dragged into it, responds with different actions. For
> example, if the dragged morph is blue, the container morph should change its
> background color, otherwise it should do nothing.
> So far I was able to have a container Morph which accepts morphs and repels
> certain colors. 
> How can I also specify that the container Morph does something (say, calls a
> method) once a specific colored morph has been dragged into it?  

Override #acceptDroppingMorph:event:.

- Bert -


_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to