Hello Apache Flex

  1. Get and run the Apache Flex SDK Installer;

  2. Install Adobe Flash Player Content Debugger;

  3. Edit .bash_profile on Mac:

    export PATH="/path/to/apache-flex-sdk/bin:${PATH}"
    export PLAYERGLOBAL_HOME=/path/to/apache-flex-sdk/frameworks/libs/player
    export FLASHPLAYER_DEBUGGER="/path/to/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger"
    
  4. Crate hello apache flex project, Edit HelloFlex.mxml:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        width="640" height="480">
        <s:layout>
            <s:BasicLayout />
        </s:layout>
        <s:Label text="Hello World!" horizontalCenter="0" verticalCenter="0" />
    </s:Application>
    
  5. Edit Makefile:

    SWF=HelloFlex.swf
    MAIN=HelloFlex.mxml
    $(SWF):
        mxmlc $(MAIN)
    
    clean:
        rm $(SWF)
    
  6. make and run.

喜欢这篇文章就分享到微博吧!
留言请发送到
微信公众帐号
“技术派”

修订历史:


知识共享许可协议

关注@好看簿的蚂蚁

探讨技术、设计、人文和商业
相关的创业话题