PDA

View Full Version : as project vs mxml project


Yuhjn
06-07-2009, 06:48 PM
So I've noticed that when I create an AS project my main.as inherits from Sprite. But when I create an mxml project my main.mxml inherits from Application.

In an AS project, inheriting from Sprite seems to give me problems because I am outside of the flex framework and I cannot add things like UIComponents (implicity conversion from UIComponent to MovieClip).

So my question is can I create a pure AS project that uses the Flex framework? Or do I have to use at least a main.mxml to get this behavior?

I dont really like mxml so I was trying to avoid it, but I still wanted the AS3 flex framework.

Any general advice along these lines would be appreciated.

Peter Cowling
06-07-2009, 10:20 PM
There is quite a bit to the flex framework that goes on behind the scenes. The manager classes - like system manager - for example.

With that in mind, the straightforward answer is that Adobe did not build the framework with the intention that developers start-up pure AS projects and then use the flex framework.

That said, you look to the SDK as a source of inspiration for any composite work you may want to do...