...but that may not be enough. what IDE are you using? is this the entire code of your app?

On 17/07/2013 00:14, Lee Burrows wrote:
Flex components cant be placed inside Sprites. Try extending spark.components.Application instead of Sprite

On 17/07/2013 00:01, Dennis Raddle wrote:
I wrote some code using spark.components.Label, something very simple, and
I don't see anything when I run this.

   import flash.display.*;
   import flash.text.*;
   import layout.Layout;
   import spark.components.Label;

   public class App1 extends Sprite {


     public function App1() {
       var t:Label = new Label();
       t.text = "Foo Foo";
       addChild(t);
       t.x = 100;
       t.y = 100;
       trace(t.width);
     }

   }

What am I doing wrong?

-Dennis



--
Lee Burrows
ActionScripter


--
Lee Burrows
ActionScripter

Reply via email to