3 Replies Latest reply on Apr 1, 2008 1:39 PM by ntsiii

    A simple problem that somebody can surely solve

    kendric5
      I am trying to do something really simple and its not working :)
      The following works:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"
      applicationComplete="startup(event)">
      <mx:Script>
      <![CDATA[
      import fl.controls.Label;
      import com.greyhound.flashrealms.account.AccountPanel;
      import com.greyhound.flashrealms.FlashContainer;
      import mx.events.FlexEvent;
      private function startup(e:FlexEvent):void
      {
      var label:Label=new Label();

      label.text="Test";
      Application.application.stage.addChild(label);
      }
      ]]>
      </mx:Script>

      </mx:Application>

      But if i change it from fl.controls.Label to mx.controls.Label i see nothing on the screen.
      Does anyone know whats going on?