Use vim + flexsdk to develop an AIR application in Ubuntu10.04

Source: Internet
Author: User
This document assumes that you have browsed the article about setting up the airsdk and installed the Ubuntu10.04LTS system. 1. Install vim and configure flexsdk install vim: sudoapt-getinstallvim download flexsdk4.1 from Adobelabs and decompress it to any directory, such as/usr/share/flex/sdks. Vim ~ /. Bashrc add PATH = $ PATH at the end of the configuration file:

This article assumes that you have browsed the article about setting up the air sdk and installed the Ubuntu 10.04 LTS system.

1. Install vim and configure the flex sdk

Install vim:

sudo apt-get install vim

Download the flex sdk 4.1 from Adobe labs and decompress it to any directory, such as/usr/share/flex/sdks.

vim ~/.bashrc

Add PATH = $ PATH:/usr/share/flex/sdks/flex_sdk_4.1/bin at the end of the configuration file.

2, AIR Hello World

Alt + F2, open gnome-terminal

echo $PATH

If you see the flex sdk 4.1 path, the configuration is successful.

cd ~/$user/flexmkdir helloworldcd helloworldvim helloworld.mxml

Edit helloworld. mxml as follows:

    version="1.0" encoding="utf-8"?>
   
     
     xmlns:mx=
     "http://www.adobe.com/2006/mxml" 
     layout=
     "absolute" 
     title=
     "Hello World" 
     backgroundAlpha=
     "0.5"
     >
        
      
      text=
      "Hello World" 
      horizontalCenter=
      "0" 
      verticalCenter=
      "0"
      />
     >

Creating a hellworld-app.xml File

vim helloworld-app.xml

The content is as follows:

 xmlns="http://ns.adobe.com/air/application/2.0">
    
     >
    sban.flex.helloworld>
   
    >
   0.1>
   
    >
   helloworld>
   
    >
           
   
    >
   helloworld.swf>        
   
    >
   true>        
   
    >
   standard>        
   
    >
   false>        
   
    >
   400>        
   
    >
   300>    >>
3. Compile and run
amxmlc helloworld.mxmladl helloword-app.xml

Related Article

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.