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 here http://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 -- 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/
