FDT + mtasc flash development simple tutorial download related software, configure eclipse

Source: Internet
Author: User

Download from Shanghai last time
EclipseInstalled
FDTIf you encounter some minor problems that cannot be solved by finding the relevant information, plus a 30-day trial period, you will be able to use sepy on one side. In the past two days, it was really hard to get started. I went to the official website and checked the relevant documents. After half a day, I finally got the configuration ready.

FDT+
MtascThe compilation of an as1.0 applet is successful.
FDTPowerful code functions plus
MtascFlying Compilation speed, abandon flash ide did not discuss.
How can we make other brothers suffer with such hard work. This simple tutorial is intended to save some time for friends who will use FDT + mtasc.
This tutorial consists of the following parts:
Download the following files:

J2re-1_4_2_11-windows-i586-p.exe(Java 2 Runtime environmen, 15.4 m)

Eclipse-SDK-3.1.2-win32.zip(Eclipse,
103 m)

Mtasc-1.12.zip(Mtasc, 318 K)

Running eclipse requires the support of Java 2 Runtime Environment. First download the j2re-1_4_2_11-windows-i586-p.exe installation. The installation process is not described in detail.

Decompress the downloaded eclipse-sdk-3.1.2-win32.zip file to any directory, for example, H:/Elipse. Double-click eclipse.exe to run without installation.

The first running requires setting the working directory. Click "Browse..." and select "directory.

Select the "use this as the default and do not ask again" check box to save the settings.

Now, start enjoying your eclipse journey.

 

 

Run the following command to install FDT. FDT can only be installed online through Elipse.

Run eclipse and select "help"-> "Software Updates"-> "find and install ...".

Select search for new features to install and click Next ".

Select "new remote site ...".

Enter name: "FDT" and URL: "http://fdt.powerflasher.com/update ".

Select "FDT" and click "finish ".

Confirm installation.

Agree to the terms. Click Next and finish.

Return to eclipse, "open perspective", and select "other ...".

Select "Flash ".

A 30-day trial is prompted. Select try FDT ". Installation is complete. After expiration, the FDT will be completely uninstalled and then re-installed in the above steps.

If you do not need to install mtasc, extract the downloaded mtasc-1.12.zip file to any directory, such as H:/mtasc.

 

 

Installation is complete. Start to experience the combination of FDT and mtasc.

Create a flash project.

Enter the project name.

FDT automatically imports the core library of flash ). If Flash 8 is used, you will find FP7 and FP8 class packages instead of as2.0 class. The following shows how to solve this problem and how to solve it.

Class files must be placed in source folder. Create one.

Select the directory as the current project "test" and enter sourcefolder. This name is arbitrary, such as "Source ".

Create a class.

Select the source folder and enter the class name. This name is arbitrary, such as "myclass ". Note that the first letter of the class name is in uppercase.

FDT automatically enters some basic code. Now you can feel the powerful code function of FDT: "Alt +/" Key startup code prompt.

Enter cons and the code prompts "constructor-creates constructor for a class ". Press enter.

FDT automatically completes class constructor. And so on.

Enter other code. If Flash 8 is used, the following problem occurs:

Place the cursor over the error icon on the left of the row, prompting that the "Number" type cannot be found.

Click the error mark and FDT provides several correction schemes. Select "Import fp8.number"

The error for this row is missing, but a line "Import fp8.number" is added at the beginning ". As mentioned above, the classes directory of Flash 8 contains FP7 and FP8 packages. This problem will be solved below.

Select "window-> preferences..." to start setting FDT.

If you want to, you can first set FDT as the default eclipse tool. "General-> Perspectives", select Flash and "make default ".

Select FDT. The following are configuration items. I will not describe them here. If you are interested, try them one by one.

Next we will solve the class package problem mentioned above. Create any directory, such as H:/classes, as the core class directory of FDT. Find the classes folder in the installation directory of Flash 8 and copy all the files in the FP8 folder to this directory.

If you want to use an MX class package, copy the MX folder. Note: Copy all the files in the FP8 folder and copy the entire folder directly in the MX folder.

Modify the FDT core class path to the directory just created ,.

Finally, set mtasc. You only need to specify the location of mtasc.exe for fdt ..

The FDT + mtasc development environment is now ready. Finally, an instance is used to demonstrate how to perform specific development.

 

 

The following example describes the specific development. In this exampleFlash MX programming and creative implementationA simple album program written in as 1.0. Next we will use FDT to rewrite it to the as 2.0 class and use mtasc to compile it into SWF.

Instance final effect

Program code

Download instance source file

Create a flash project.

Enter the project name.

We can see that the class package problem mentioned above has been solved.

Create a source folder.

This image uses the previous one. The project name should be "album ".

Create a class.

First, select the source folder and Enter Class Name: "album ".

The program code is not mentioned here. The source file contains specific annotations. Next let's take a look at how to call the mtasc compilation class.
Enter the code Private Static Var album: album before the class constructor;
Defines the instance of the class.
At the end of the class, the "Alt +/" Key starts the code prompt, Enter main, and press Enter.

FDT automatically compiles SWF for mtasc to create a main function.

Create a class instance in the main function.

Set compilation parameters.

Double-click "FDT-mtasc support ".

Set related parameters. The name is an arbitrary name.

Set the location of mtasc.exe on the mtasc.exe tab. Previously set.

On the "mtasc arguments" tab, enter the compilation parameters.
-Header width: Height: FPS sets the attributes of a video. Width, height, and frame rate.
-SwF: Set the name of the compiled SWF. Set it to SwF/album.swf.
The final setting is-header 550: 400: 25-Main-SwF SWF/album.swf.

Click the run button to compile the code. Open
Album.swfTo see the effect.

 

 

From: http://eidiot.net/lessons/fdt/

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.