I'm currently working on a Flex 4 Pr开发者_如何学编程oject where I have several MXML files and a couple of AS classes. Due to the type of project the "Default Application" seems to be also an MXML instead of an AS3 class and I'm required to have the later.
Long story short, is it possible to set a given AS class as Default Application? if not, is there any workaround?
Thanks in advance,
Aldo
I did it for Flex3/Eclipse, and i think Same For Flex4 in FlashBuilder/eclipse
First you need to modify file ".actionScriptProperties" located in project root to add AS3 File as Application if your app name is AsApplication.as add tag under if you have MXML App they would be listing here.
<application path="AsApplication.as"/>
as
<applications>
<application path="AsApplication.as"/>
</applications>
now its visible in project properties Set it as DEFAULT
Hopes that helps
精彩评论