The installer and still does not?

I finished to configure the software and tried a series of tests "HelloWorld" and I get these errors with a white screen on the Simulator. Anyone have any ideas why it doesn't work? Thank you.

The path location type Resource Description
1046: type was not found or is not a constant of compilation: TextField.    Cards/src / / Revesion hand. As line 12 Flex problem
1180: call to a method may not set TextField.    Cards/src / / Revesion hand. As line 12 Flex problem

package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;

    [SWF(width="1024", height="600", backgroundColor="#ffffff", frameRate="30")]
    public class Main extends Sprite
    {
        public function Main()
        {
            var txt:TextField = new TextField();
            txt.text = "Hello Tablet!";
            txt.x = 100;
            txt.y = 100;

            addChild(txt);
            stage.nativeWindow.visible = true;

        }
    }
}

Looks like you're missing the import of the TextField object:

     import flash.display.Sprite;     import flash.display.StageAlign;     import flash.display.StageScaleMode;    

     import flash.text.TextField;

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Slow labview dll

    Hi helpers! I use a very simple VI as a DLL in a c program ++ (using Visual studio 2013). I'm doing an explicit support for the DLL and create a pointer to my VI via LoadLibrary and GetProcAddress. My program work, but unfortunately, it is very slow

  • Live blocked how to contact a "person" I have a disease trying to talk to a machine account

    My live account windows is blocked to send e-mails and continues to tell me to contact customer support. Who is the customer support and why is it so hard to find an Email address or phone number for this problem

  • Windows needs to repeatedly check consistency D even if nothing is wrong

    I have several SSD and HD, including C (SSD) and D (HD).  At least several times a month, from the start, I get the black screen indicating that d should be checked for consistency.  This has happened for nearly two years.  Sometimes I let him check

  • Problems after installing the second SATA drive in Windows 7

    I just install a second SATA hard drive in Windows 7. Currently, I use only a processor AMD Athlon X 2 4800 with 3 GB of RAM, Windows 7 64 - bit, installed on a 400 GB Samsung SATA drive and have two (a pioneer and a Liteon) DVD burners. System worke

  • How to change the size of the video field when you use the camera

    I read the code 4.6 camera example: ... _videoField = _videoControl.initDisplayMode (Field) (VideoControl.USE_GUI_PRIMITIVE, 'net.rim.device.api.ui.Field');Display the video control_videoControl.setVisible (true); ... Basically, it creates a class an