These are good books………….
2010年1月31日星期日
2010年1月24日星期日
today work in chinese character encode issue on the mysql-php project.
I finally work out a way to encode & display Chinese char in the Flex,
mysql_query("SET NAMES 'utf8'");
this is just too great!!!
2010年1月23日星期六
在 Flex 使用中文fonts 的方法
這兩天不停嘗試在flex 內加了中文font, 結果最後在網上找到了一個很好的方法、
就是先用flash 做了一個動態文字, 再用embed font 功能, 見圖(1)
最後再export SWF,在flex 內就可以簡單使用了.
然後要用”Export”輸出.
在Flex內, 用ActionScript的Embed[] 就可以了 !
[Embed(source="fonts.swf", fontName="微軟正黑體",fontWeight="bold")]
public static const fontOneNormal:Class;
2010年1月22日星期五
2010年1月21日星期四
2010年1月19日星期二
Learning SWFLoader in Flex.
Currently trying to embed different assets into flex.
Of course, the most interesting thing is SWF…
<mx:SWFLoader id="loader1" source="@Embed(source='flexapp.swf')"/>
And to a further extend, we can control the swf in some way,
public var loadedSM:SystemManager;
loadedSM = SystemManager(myLoader.content);
loadedSM.application["lblOne"].text = "I was just updated.";
to see more details:
http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html
Currently searching some technique for combine PHP & flex.
just find out that using HTTPServices can get data from php script…
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
[You can use a Flex HTTPService component in conjunction with PHP and a SQL database management system to display the results of a database query in a Flex application and to insert data into a database. You can call a PHP page with GET or POST to perform a database query.]
As mention above, I can do php-mySQL stuff in flex… :)
Will implement some sasmple in my own PC testing first!