title: Control Dynamic text with a button, Flash CS5, AS3
body: <p>I'm new to AS, especially AS3. </p>
  
  <p>Here's the problem, I created a simple mouse-over interactivity using AS2, and I want to change it to AS3.</p>
  
  <p>On the stage, I have several instances of a button, instance1, instance2, …. I also have a dynamic text box with instance name "txt_box". The initial text in the box reads "Initial Text".</p>
  
  <p>On mousing over each button instance, the dynamic text changes depending on the instance. Let's say, it changes to description1, description2, ….</p>
  
  <p>To do that, I attached the following code to the button instances (the code below is for instance1):</p>
  
  <pre><code>on (rollOver) {
  txt_box.text = "Description1.";
  }
  on (rollOut) {
  txt_box.text = "Initial Text";
  }
  </code></pre>
  
  <p>So simple in AS2. How can I do that in AS3?</p>