I experienced the same problem in Flash Builder v. 4.0.1. build 277662. None of the solutions mentioned were of any help but I found an other workaround (that works for me).
I have the the following additional plugins installed in Flash builder:
- Maven 2.0 integration plugin from Sonatype.
- Eclipse J2EE Standard Tools, Version: 3.0.4.v200811190840-7U1959LJIHM6ogLbhvbrAnWtxuyM
Build id: 20090212194735
My project is a multi module maven project, let's call it 'todolist', with a todolist/todolist-ria subproject that is build using the Flexmojos maven plugin.
Actually it is based on: this reference application
It uses Flex version 4.1.0.16248.
After importing the maven project in Flash Builder, adding the Flex Project Type and setting the main source path to src/main/flex (right-click project | Properties | Flex Build Path | Main source folder: src/main/flex) I see the error message when opening any .mxml file in design mode. In source mode code completion does not work either.
The workaround:
- Let Flash Builder create a brand new Flex project, choose the appropriate Flex version for your project (3 or 4). Make sure this project's location is outside your maven project.
- right-click the new project | Properties | Flex Build Path | Source path
- Add folder... | Browse ...
- choose the folder where your flex code is (e.g. .../todolist/todolist-ria/src/main/flex)
Flash Builder will add a link to the source folder (e.g. [source path] flex) in the project.
Now you can open any .mxml file in this source folder in Design mode, and code completion also works in Source mode.
Caveat: I don't have dependencies on any third party Flex libraries (.swc files) in my project so far, so I don't know for sure if this workaround still helps in that situation.