The steps and install Adobe Alchemy attention

Since the last time for the Adobe Alchemy released an introductory article, the forum has some repercussions, as a technology evangelist, taking into account this great technology tool itself has a certain threshold, the user will be used to both C and AS3 language and CYGWIN related knowledge, in order to eliminate these obstacles, the next chapter describes the following three content
Generation development environment configuration Alchemy Alchemy of the library Swc
Swc applied to the project will be to want to initiate, and lead us into this wonderful world.
Alchemy of a development environment configured to download **
To the Archive below to choose the installation zip package to the Select Package At this time, need to select the following three things (very critical, it is not installed by default)
zip: Info-ZIP compression
gcc-gc + +: C + + compiler
Perl Install
(If the speed is slow, the middle number will jump out the window installation is not successful. Re-install to. If you install a small file, enter the command at the Cygwin command line error when, for example: "perl" not available, "zip" not available )
To **java** to download the JAVA Virtual Machine Download Flex Sdk 3.2 version. installed. who directly install Flex Build 3
Download Adobe Alchemy download **labs.adobe**/wiki/index.php/Alchemy then extract, assuming extracted to d: \ \ alchemy directory (seems to be the root directory, look in the help in accident to, not verified). this before because it got to know FleSDK and Alchemy Cygwin path, therefore I have set up a little something:
Will be C: / cygwin / etc folder under the file "profile" in the
PATH = / usr / local / bin: / usr / bin: / bin: / usr/X11R6/bin: $ PATH.
source / cygdrive / c / alchemy / alchemy-setup
PATH = / usr / local / bin: / usr / bin: / bin: / usr/X11R6/bin: / cygdrive / c / alchemy / achacks: / cygdrive / c / FlexSDK / bin: $ PATH
And then save the file (note the path inside the ... ... c / alchemy / ... ...).
Key: '/ cygdrive / c /' means 'C: /'.
6 or more of these done, you can see a green desktop Cygwin icon, then double-click, enter the command line
7 this environment you can use the ls command to view the folder, cd into a directory and enter the command cd d: / alchemy Enter
8-input. / Config Enter this time you should be able to see this line prompt:
Generating alchemy-setup ...
Turining execution bit on for Alchemy binaries ...
Add "source / cygdrive / d / alchermy / alchemy-setup" to your login script.
"Alc-home" takes you to the Alchemy install folder.
"Alc-on" puts Alchemy gcc toolchain replacements at the front of your path.
"Alc-off" restores original path.
"Alc-util" shows you various Alchemy-related environment vars
You need Flash 10 or AIR 1.5 and the Flex 3.2 SDK installed for testing.
If you can see them, congratulations, you're almost done the first step, and then you have to do is
9 Enter the source / cygdrive / d / alchemy / alchemy-setup
10 Enter the alc-on
Alchemy of the development environment configuration is ready!
Second generation libraries Swc Alchemy
After configuring the development environment, you have to do in, yes, build their own sample directly
I recommend you open the sample / stringecho this example, enter 1 cd / cygdrive / d / alchemy / sample / stringecho / 2, you can enter a directory with a file called stringecho.c. If you open it you can see inside implementation, this is a very simple function, is to enter a string and returns a string input alc-on carriage .3 input gcc stringecho.c-O3-Wall-swc-o stringecho.swc Enter on this C language source files are compiled, the resulting stringecho.swc library. between some parameters, do not go to hell.
Step 4 If successful, you should see the following output text,
At this time, you look at the directory swc files that should be the file that you compiled!
Three will use the SWC files to the project in FB3 to introduce the method here, FLASH method to create your own try to .1 of a new project, ActionScript3 projects or projects can be .2 choose Flex project configuration, ActionScript BuildPath following, Library path
Opening the Flex3.2 library and set them under the playerglobal.swc property LinkType: must choose External, otherwise an error next to the Add SWC to join the stringecho.swc just compiled file.
Establishment of a new AS class, and write in the beginning
Import cmodule.stringecho.CLibInit
If you add other SWC files, you can rewrite the middle part of the other can be.
Use the following code to test
var test: CLibInit = new cmodule.stringecho.CLibInit; / / create a new class
var lib: Object = test.init (); / / Create implementation object
trace (lib.echo ("foo")); / / call C language functions derived
Note that echo is the C language, export information, which test is automatically added when the init function object. This is the function object using the AS3 language flexible. Once init is complete, you can use the function.
Finally, compile and run. Should be able to see the effect of the output bar inside the console.
Finally, I believe that the use Alchemy development is needed in the pre-design, large parts of the calculation is divided into the C language implementation, and let the AS3 implementation of general logic. The difficulty is some.
标签: java virtual machine, development environment, root directory, obstacles, c compiler, zip package, threshold, as3, content generation, bin bin, time need, swc, introductory article, alchemy, generation development, wonderful world, great technology, repercussions, technology tool, technology evangelist
分类: Flash
时间: 2010-12-25


  1. Install Adobe Alchemy

    Yesterday found this article: Creating PDF documents with Adobe Flex on client side ...
  2. Automatically configure and install Adobe AIR runtime environment online

    Contact Adobe AIR's friends must have a doubt: In fact, we understand that Adobe AIR is not too high popularit ...
  3. Solution "are trying to install adobe flash player is not the latest version of the" approach

    When prompted to install the Flash player "are trying to install adobe flash player is not the latest ver ...
  4. Alchemy (2 )------ Understanding Adobe Alchemy

    Understanding Adobe Alchemy Adobe recently announced the first public Release of a research project code-named ...
  5. Solution encountered in the installation of flash player tips "are trying to install adobe flash player is not the latest version of the" solution:

    Encountered in the installation of flash player tips "are trying to install adobe flash player is not the ...
  6. detailed steps to install mysql linux

    Reprinted from: detailed steps to install mysql linux I. Introduct ...
  7. Are trying to install adobe flash player is not the latest version of the

    When prompted to install the Flash player "are trying to install adobe flash player is not the latest ver ...
  8. AIX 5.3 Detailed steps to install apache 2.2.11

    AIX 5.3 Detailed steps to install apache 2.2.11 weblogic port default is 7001, the application of the access p ...
  9. Are trying to install adobe (R) flash (r) player version is not the latest version of the

    Install FLASH there are trying to install adobe (R) flash (r) player version is not the latest version of the ...
  10. Install Adobe Flash for your Firefox on Cent OS...

    This is guide, howto install Adobe Flash Player Plugin version 11.2 (32-bit and 64-bit) with YUM on Fedora 17/ ...
  11. RedHat Linux AS5 steps to install Oracle10g

    1, the hardware environment I installed the hardware environment: HP DL580 2, the software ready to install wi ...
  12. Steps to install mysql centos

    Reprinted from First, download MySQL5.0 and related perl package 1. O ...
  13. Detailed steps to install Hadoop cluster | Hadoop installation configuration

    Hadoop Cluster Installation First we look at the definition of unity, referred to here is Hadoop Hadoop Common ...
  14. basic steps to install oracle

    The general installation steps 1. To establish a general oracle user and dba group to establish a different sy ...
  15. OpenSUSE install adobe flash player

    Because MP3 songs from Baidu, LINUX has not installed the Adobe Flash Player, automatic installation has faile ...
  16. Rose steps to install the Windchill9.1

    Windchill install rose steps: 1. Prerequisite is to install a info model, if not, then the installation direct ...
  17. linux rathat5 steps to install mysql5.1

    1. Install linux 2. Install mysql, download the binary installation of my experience more appropriate to extra ...
  18. detailed steps to install linux mantis

    Required Software 1.1 MySQL MySQL-server-4.1.10-0.i386.rpm MySQL-client-4.1.10-0.i386.rpm MySQL-devel-4.1.10-0 ...
  19. Install Adobe CS5.5 series software error solution

    1: vc2008 + + not installed 2: Probably because the crack before installing a green Chinese version of the Fla ...