http://alice.org/community/showthread.php?t=6897
go this this link, I helped another member with the same problem you are having, there are multiple ways of doing it, just check out each example I put on that thread and pick the one that works for you
If you are stuck on a project, check out the tutorials I made here at this link:
http://alice.org/community/showthread.php?p=36778#post36778
There are lots of tutorials on it so far, including some youtube videos, check it out
Or..
Go to my youtube channel to check out my alice 2.2 tutorials I have there..
http://www.youtube.com/user/sfunk1992?feature=mhsn