flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffry Houser <jef...@dot-com-it.com>
Subject Re: using spark.components.Label through pure ActionScript
Date Tue, 16 Jul 2013 23:09:59 GMT

  App1 extends sprite; which means you probably aren't in a Flex project 
and there are no Flex specific classes to force the Spark Label through 
its lifecycle process.

  In theory you could write your own "SystemManager" class to put Flex 
components through their livecycle and handle invalidation / validation 
/ etc...

  But, I wouldn't expect it to be easy.


On 7/16/2013 7:01 PM, 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
>


-- 
Jeffry Houser
Technical Entrepreneur
http://www.jeffryhouser.com
203-379-0773


Mime
View raw message