Is there an easy way of converting a Actionscript 3 project to a Flex project in Flex Builder? When i right click on the project and hover "Flex Project Nature", all options are greyed out
A few general steps to get there without losing your project settings:
<natures>
tag in there.<natures>
node.If you're missing the templates/ stuff (not a big fan myself, but it's a nice crutch when you're just starting a project), go mess with one of the form fields under "HTML wrapper" under "Actionscript Compiler" in your project properties and apply the change, and the IDE will recreate the templates/ folder.
I haven't seen anything like that in FB3.
An AS3 project will lack quite a few of Flex project settings (eg template html). You are best served by creating an empty Flex project and adding the AS3 source to it -- drag and drop the folder(s) in the src
folder of the Flex project. Alternatively, if it is a SWC you can add it using project settings.
It's a little dirty, but it works.
The old files will be unchanged, but the new project will have the Flex Project nature. If a file already exists that has the same name as a file that the project wizard wants to create, the existing file will be not be deleted.
If you have custom command line arguments, source or library directories, or any other project-specific settings, you may have to reset them.
Just in case something goes wrong, be sure to back up your project directory first. I've never lost files when I've recreated a Flex Builder project, though.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.