As3 build development environment

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.