bssage - Chronic constipation is a common symptom associated with Autism. Since you said the behavior lessened after a #2, this may be the root of your issue.
I have cared for a young man that would exhibit similar behavior, seemingly at random and without obvious cause. It was the same type of thing, entering or leaving a building, getting on or off the van, etc. I can best describe his behavior as, extremely frightened. He would hold on to me and hug me very tightly. Then, also for no apparent reason, he would let go and return to his usual happy self. He is non-verbal so it was very difficult to ascertain any possible cause.
I believe that diet is critical in helping those with Autism gain control of there symptoms. This approach IMO makes much more sense than drug therapy. It is also easier to implement, and has little or no negative side effects. Due to the nature of the environment that the young man lives in, putting this theory to the test was not possible. His diet was inconsistent and not the healthiest.
I am currently working with another young man who has, Asperger's syndrome. He is 18. We have had success with basic meditation techniques, and exercise as a way for him to gain self control. I am working with him and his family to design a diet that will hopefully add to our success. I will keep you updated with our results.
I know your daughter may be too young to understand all of the concepts behind meditation, but the basic element are; controlling her breathing and creative visualization. PM me with more details about your daughter and I will be happy to put something simple together for you.
As with any restrictive diet, consult your pediatrician. The most widely recognized success story concerning effective Autism treatment through diet is Jenny McCarthy and her son. There are dozens of articles and interviews about them on the net. I hope I have been helpful. Let me know if there's anything else I can do.