I don´t like to be touched by people I barely know (e.g. teachers, strangers, people in my class) or if the said person has dry skin, or a weird texture. But if I know them and they have fair skin, usually it is ok for them to randomly touch me (sometimes)
But I do not like to be hugged without my consent. I remember I was coming home from my friends house (who also has AS) and my moms friend was over with her daughter who was about my age, a little older though so more towards my brothers age. They were about to leave, and were just about to get in their car, when she saw me, and ran down my driveway and into my arms! (well, jump is probably the more appropriate word, I was practically holding her!) It was a little awkward at first because I had no idea she was about to hug me!
And a lot of my teachers that I had like to try and hug me for some reason, and some like to massage my back randomly! I would be talking to them, and they would grab me and massage me. Or I would be reading or doing my work in my desk, and they would try and massage me!