A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] Instantiating Components

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    7

    resolved [RESOLVED] Instantiating Components

    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:
    Code:
    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.

  2. #2
    Junior Member
    Join Date
    Jun 2008
    Posts
    7
    Resolved. Apparently you have to have an instance of the component in your library.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center