title: AS3 Components in Flash Designer
body: <p>In an ActionScript 2 project I can create a new MovieClip, right-click on it on the library and select "Component Definition" to add parameters that can be referenced inside the MovieClip. This parameters can be easily changed in the MovieClips's properties.</p>
  
  <p>Now, I'm working on an ActionScript 3 project but haven't been able to figure out a way to obtain the values passed in those parameters.</p>
  
  <p>I defined a parameter named "textToDisplay" but when I write the following in the Actions for the first frame I get an error:</p>
  
  <pre><code>trace(textToDisplay);
  </code></pre>
  
  <p>This is the error:</p>
  
  <pre><code>1120: Access of undefined property textToDisplay.
  </code></pre>
  
  <p>Do you know how to capture the value of that parameter?</p>
  
  <p>Thanks</p>
  
  <p>PS: I'm using Adobe Flash CS3 Professional on Windows XP</p>