Setup of The ActionScript Development Environment

Source: Internet
Author: User

Although I have never liked flash, as a front-end, I can't help playing with the legendaryAs3With the help of the younger brother and netizensDevelopment EnvironmentSet up ,.

Write out the memorable onesHello World

RecordProcedure, No technical content, pure learning notes.

1. Install the flex SDK

SelectAdobe Flex SDKDownload and decompress the package to whatever you wantProgram(Because the file is large and it takes a long time to download, I will first write this step .)
Download list

2. Install JRE/JDK

Download and installJREOrJDK. Version 1.6 or later is required.
Download list

3. Install Flash Player debug

SelectProjector content DebuggerDownload and decompress the package to any directory where you are willing to place the program.
Download list

4. Install flashdevelop

Download and installFlashdevelop, The program depends on. NET Framework 2.0.
Download list

5. Configure flashdevelop

Enter 5.1Tools-> programe settings, InAs3contextSaveFlex SDK locationSet it to the program storage directory in step 1.

5.2 InFlashviewerSaveExternal player pathSet it to the program storage directory in step 1.

6. Create a project

SelectProject-> new project..., SelectAs3 ProjectThe options are as follows:
Name:Helloworld
Location:(Any directory that you are willing to place in this project)
Pagckage:(Left blank)
Create directory for project:(Selected)

7. Write Code

Click to openSRCDirectory, double-click to openMain.File. The modification code is as follows:

12345678910111213
Package {  Import Flash. Display . Sprite ; Public  Class Main Extends Sprite {  Public   Function Main (  ) : Void   {  Trace  ( 'Hello world! '  ) ; }  }  } 
8. Modify project options

SelectProject-> properties..., SetTest movieChangePlay in external playerOtherwise, the trace output is invisible.

9. Compile and run

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.