Ubuntu下配置Flex开发环境
Flex 3 sdk command line development with example on Linux

Linux上用ActionScript 3(Adobe FLEX 3.0 SDK)开发Adobe Flash应用

marz posted @ Aug 11, 2010 03:13:47 AM in flex , 2343 readers

由于我的电脑的VMware中装有Linux系统,而Adobe Flash的一个特点就是它的跨平台性,所以尝试了一下在Linux下利用Adobe FLEX 3.0 SDK开发Flash的“应用”–说是应用,其实只是一个地球人都知道的“Hello,world!”,只不过我改成了“hello actionscript 3”。所以本文主要想说明的不是ActionScript 3的开发技巧,而是如何在Linux下利用免费的SDK构架开发环境。你只要按照下面的步骤操作,那么最终你就可以在自己的Linux平台下看到自己的 Flash运行了。

※Ref:Using Actionscript 3 to develop Adobe Flash Content On Linux

 

1,开发工具的准备

・安装Adobe FLEX 3.0 SDK

从下面的地址http://www.adobe.com/go/flex3_sdk下载Adobe FLEX 3.0 SDK,“I have read the Adobe Flex 3.0 SDK License, and by downloading the software listed below I agree to the terms of the agreement.”打勾,点击“Download the Flex 3.0 SDK for all Platforms”,如下图:

Adobe-Flex-3-Software-Development-Kit

下载到合适的目录,进行安装。例如你将其下载到了/tmp/flex目录下:

  1. $ cd /tmp/flex
  2. $ unzip flex_sdk_3.zip
这样就可以在/tmp/flex/bin下面看到安装所需要的文件了。
・安装JDK
一般在安装Linux的时候都已经安装了JDK,没有的话,可以到Sun主页上下载进行安装,这里省略不做说明了。
2,准备“Hello ActionScript3“的hello.as代码
用vi或者你自己习惯的编辑器,将下面的代码保存为hello.as文件,注意是区分大小写的:
  1. package {
  2.     import flash.display.*;
  3.     import flash.text.*;
  4.     public class hello extends Sprite{
  5.         public function hello (){
  6.             var t:TextField = new TextField();
  7.             t.text = "hello actionscript 3";
  8.             t.width = 300;
  9.             t.height = 200;
  10.             t.x = 50;
  11.             t.y = 20;
  12.             addChild(t);
  13.         }
  14.     }
  15. }
3,编译
执行下面的命令,将as编译为swf文件
  1. $ /tmp/flex/bin/mxmlc  hello.as
成功的话就可以看到一个hello.swf文件了。直接在命令行输入:
  1. $ firefox hello.swf

是不是看到了自己的"hello actionscript 3"了?

4, 编写Makefile文件

Linux平台的Makefile文件是我们应该好好利用的,这样就不需要每次都执行那么多的命令,当你对as文件做了修改,仅仅需要make一下就OK了。同样的,用vi或者自己喜欢的编辑器,将下面内容保存为Makefile文件:

  1. MXMLC = /tmp/flex/bin/mxmlc
  2. MFLAGS =
  3.  
  4. TARGETS  = hello.swf
  5.  
  6. all: $(TARGETS)
  7.  
  8. clean:
  9.     $(RM) $(TARGETS)
  10.  
  11. .SUFFIXES:    .as .swf
  12. .as.swf:
  13.     $(MXMLC) $(MFLAGS) $<
然后执行
  1. $ make

同样的从hello.as会生成hello.swf文件。

 

ref:http://blog.minidx.com/2008/05/17/853.html

  • No match
  • No match
meidir said:
Dec 06, 2022 03:45:42 AM

There are some fascinating deadlines in this article but I don?t know if I see all of them center to heart. There may be some validity but I will take maintain opinion till I look into it further. Good article , thanks and we want extra! Added to FeedBurner as nicely 토토사이트

 

===============

 

I think this internet site holds very excellent indited subject material articles . Macbook pro

meidir said:
Dec 09, 2022 02:41:41 AM

It might solidify best to ro with your dealing with postpartum depression without the need for paxil if you are strapped regarding it. Affiliate Marketing Training and Traffic Generation

meidir said:
Dec 31, 2022 10:07:15 PM

You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. محامي استشارات مجانية جدة

 

============

 

Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done. محامي جنائي الرياض

 

============

 

Perfect piece of work you have done, this internet site is really cool with wonderful info . محامي تجاري بالرياض

 

============

 

You actually make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand. It seems too complex and extremely broad for me. I’m looking forward for your next post, I’ll try to get the hang of it! محامي في الرياض

 

============

 

I’d need to check with you here. Which isn’t some thing I usually do! I love to reading a post that may get people to believe. Also, many thanks permitting me to comment! محامي قضايا عمالية جدة

meidir said:
Jan 11, 2023 11:00:36 PM

Hi, i think that i noticed you visited my web site thus i came to °ßgo back the favor°®.I am attempting to to find things to improve my site!I suppose its adequate to use a few of your ideas!! 카지노사이트

