开发者

How to set an AS class as Default Application in Flex 4 Project

开发者 https://www.devze.com 2023-02-28 04:42 出处:网络
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

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

How to set an AS class as Default Application in Flex 4 Project

Hopes that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号