Flex is a framework and most frameworks have bootstrap/startup requirements. For Flex, it pretty much requires that you use an MXML file with an Application tag at the top. It is technically possible to build out from pure AS, but very difficult.
It is a goal of FlexJS to not require an MXML file, but it will probably still require a subclass of an Application class. -Alex On 7/16/13 4:01 PM, "Dennis Raddle" <[email protected]> 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
