【Small state: the immediately preceding one, the environment set up is complete, build a helloworld experience the flex (on a number of words too, so this individual to put forward, please understand!)】
The first step: build a new project: new-> flex project
Pop-up dialog box as follows:
Note that dragging a box around part, if the Application server type items selected none, then a simple application generated swf. Not a combination of web projects. The selected J2EE is for web application projects.
1. Target runtime items need to add their own, the basic problem does not occur.
2.content folder tomcat-generated content is the future name of the folder, because I used to use the webroot, so the name changed, well think of some more familiar.
3.flex WAR file is to say that blazeds.war put in front of tomcat's webapps path, the path can copy over.
【Note: If in the previous step, do not select Use remote object access service, you can skip this, but in generating the project will not generate flex configuration file】
4.output folder is the main flex project in the path, the best in content folder in the path of the following, which is where my webroot \ flex can be named according to preferences. (Here the default debug-bin, the specific thing I'm not sure how),
Click "next" or "finish", that is to complete the project to create!
Project form as shown below: (mark one box that I described above points generated effects)
The third step: file input in helloworld.mxml
<? Xml version = "1.0" encoding = "utf-8"?>
<Mx: Application xmlns: mx = " http://www.adobe.com/2006/mxml "Layout =" absolute ">
<! [CDATA [
private function init (): void
var i: int = 0;
i + +;
trace ("i ==="+ i);
</ Mx: Script>
<mx:Label text="hello world"/>
</ Mx: Application>
Step four: the flex project into web projects in order to be able to deploy in tomcat, run!
Select the item, right, show pop-up Figure
Click "finish" can be.
Step Five: deploy to tomcat, and start tomcat.
Right-run as-> run configurations running configure
And then run right run as-> flex application
The result can browse to.