光晕原声大碟 HALO Soundtrack

二月 25th, 2010 by Lukialee

halo1

 

原声大碟 -《光晕-最后一战》(Halo: Original Soundtrack)320K[MP3!]

http://www.verycd.com/topics/41428/

 halo2

 

原声大碟 -《光晕2》(Halo 2 – Original Soundtrack)192K[MP3!]

http://www.verycd.com/topics/41433/

 

halo3

Martin’O'Donnell & Michael Salvatori -《光晕3》(Halo 3)[APE]

http://www.verycd.com/topics/219732/

 

HALO 3《光环(光晕)3》原声音乐集

http://down8.92wy.com/96f72b58d746029e85bc3ab4ee690bfa/tvgame/music/tvgame.92wy.com_20080619halo3_ost.zip

 

halo4

Martin O’Donnell & Michael Salvatori -《光环3:地狱空降兵》(Halo 3:ODST)[MP3]

http://www.verycd.com/topics/2770231/

 

没时间玩游戏,先听听音乐。如果我现在没有买房子的压力,肯定买XBOX360,买全套正版HALO,玩个天昏地暗。

在这儿也能下载到很多游戏的原声CD。

http://hi.92wy.com/vgm/

进口 Mazda 3 官网

一月 27th, 2010 by Lukialee
进口Mazda3两厢官方网站终于上线了。大家加班没白费。

image

image

我们极其注重细节修饰,处处动感不落俗套。

http://www.mazda3-5door.com/

不管是Flash Player 10还是Flash Player 9都可以正常观看。我不强迫用户安装FP10,当然用FP10看到的效果绝对比9好得多。

Adobe AIR 2 with command line

一月 12th, 2010 by Lukialee

Adobe AIR 2 可以使用系统命令行了,用到了新的API:NativeProcess,请用Flash Builder 4去编译,项目使用SDK 4。We can use AIR2 to call system command line. It is the NativeProcess. Please use Flash Builder 4 to compile with flex SDK 4.

我想用AIR开发一个执行命令行的工具。在这儿找到一个不错的例子。I need a AIR Application it could execute command line. I find a good example.

http://www.flexpasta.com/index.php/2009/12/01/command-line-execution-in-air-20/

image

老外用起来没问题,但处理中文会乱码。一开始我就怀疑writeUTFBytes这个方法有问题,因为不能设置编码,但一直没想到解决办法。
之后在这儿找到正解http://bbs.airia.cn/FLEX/thread-8130-1-1.aspx

看来writeMultiByte和readMultiByte是处理非英文字符的正确方式。 Because My system language is simplified Chinese. I need to specify the “charSet”。

所以最终的文件就改成这样了:

TestCMD.mxml (主程序)

TestCMD-app.xml (配置文件)

image

Warning:

  1. 配置文件保证第一行中的namespace必须是2.0beta。Make sure the line 1 in the Application configuration file
    <application xmlns="http://ns.adobe.com/air/application/2.0beta">
  2. 还要加上一行。Need to add this.
    <supportedProfiles>extendedDesktop</supportedProfiles>

加上extendedDesktop才能开启这个扩展功能。

很多文章都说要加这个标签,但它真的管用么?在发布时,会报错:

image

 

The English Error Version is :

Error creating AIR file: my-app.xml: error 306: Descriptor must support the profile desktop, mobileDevice, or extendedMobileDevice

Yes! The "extendedDesktop " is correct. But what’s wrong?

 

Some people say:

http://www.video-flash.de/index/nativeprocess-anwendungen-starten-air/comment-page-1/

http://forums.adobe.com/thread/532531?tstart=30

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Label text="{NativeProcess.isSupported}"/>
</mx:WindowedApplication>

If you use  ‘extendedDesktop desktop’. You could export your project, but the application can’t use NativeProcess API.

Test by yourself. The result is "false".

看看大家的讨论:

http://forums.adobe.com/thread/532531?tstart=0

How to release My App?如何才能发布程序?

配置文件一定要写这一行

<supportedProfiles>extendedDesktop</supportedProfiles>

