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.
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.