2010年5月24日星期一

2010年5月11日星期二

Trying basic sound effect <mx:SoundEffect>

It’s quite easy to use sound effect within flex application, I mean simple sound,…

<mx:SoundEffect id="mySounds" source="@Embed(source='assets/jazz.mp3')"/>




<mx:Image source="@Embed(source='assets/Nokia_6630.png')" 
mouseDownEffect="{mySounds}"/>




With the sample code above, you can see that only 2 statement of code can add simple sounds in your app.



:)

2010年5月8日星期六

What a mistake, DJI deep drop!!!

image

This is a great moment in 2010 May…

It’s a ~1000pts drop within 10mins on Thursday

The deep drop happened under the shadow of Euro “PIIGS”

:P

2010年5月7日星期五

Trying Flex Custom MXML component

這個星期開始寫一些UI的module,
也做了一個custom mxml component,...override 了它的 data setter () function, ...
覺得flex 內的item Render 是一樣很好玩的東西,
有了它們, 我能夠張 TileList, DataGrid...等的類改頭換面,
簡單地做出一些不平凡的components!


以下是 一例子:



[CDATA[
override public function set data(value:Object):void {
// this is critical since we only want to inject additional logic
super.data = value;
// new behavior
var minAge:Number = 40;
if (data.age <>) {
setStyle("color",0xFF0000);
} else {
setStyle("color",0x000000);
}
}
]]>





=============
http://blog.flexdevelopers.com/2009/07/flex-examples-creating-custom-visual.html