;

PDA

Click to See Complete Forum and Search --> : [RESOLVED] Instantiating Components


EvGen
07-25-2008, 02:26 AM
Hi,

I can't seem to be able to instantiate any "Component" type DisplayObjects (like TextInput, TextArea, etc) with ActionScript. The "normal" type DisplayObjects work fine (like MovieClip, Sprite, TextField), but otherwise I get the following error:1180: Call to a possibly undefined method TextArea.I tried pasting an example directly from the help pages, and still get errors. When using the TextAreaExample class as defined in Help, following exactly the instructions given in "Using the Examples", I get several errors of the same nature. What am I doing wrong? Any insight would be appreciated.

EvGen
07-25-2008, 02:47 AM
Resolved. Apparently you have to have an instance of the component in your library.