title: visibility false, XML, as3
body: <p>I'm using external XML to set flash vars. Alpha works, but not Visibility. 
  How do I get my swf to respond to visibility? Thanks.  </p>
  
  <p>XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;SESSION&gt;
  &lt;BGv TITLE="visible true"&gt;false&lt;/BGv&gt;
  &lt;BGa TITLE="alpha 50 percent"&gt;.5&lt;/BGa&gt;
  &lt;/SESSION&gt;
  </code></pre>
  
  <p>SWF</p>
  
  <pre><code>//LISTEN AND LOAD XML
  var myXML:*;
  var myLoad:URLLoader = new URLLoader();
  myLoad.load(new URLRequest("visible.xml"));
  myLoad.addEventListener(Event.COMPLETE, parseXML);
  //PARSE XML
  function parseXML(e:Event):void {
  myXML = new XML(e.target.data);
  //MY TEST
  var bgA:*;
  var bgV:*;
  trace(myXML.BGa.text());
  trace(myXML.BGv.text());
  bgA =(myXML.BGa.text());
  bgV =(myXML.BGv.text());
  //MY OBJECT
  bg.alpha = bgA;//This works great
  bg.visible = bgV;//This has no effect
  }
  </code></pre>
  
  <p>OUTPUT</p>
  
  <pre><code>.5
  false
  </code></pre>