|
That's not really what I meant... if you
use <mx:Application> the MXML compiler creates the application subclass
and you can't replace it with a different one. But whatever you put in the
Application's <mx:Script> goes into the body of the subclass (along with
the useful autogenerated stuff),So instead of writing public class MyApplication extends
Application { -- code -- } just write <mx:Application xmlnx:mx='...'> <mx:Script> -- code-- </mx:Script> </mx:Application> The only caveat I know of is that you
can't write a constructor for your Application because the MXML compiler will
generate one. For all your components, you can write
them in AS: public class MyComponent extends VBox { -- code -- } - Gordon From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of aaron smith I think I understand what you're saying. On 8/11/06, Gordon
Smith <[EMAIL PROTECTED] Yes, it's possible. All
MXML files simply get turned into AS3 classes and then compiled. If you turn on
the <keep-generated- If you do this, however,
you'll see that the MXML compiler autogenerates a lot of non-obvious stuff,
some of which is required for the components to run properly. For example, when
you compile an <mx:Application> it generates setup code for a bunch of
CSSStyelDeclaration instances that represent the CSS styles. If these
CSSStyleDeclaration So my advice is to at
least use <mx:Application>. But then it is quite easy to write only AS
components instead of MXML components. - Gordon From:
[EMAIL PROTECTED] ups.com
[mailto:flexcoders@yahoogroups. I have been dabbling lately with creating pure AS3
projects. ( http://www.senocula -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- [flexcoders] AS3 Question aaron smith
- RE: [flexcoders] AS3 Question Gordon Smith
- Re: [flexcoders] AS3 Question aaron smith
- RE: [flexcoders] AS3 Question Gordon Smith
- Re: [flexcoders] AS3 Question aaron smith
- Re: [flexcoders] AS3 Question aaron smith
- Re: [flexcoders] AS3 Question Michael Schmalle
- Re: [flexcoders] AS3 Quest... Michael Schmalle
- [flexcoders] Re: AS3 Quest... Tim Hoff
- [flexcoders] Re: AS3 Quest... Geoffrey Williams
- RE: [flexcoders] AS3 Question Gordon Smith
- RE: [flexcoders] Chart error when mouse... Joshua Lingwai
- RE: [flexcoders] Chart error when ... Matt Horn
- Re: [flexcoders] AS3 Question aaron smith

