# Play Movieclip Based on XML data?

**URL:** <https://forum.kirupa.com/t/play-movieclip-based-on-xml-data/216102>\
**Category:** flash\
**Created:** [February 13, 2007, 8:18pm UTC](https://forum.kirupa.com/t/play-movieclip-based-on-xml-data/216102 "2007-02-13T20:18:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodman650](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@woodman650](https://forum.kirupa.com/u/woodman650)\
**Post date:** [February 13, 2007, 8:18pm UTC](https://forum.kirupa.com/t/play-movieclip-based-on-xml-data/216102/1 "2007-02-13T20:18:35Z")

</div>

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!
