Play Movieclip Based on XML data?

Hey all,
I was wondering if somebody could help me. I wondered how to set up a flash movie that read an xml doc and depending on the value of a variable, opened a movieclip or not. so if the xml doc had a variable “cool” that had a value of “on”, flash would do something like…

if (variable read from xml) is “on”
loadmovie("")

I just don’t know how to set up the movie. Any tips? thanks!