title: setting dynamic text value in Actionscript
body: <p>I have a symbol called MapNameText and a dynamic text field inside called "innerText".</p>
  
  <p>I'm trying to make it change the text when i click on the object they're all in but it doesnt work</p>
  
  <h2>Relevant part of my actionscript:</h2>
  
  <pre><code>var MapName:String;
  
  this.onMouseDown = function()
  {
  
      trace(MapNameText['innerText'].text);
  
      MapName= MapNameText['innerText'].text;
  
      switch(MapName)
      {
          case "Classic":
          this.MapNameText['innerText'].text = "Crystal";
          trace(this.MapNameText['innerText'].text);
  
          case "Crystal":
          MapNameText['innerText'].text = "Volcano";
  
          case "Volcano":
          MapNameText['innerText'].text = "Classic";
      }
  }
  </code></pre>
  
  <hr>
  
  <p>In the output window i get
  "Classic"
  "Crystal"
  But the text doesn't update in my object, it's confusing me a lot and im not sure what to do</p>
  
  <p>Can anyone please lend me a hand with how to fix this?</p>