VCASMO

Works


Before AS3, we can only use substr to abbreviate string characters number for TextField, but we have to guess a extract number to fit our UI design, e.g. only show two lines, we have to guess in this font size, font face, what is maximum numbers of character can be shown. It is a problem which is hard to solve for a long time.

When come to AS3, TextField class have a new method call getLineLength(), it can return each line, number of characters are shown. So I have written this small class to help me limit the number of rows can be shown in TextField

Download MaxRowsTextField class file
Download demo source

Usage
This class is extended from TextField class:

var tf:MaxRowsTextField = new MaxRowsTextField();
tf.width = 290;
tf.multiline = tf.wordWrap = true;

// 0 mean unlimited, default is 0
tf.maxRows = 4;

// change abbreviate symbol, default is "…"
tf.moreStr = "…(more) ";

// if you want to limit rows count, use this, otherwise, you can just use text or htmlText
tf.text2 = "This is a vey long message";

This class is extracted and simplified from my VCASMO 2.0 project.

Thanks Flash Player 10.1, now we can record the sound through microphone directly in browser without the use of Flash Media Server, you can download the wav file converted from ByteArray immediately, you can download mp3 which I send wav file to server and using LAME to encode as mp3. Hope AS3 mp3encoder can come out in one day, then a pure client side microphone recording dream will come true since Flash Player 6!

[Demo]

To learn how to use microphone to record sound, you can check this devnet article.

Mac Keynote 08 Alpha Function is an amazing and convenience feature, it can easily remove the background of image, why Photoshop have not such feature? Apple is Apple, UI and features are always very user-friendly. If you do not know how Keynote Alpha work, please watch the following demonstration:

My Flash version, of course, still need many improvement and code optimization.

My work: VCASMO are honourable to be one of the nominates in the 2008 Webware 100. It is a surprise for me. Voting is now open, please vote for VCASMO. Thank you :)

The game is designed to help you memorize Japanese syllabary by finding out the matched hiragana / katakana / rōmaji. In this demo version, main menu>option is for evaluate and is disabled.

Capable for Flash Lite 1.1, tested in Nokia S60 series and DoCoMo Foma Series.
[Download]

for DoCoMo user, you can play the demo game through this URL in the browser (using 2,4,6,8 as arrow keys, *: left soft key, #: right soft key):
http://kcly.com/hkm.swf

If you find this game is useful for you to learn Japanese, please support me by donation (whatever amount you like), then you can get the full version.

I have made a skinning on v2 Tree component to an expandable menu. Now, I try to use Flex2 Tree Control skinning as the same stuff. Programming concept are so different, except graphic asset can reuse, all the code are written from scratch.[Demo][Source]

In this exercise, the focus not only on component skinning, I also learn how to embed Flash MovieClip symbol as asset, embed font, using Flash 8 FlashType to dispaly small clear text.

I have written newsgroup reader before, using Flash+PHP. Nowadays, ActionScript 3 has Socket Class, which can directly connect to NNTP Server, therefore I written this Flex2 version (swf, source). Written NNTP is not hard, I just used 3-4 hours, but solving the Chinese encoding problem, waste me 2 days, I have referenced 雲開’s and qhwa’s idea. Finally, I found that flash.system.System.useCodePage = true sounds like has not implemented in Flash Player 8.5 yet, so I gave up, I will write my own UTF-8 convert program in the future spare time (Java version). My original idea is writing a mature application, e.g: threading, paging, Base64 (discovered Flash has Base64Encoder Class but no decoder) and quoted-printable encoding conversion, attachment, subscribe newsgroup before release to public. Due to the basic Chinese encoding problem that I even cannot handle, so gave up. Release this demo with the source code: mxml, for interested people as a reference, study or improvement.

nntp_s.jpg

During the coding process, I found few problems, I hope that it is Flex2 alpha version not stable, or my knowledge is not enough. For example: TextArea Component vPosition is not work, ComboBox return null easily, useCodePage is not work…etc

Note: swf has to view locally, view it online will be blocked byFlash Player sandbox.

Other References

The old Ajax version, now it is the Flex version

Capable for Flash Lite 1.1, tested in Nokia S60 series.
[Download]

My old game is ported to OKWAP/PPC version. Capable for Flash Player 6, pen touching device (sorry for no such device testing).
[Download]

Older »