Create a New Flex Project
- 1). Create a new Flex project. Open Adobe Flex Builder 4 (sometimes referred to as Flash Builder), and from the file menu select "New" then "Flex Project."
- 2). Specify whether your application has a server and the type of technology you will use to connect to that server. One example is Asp.Net.
- 3). Give your project a meaningful name and save it in your web projects root folder. This is the folder where all of the elements for your website are held.
- 4). Add AS3 Code. Tags indicate which language is being used in the Flex environment. So you can have one line of ActionScript 3 (AS3), then a line of HTML and another line of AS3, essentially bundling them together. In order to utilize AS3 in the Flex environment you need to use the appropriate tag. Type <fx:Script> then place your AS3 code after that tag and close it with </fx:Script>
- 5). Add HTML code. HTML is used much like AS3; in order to use HTML you need to add it using the HTML text property. Type the <mx:htmlText> tag, add any HTML text after the tag, then close the code with the closing tag </mx:htmlText>.