Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6991065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:26:37+00:00 2026-05-27T19:26:37+00:00

I created a document class for an empty stage and would like to create

  • 0

I created a document class for an empty stage and would like to create an output class which is imported into the document class.

Inside the output class I would like to create a textField with the methods to set and read the text.

a) empty stage with document class “tommy”

b) document class “tommy”

package  {
  import flash.display.MovieClip;
  import cOutput;

  public class tommy extends MovieClip {
    var _loc_1:cOutput;

    public function tommy() {
      _loc_6 = new cOutput;
      _loc_6.setOutput();//("hurra");       
    }
  }
}

c) output class cOutput (with or without extends Movieclip)

package {
  //import flash.display.MovieClip;
  import fl.controls.TextInput;

  public class cOutput{ //extends MovieClip {
    public var texteField:TextInput;

    public function cOutput() {
      texteField = new TextInput();
      addChild(texteField);
      texteField.text = "Seriously... I need to be displayed."
    }
    public function setOutput(printValue:String){
      texteField.text = printValue;
    }
  }
}

I am receiving “Definition fl.controls:TextInput could not be found”.

I read that you need to have this in the library (I dragged a text field as classic text, input text on stage).
Seems I am not getting this working.

Any idea what I am doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:26:38+00:00Added an answer on May 27, 2026 at 7:26 pm

    Use the TextField class instead of the TextInput class. The TextField class is the most basic text component: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.html

    On a side note, your addChild() call won’t do anything, as cOutput isn’t a display object.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a xslt document which formats an xml document, but I would
In WPF I would like to create custom Inline implementation. From documentation of Inline
I am trying to create a unit test that generates an empty test document
I'm trying to create a javascript class which opens a jQuery dialog and allows
I have a DOM Document created from scratch and I need to serialize it
I have a report document created by Microsoft Reporting but instead of using its
this is my situation: I have two org.w3c.dom.Document created from two xml files. What
I have created an Excel document using OpenXml SDK 2.0, now I have to
Scenario: I have a document I created using LaTeX (my resume in this case),
I am trying to load a xml document I created using PHP and DOM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.