title: as3 why is my public var changing?
body: <p>I have a var called "currentMystery" I have reduced the issue down to these two functions
  I believe. Anyway, the first time through it works and traces a var from an Array... but the second time through something is changing it to [Event type="soundComplete" bubbles=false cancelable=false eventPhase=2]</p>
  
  <p>What in the code is changing this or what am I doing wrong? 
  Thanks so much!</p>
  
  <p>Any ideas on how to keep it as the same var as it assigned here:</p>
  
  <pre><code>currentMystery = "" + Mystries[4] + "";
  </code></pre>
  
  <p>...</p>
  
  <pre><code>public static var Mystries:Array = new Array("null","Joyful","Luminous","Sorrowful","Glorious");
  
      public function checkDecade(e:Event = null)
      {
          if (decadeCount &lt; 6)
          {
              Announce = true;
              currentMystery = "" + Mystries[4] + "";
              prayDecade(currentMystery);
  
          }
      }
  
  
      public function prayDecade(currentMystery:String)
      {
  
    //// MY ISSUE IS WITH currentMystery. First time through 
    //// it works but the second through it is changing to 
    //// something like [Event type="soundComplete" bubbles=false etc...
    trace("Pray Decade called: " +currentMystery);
  
  
          if (Announce)
          {
              /// Sets PAUSE before Announc || Add features later to all prayers
              setTimeout(function()
                 {
                      MainDoc.cPrayer.text = currentMystery;
                      trace("Called Announce"+decadeCount);
                      trace("Called Announce: Mystery: " + currentMystery+" Current Decade: " +decadeCount);
                      theAnnounce = new Sound();
                      theAnnounce.load(new URLRequest("audio/Rosary/Announce/"+currentMystery+"/"+decadeCount+".mp3"));
                      Praying = theAnnounce.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, prayDecade );
                      Announce = false;
                  }, 2000);
  
          }
          else
          {
              if (prayerCount==0)
              {
                  trace("Our Father " + decadeCount);
                  //trace(love);
                  Begin = true;
                  /// Sets PAUSE before Our Father || Add features later to all prayers
                  setTimeout(function()
                     {
                       Begin = true;
                       ourFather(); 
                     }, 2000);
  
              }
  
              if (prayerCount &gt;0 &amp;&amp; prayerCount&lt;11)
              {
                  trace("Hail Mary " + prayerCount);
                  Begin = true;
                  hailMary();
              }
  
              if (prayerCount==11)
              {
                  trace("Glory Be... " + prayerCount);
                  Begin = true;
                  gloryBe();
              }
              if (prayerCount==12)
              {
                  trace("Oh My Jesus... " + prayerCount);
                  Begin = true;
                  ohMyJesus();
              }
              function ourFather(e:Event = null)
              {
                  if (Begin)
                  {
                      Praying = OFB.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, ourFather );
                  }
                  else
                  {
  
  
                      Praying = OFE.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, prayDecade );
                      prayerCount++;
                  }
                  Begin = false;
              }
  
              function hailMary(e:Event = null)
              {
                  if (Begin)
                  {
                      Praying = HMB.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, hailMary );
                  }
                  else
                  {
                      Praying = HME.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, prayDecade );
                      prayerCount++;
                  }
                  Begin = false;
              }
  
              function gloryBe(e:Event = null)
              {
                  if (Begin)
                  {
                      Praying = GBB.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, gloryBe );
                  }
                  else
                  {
                      Praying = GBE.play();
                      Praying.addEventListener(Event.SOUND_COMPLETE, checkDecade );
                      prayerCount++;
                  }
                  Begin = false;
              }
  
              function ohMyJesus(e:Event = null)
              {
                  Praying = OMJ.play();
                  Praying.addEventListener(Event.SOUND_COMPLETE, checkDecade );
                  prayerCount = 0;
                  decadeCount++;
              }
  
          }//End if Else
      }
  </code></pre>