Get started with actionscript3.0: Development Environment

Source: Internet
Author: User

A good development tool can minimize the development time. For as3, the basic text editor can also be edited, but it is not very feasible for large projects, unless you modify some small modules. So what are the development environments of as3? How can we build it?

1. Text Editor

This does not need to be introduced. Everyone knows it!

2. Flash

Currently the latest version of CS6, official version can be from the http://www.adobe.com/cfusion/tdrc/index.cfm? Product = flash & loc = cn download. If you are used to the Chinese version, you can find it online. There are also simplified green versions. I won't say much about cracking those attacks here.

Flash is also difficult to implement logic in medium and large scales, but it is good to use it for ui or resource storage. Flash is required as a game programmer.

3. flashdevelop

Flashdevelop is developed using. NET and can run in a Windows environment. Flashdevelop is lightweight and corresponds to actionscript2/3. It also supports HTML, JavaScript, CSS, and other highlight display, automatic code input and completion, and debugging in the IDE environment. It is a lightweight IDE, however, it is fully functional.

Latest flashdevelop 4.0.4 RTM: http://www.flashdevelop.org/downloads/releases/FlashDevelop-4.0.4-RTM.exe

I have never used it, but some colleagues around me occasionally use it for development. If you like it, you can study it on your own.

4. Flash Builder

This may be familiar to as3 programmers and is also a commonly used IDE for large-scale projects in development.

The current version is 4.7, which is called Flex builder before 4. Official: https://www.adobe.com/cfusion/tdrc/index.cfm? Product = flash_builder & loc = zh_cn. Many versions can be found online like flash. Download them as needed.

Next, I will focus on some usage of FB.

Http://wenku.baidu.com/view/3df38ff0941ea76e58fa0417.html here is the Official Development Guide, you can simply look at the 2nd, 3, 5 chapter content, in fact, no time can also don't need to see, you will explore many features in development.

Simple Steps for setting up helloworld:

1. Create an ActionScript Project (other projects, such as air and mobile phones, can also be created)

2: Enter the project name and select the SDK version. Next, RSL, shared library, main application file, and Output Folder will be exposed. You can skip this step.

3: simple output text code. The basic class and initialization method structure have been written for us. We only need to let him print it during initialization and add 9th lines of code.

 1 package 2 { 3     import flash.display.Sprite; 4      5     public class HelloWorld extends Sprite 6     { 7         public function HelloWorld() 8         { 9             trace("Hello world!")10         }11     }12 }

4: Press F11 or right-click the helloworld. As file-debug mode-web application. If the default browser Flash Player debug debugger version is incorrect, a prompt box is displayed.

Solution: accept.

After debugging, you can see that the hello World display in the Console indicates that the environment has been set up.

 

 

 

The following describes some simple shortcut keys.

 

① F11 debugging

 

② Ctrl + D: delete this column

 

③ Ctrl + L: Jump to this row

 

④ Alt +/: Automatic completion of text (Completion class)

 

⑤ Ctrl + Shift + C + Comments

 

⑥ Crtl + Shift + D: Add asdoc comments

 

7crtl + O display the outline in the code window (you can find a function or variable)

 

CTRL + Shift + O: delete useless import classes

 

CTRL + ALT + H: Open the calling hierarchy

 

CTRL + K: (in this class) Find the next

 

 

CTRL + Shift + L: All shortcut key prompts

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.