Reproduced http://xiaomin1978.blog.51cto.com/6098465/1033008
Course Content: Build an as3 development environment and write the first as3 Program
Course Purpose: Preemptible
Knowledge point:
1. Development Environment Configuration
2. Use flashdevelop to create an as3 Project
3. draw a straight line in flashdevelop
Main steps:
1. Prepare the Installation File
JDK (jdk1.6.0 _ 17) http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
Flashdevelop (4.0.4-RTM)
Http://www.flashdevelop.org/
Flex SDK (4.6) http://www.adobe.com/devnet/flex/flex-sdk-download-all.html
2. Installation
Install JDK and run JDK-<version> -windows-i586.exe directly. The path is unlimited and it is not recommended to install JDK in the Chinese directory.
Install flashdevelop-4.0.4-rtm.exe and run flashdevelop-4.0.4-rtm.exe directly. The path is not limited. It is not recommended to install flashdevelop-4.0.4-rtm.exe in the Chinese directory. The following uses fd_home to refer to the flashdevelop installation directory. Select portal mode for installation. Otherwise, it takes too much time to download the relevant content.
Install flex sdkand decompress flex_sdk_4.6.zip. The path is unlimited. It is not recommended to install flex_home in the Chinese directory.
3. flashdevelop Configuration
Use the "tools/parameter settings" menu to set relevant plug-ins in sequence ):
As3context: this plug-in only needs to set the flex SDK location, that is, to specify the flex SDK to the flex_home folder we just decompressed.
Flashviewer: this plug-in is critical. It mainly sets whether FD can directly debug the output information and sets the path flex_home \ runtimes \ player \ 11.1 \ win \ flashplayerdebugger.exe.
4. Create a flashdevelop project helloworld. The type is as3 project.
Open main. As and add the red Code as follows:
Private function Init (E: event = NULL): void
{
Removeeventlistener (event. added_to_stage, init );
// Entry point
Graphics. linestyle (1 );
Graphics. drawcircle (100,100, 20 );
}
Press Ctrl + enter to run the program.