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