And rather than using Label, just use a TextField (or possibly FTE). To make a non-Flex project in Flex Builder, just choose File > New > ActionScript Project. As your first step, in the constructor try code like this:
var textField:TextField = new TextField(); textField.text = "Hello"; addChild(textField); Gordon Smith Adobe Flex SDK Team From: [email protected] [mailto:[email protected]] On Behalf Of Alex Harui Sent: Tuesday, December 16, 2008 9:15 PM To: [email protected] Subject: RE: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big... Under the covers, MXML is converted to actionscript. The only way to get smaller is to start removing features from the framework. If you need collections or HTTPService or styles or resources or any of that infrastructure "someday" you'll end up with a sizable app even if you do it in AS. So, consider what you can live without not just for today, but going forward. Can you live with just Array because you don't need data update notifications? Do you really need HTTPService or can you just use URLLoader? Using the framework cache will drop the size of your swf considerably. I think helloworld is about 45K when using the framework cache. From: [email protected] [mailto:[email protected]] On Behalf Of devenhariyani Sent: Tuesday, December 16, 2008 7:57 PM To: [email protected] Subject: [flexcoders] Re: Is Flex the wrong technology for widgets? SWF file sizes are too big... Does anyone know where I can find some good examples of flex apps written completely in ActionScript 3? I did some quick searches on Google, but didn't find much. I would rather try to re-write the app in AS3 to see if it makes the file size manageable, rather than abandon flex completely. Thanks again, all of you have been very helpful. --Deven --- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alan <ultr...@...> wrote: > > I wouldn't call this 'simple' but I do think your doubts are well > founded. Looking at this example, I don't see any real use of Flex. > You have what looks like some animated state changes and a few > navigation components - skipping Flex in this case might be easier. > > I do small and large scale Flash dev, sometimes widgets, sometimes > database crunching translation tools. I only use Flex when I am > manipulating lots of data records. > > BTW gang, don't forget, t's all ActionScript ;) > > Alan > > > On Dec 16, 2008, at 9:36 PM, devenhariyani wrote: > > > Thanks for the advice so far. If I follow the advice not to use the > > <Application> tag, *and* if I also remove all the MXML and re- write > > the app to use only ActionScript do you think I can get the size down > > to under 200KB? I think Flex is a great technology, but if its not > > the right tool for the job I will sadly have to go to Flash. >

