Unfortunately, there's a ton of setup code done on your behalf by the
MXML compiler.

Its possible, but will be quite painful.  (Probably too painful.)

Compile a simple MXML app with "-keep-generated-actionscript" enabled.

Look at the generated/*.as files.

You'll need to set up a root class derived from SystemManager, make sure
that you provide all CSS styles (via setStyle) for all controls you use,
etc.  Lots of work.

-rg 

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of carlos.rovira
> Sent: Thursday, February 02, 2006 7:11 AM
> To: [email protected]
> Subject: [flexcoders] Using MX framework without MXML (pure AS3.0)
> 
> Hi,
> 
> I'm investigating the way to create some UI controls without 
> use any MXML, only AS3 in the new Flex 2.0 Beta 1. I don't 
> know if this is possible since I read some post out there and 
> it seems we need to create a minimun MXML in order to get it work.
> 
> I already add the framework SWC to my test project:
> 
> ${FRAMEWORKS}\framework.swc
> 
> and trying something like :
> 
> import mx.controls.Button;
> ...
> var b1:Button = new Button();
> b1.label = "My First Button";
> addChild(b1);
> 
> when I compile I get an increment in my SWF of +-150k, so I 
> guess the framework is already there, but I can get the 
> button to display
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to