Hi Lance, Here is how I fix it:
1) Open Flex Build Path 2) Select Flex SDK 3) Press Remove button 4) Press Add Flex SDK button 5) Press Ok 6) Refresh design view I had thought that I had done this and it did not work, but I went back and tried it again and it does work. Everytime I run the flexmojos:flexbuilder command -- I have to do this again. I should just look at the .classpath file before and after and I can tell you exactly what the difference is. Regards, Davis On Thu, Jun 24, 2010 at 12:39 PM, Dtornkaew <[email protected]> wrote: > David, > > I am still working on a set of tests for this. Writing automated tests > for Design View to make sure its doesn't broken is going to be a > challenge. > > Can you elaborate on what you mean by "persistent enough". I hope to > make this just work and in a number of smaller tests Design View has > worked for me. If there are specific issues you have let me know so I > can try to address them. > > Thanks! > Lance > > On Jun 23, 11:08 am, Davis Ford <[email protected]> wrote: >> Actually, it seems this hack does work again in FB4 if you are >> persistent enough. >> >> On Wed, Jun 23, 2010 at 10:51 AM, Davis Ford >> >> >> >> >> >> <[email protected]> wrote: >> > Thanks, Lance. >> >> > Design View in FB3 works with a manual hack. After you run >> > flexmojos:flexbuilder and import the project, Go to the build path, >> > remove the Flex SDK, and then add it again -- then refresh the design >> > view and it comes up. That seems to resolve the issue. Perhaps >> > something about the cp ordering that gets re-adjusted when you do >> > that. >> >> > Unfortunately, the same trick does not work in FB4, it seems. >> > Although I did have a very simple sample project where it appeared >> > that design view initially worked in FB4, now it no longer works, and >> > I can't resolve why or what changed. All I get is "This component is >> > based on Application, which is not supported in Design mode. Switch >> > to source mode to edit it." >> >> > On Tue, Jun 22, 2010 at 5:05 PM, Dtornkaew <[email protected]> wrote: >> >> Design View has never worked for me in Flex or Flash Builder when >> >> using flexmojos:flexbuilder goal. >> >> >> I have been working for a while to find a good fix for this. >> >> Unfortunately I haven't found a "nice" fix but I have fixed it on a >> >> patched version of FlexMojos located >> >> herehttp://github.com/llinder/FlexMojos. >> >> For those that are interested in what I have found and what I mean by >> >> not a "nice" fix feel free to ask and I will elaborate. >> >> >> If you are interested in trying it out you will need to pull the >> >> source and build from scratch. >> >> >> There are 2 goals, flexmojos:flexbuilder and flexmojos:flashbuilder. >> >> The code base is nearly the same. The main difference is in the >> >> template files and in memory data structure that describes the default >> >> state of Flex and Flash Builder projects. >> >> >> Lance >> >> >> On Jun 22, 1:45 pm, Davis Ford <[email protected]> wrote: >> >>> If I create a project via: >> >> >>> $ flexmojos:flexbuilder >> >> >>> Then import it into FB4, it imports ok, but if I try to open the >> >>> application.mxml in design mode it says: >> >> >>> "This component is based on Application, which is not supported in >> >>> Design mode. Switch to source mode to edit it." >> >> >>> Anyone seen this? Have any idea for a workaround? >> >> >>> pom looks like this: >> >> >>> <flexmojos.version>3.6.1</flexmojos.version> >> >>> <flex.sdk.version>4.1.0.16248</flex.sdk.version> >> >> >>> <dependency> >> >>> <groupId>com.adobe.flex.framework</groupId> >> >>> <artifactId>flex-framework</artifactId> >> >>> <version>${flex.sdk.version}</version> >> >>> <type>pom</type> >> >>> <scope>compile</scope> >> >>> </dependency> >> >> >>> <plugins> >> >>> <plugin> >> >>> <groupId>org.sonatype.flexmojos</groupId> >> >>> >> >>> <artifactId>flexmojos-maven-plugin</artifactId> >> >>> <version>${flexmojos.version}</version> >> >>> <dependencies> >> >>> <dependency> >> >>> >> >>> <groupId>com.adobe.flex</groupId> >> >>> >> >>> <artifactId>compiler</artifactId> >> >>> >> >>> <version>${flex.sdk.version}</version> >> >>> <type>pom</type> >> >>> </dependency> >> >>> </dependencies> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups "Flex Mojos" group. >> >> To post to this group, send email to [email protected] >> >> To unsubscribe from this group, send email to >> >> [email protected] >> >> For more options, visit this group at >> >>http://groups.google.com/group/flex-mojos >> >> >>http://flexmojos.sonatype.org/ >> >> > -- >> > Zeno Consulting, Inc. >> > home:http://www.zenoconsulting.biz >> > blog:http://zenoconsulting.wikidot.com >> > p: 248.894.4922 >> > f: 313.884.2977 >> >> -- >> Zeno Consulting, Inc. >> home:http://www.zenoconsulting.biz >> blog:http://zenoconsulting.wikidot.com >> p: 248.894.4922 >> f: 313.884.2977 > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- Zeno Consulting, Inc. home: http://www.zenoconsulting.biz blog: http://zenoconsulting.wikidot.com p: 248.894.4922 f: 313.884.2977 -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos http://flexmojos.sonatype.org/