We should use adt.exe to package.最终打包程序要用adt.exe。参考官方文档:

http://help.adobe.com/en_US/air/build/WS789ea67d3e73a8b22388411123785d839c-8000.html

http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff1.html#WS789ea67d3e73a8b2383e9229123db8f19fd-8000

image

目前AIR 2的文档奇缺,当然都在不断完善中,还有很多BUG。这个事很囧啊,大费周折,打包还得用命令行。

Show you my command:

adt -package -storetype pkcs12 -keystore E:\work\lukialee\docs\mee\airApp.p12 -target native myApp.air TestNP2-app.xml .

 

The key is :"-target native".

必须在命令中使用这个参数,才能正确地打包。具体原因我是不想再讲了,我折腾两天了,试过无数方法了……

使用swfobject在Firefox下使Flash获得focus

九月 24th, 2009 by Lukialee

Almost all Flash developer embed swf use swfobject. Here is a simple example.

If we want to set focus for one element in Flash when page loaded, use the js function:

obj.focus();

It works fine in IE. But it fired in FF. So try this:

setTimeout("thisMovie(’swfDIV’).focus()",250);

在网页里嵌入FLASH的方式很多,最常用的就是swfobject,在这儿给大家一个简单版的HTML页面,而且在Flash加载后,可以将焦点定位在FLASH内部,并且兼容IE,Firefox等浏览器。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>App Title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style>
            html, body, #swfDIV { height:100%; }
            body { margin:0; padding:0; overflow:hidden; }
          </style>
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
        function thisMovie(movieName) {
                if (navigator.appName.indexOf("Microsoft") != -1) {
                    return window[movieName];
                } else {
                    return document[movieName];
                }
            }
            var flashvars = {};
            var params = {allowfullscreen:"true"};
            var attributes = {};
            swfobject.embedSWF("App.swf", "swfDIV", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
            swfobject.addDomLoadEvent(setFocus);
            function setFocus(){
                setTimeout("thisMovie(’swfDIV’).focus()",250);
            }
        </script>
    </head>
    <body scroll="no" >
        <div id="swfDIV">
            <h1>Please install Flash Player</h1>
        </div>
    </body>
</html>

Flex Layout 2 在Flex中如何布局2

八月 12th, 2009 by Lukialee

我写的关于布局的文章,似乎不面向初学者,一开始就讲不常用的布局方法:约束布局。

当然看初级的文章不如看FLEX的帮助。

再推荐一篇不错的官方入门教程,还是中文的:

Flex 组件的定位和布局

 

Canvas的疑难问题

今天继续讲Canvas,它用起来就是那么随意,所谓画布,就是可以随处乱画,如果有些元素位置超出画布,它们就不可见了。

真的吗?Canvas有个属性clipContent,此值变量为true时,其子元素超出的部门被被隐藏、剪除,而clipContent为false时,出去的任何元素都可以看得到。但这个属性并不是万能的,孙子元素就不给判断了。

看这个例子:

image

CanvasClipTest.swf

CanvasClipTest.zip

用第一个Canvas可以正确地切除超出的部分,这个组件AlwaysClipCanvas由lwz创建,确实有效地解决了此问题。

但Adobe这样做也是考虑到了效率问题。

Away3D 2.4/3.4 Released

八月 10th, 2009 by Lukialee

Visit offical site, you’ll get the newest Away3d.

http://away3d.com/away3d-24-34-released

The version 3.x is for Flash Player 10. You could feel the new speed.

The AwayBuilder is a powerful tool to build a 3D world. The progress will be simpler. Create 3D scene in Maya, then use it in Flash with Away3d. Follow these tutorials.

How To: [AwayBuilder] Basic Tutorial – Part 1 | Setting up MAYA

How To: [AwayBuilder] Basic Tutorial – Part 2 | Setting Up Flash

 

Collada Eport Settings

 

我也曾经用Away3d做过一些小程序,用起来还是非常方便的,但文档更新得不够快。很多东西还要靠自己摸索。

This is my test. You should import newest Away3d library code.

image

building.swf

building.rar