meidir said:
Jan 15, 2023 11:10:07 PM

Thanks for the one of the nicest blogs i have read in a while. Nft Design Studio Delhi

meidir said:
Jan 30, 2023 01:59:06 AM

Heya i am for the first time here. I found this board and I find It truly helpful & it helped me out a lot. I hope to offer something again and aid others like you aided me. 오피

meidir said:
Feb 13, 2023 06:40:04 PM

Almost all I can say is, I’m not sure what to express! Except certainly, for the great tips which have been shared within this blog. I’ll think of a million fun approaches to read the articles or blog posts on this site. I’m sure I will finally take a step employing your tips on those things I could not have been able to address alone. You are so innovative to let me be one of those to profit from your valuable information. Please know how much I enjoy the whole thing. designer chicken coops

 

 

===========================

 

 

 

Substantially, the post is really the sweetest on that worthw hile topic. I fit in with your conclusions and will thirstily look forward to your next updates. Saying thanks will not just be enough, for the phenomenal clarity in your writing. I will certainly at once grab your rss feed to stay abreast of any kind of updates. Good work and also much success in your business efforts! charlotte roofing

meidir said:
Feb 19, 2023 01:17:32 AM

You made some decent points there. I looked on the internet for your issue and located most people may go together with together with your web site. 슈어맨

meidir said:
Apr 22, 2023 07:06:45 PM

Oh my goodness! a wonderful post dude. Thank you Nonetheless We’re experiencing trouble with ur rss . Don’t know why Can not sign up for it. Will there be anybody acquiring identical rss issue? Anyone who knows kindly respond. Thnkx it support Singapore

meidir said:
Jun 19, 2023 03:41:42 PM

Outstanding post, you have pointed out some excellent details , I besides think this s a very wonderful website. 插花技巧

meidir said:
Jul 01, 2023 01:51:48 AM

I enjoy you because of your whole labor on this site. Gloria enjoys doing internet research and it’s really simple to grasp why. All of us hear all concerning the powerful form you convey great secrets through the web blog and in addition strongly encourage participation from some other people on the content and my daughter is actually understanding a great deal. Have fun with the rest of the new year. You are performing a really great job. sydney printer repairs

meidir said:
Aug 24, 2023 06:26:52 PM

Yikes this definitely takes me back, where are your contact details hmm? 花藝學校

seo service london said:
Oct 12, 2023 09:26:39 PM

Great webpage brother I am gona inform this to all my friends and contacts

meidir said:
Oct 13, 2023 09:39:50 PM

We have been looking towards examining this process too. Good read. heart

seo service UK said:
Oct 14, 2023 06:49:35 PM

For a long time me & my friend were searching for informative blogs, but now I am on the right place guys, you have made a room in my heart!

카지노놀이터 said:
Nov 16, 2023 05:07:32 PM

I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!

카지노놀이터 said:
Nov 16, 2023 05:12:50 PM

Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work.

티비몬 said:
Dec 06, 2023 01:57:14 PM

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post

온라인카지노 said:
Jan 16, 2024 09:02:57 PM

훌륭한 작업을 완료했습니다. t 내 친구 ind personilly wtll certitnly dtgtt를 제안합니다. t'm conftdent 그들은 thts webstte에서 gitned 될 것입니다

meidir said:
Jan 21, 2024 07:17:00 AM

There are a few fascinating points at some point in this post but I do not determine if I see all of them center to heart. There is some validity but I most certainly will take hold opinion until I take a look at it further. Good write-up , thanks so we want much more! Added to FeedBurner also What Are AI Agents

boardmodelpaper.com said:
Jan 22, 2024 02:36:20 PM

Board Model Papers 2024 Download with Suggestions for 10th Class Textbooks 2024 Pdf Download and SSLC New Syllabus Sample Question Paper 2024 and different types of model papers boardmodelpaper.com and question papers for following the website and Arts, Science, Commerce Stream Subject Wise Solved Question Bank for Hindi & English Medium Students with Exam Pattern & Blueprint and subject Wise with 11th & 12th Question Bank 2024 for General & Vocational Course Languages & Subjects Important Question for the above link.

뉴토 끼 said:
Jan 23, 2024 08:00:29 PM

유쾌한 게시물,이 매혹적인 작업을 계속 인식하십시오. 이 주제가이 사이트에서 마찬가지로 확보되고 있다는 것을 진심으로 알고 있으므로 이에 대해 이야기 할 시간을 마련 해주셔서 감사합니다!

성인pc 뷰어 프로그램 said:
Feb 07, 2024 10:10:17 PM

Cool stuff you have got and you keep update all of us

토토사이트 said:
Feb 10, 2024 03:41:30 PM

Admiring the time and effort you put into your blog and detailed information you offer!.

슬롯나라 said:
Nov 14, 2024 08:31:03 PM

Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info.


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter