0 Replies Latest reply on Aug 3, 2010 7:05 PM by jarnapo

    Label not showing up

    jarnapo

      Hello, sorry for any ignorance here, but I'm a noob.

       

      So this is what I've got: I have one file, 'sandbox.mxml' with the following inside:

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                     xmlns:s="library://ns.adobe.com/flex/spark"
                     xmlns:mx="library://ns.adobe.com/flex/mx"
                     minWidth="500"
                     minHeight="500"
                     backgroundColor="0xFF0000">
          <s:Label text="Hello World!" fontSize="24" fontWeight="bold" />
      </s:Application>

       

      I compile the file with the command, 'mxmlc sandbox.mxml' and get 'sandbox.swf' as output.  However, when I view this in a browser, the label does not show up (all I get is a red box):

      Screenshot-Mozilla Firefox.png

      What am I missing?  Thanks.