AS3 Components in Flash Designer

Posted by Jack Voight on Stack Overflow See other posts from Stack Overflow or by Jack Voight
Published on 2008-11-26T22:20:46Z Indexed on 2010/03/14 5:25 UTC
Read the original article Hit count: 186

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.

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.

I defined a parameter named "textToDisplay" but when I write the following in the Actions for the first frame I get an error:

trace(textToDisplay);

This is the error:

1120: Access of undefined property textToDisplay.

Do you know how to capture the value of that parameter?

Thanks

PS: I'm using Adobe Flash CS3 Professional on Windows XP

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-3