Monday, March 31, 2008

Some new stuff

Well, for the past 3 months, I've been working on a lot of things. Including some animations, some small games, and some web tools.

Anyways, I've cooked up a proxy for anybody that needs to get around school censoring system.
it's http://www.jjtchiu.com/go.php

I know it's not perfect, but it should work on 50%~60% of the websites.
I, however, will monitor the traffic. So don't go to illegal sites!

The next one is a new game. It's fairly small, but fun. It's called Nim.
Basically, there are some piles of stones. You can remove any number of stones from only 1 pile in each turn. The person that gets the last stone loses.

Play it here: http://jason.jjtchiu.com/flash/nim.html
See if you can beat the computer! Remember, if you make even ONE mistake, you will lose.

Sunday, March 30, 2008

Flash CS3

Just recently I got flash CS3. It has many exciting new features, but I'm having mixed feelings.

For one thing, ActionScript 3.0 is... urm... really different. I liked the way AS2 was - fast development, and easy to write. But then... when it comes to AS3.0, everything changed. So different,

The movieclip hierarchy is now a completely different package. For example, instead of createEmptyMovieClip(), you call "var my_mc = new MovieClip();" and then "myParent.addChild(my_mc);"

Event handling is also different. The ECMAScript-style "my_btn.onrelease = function()" is obsolete in AS3.0. You now have to create a function "function my_btn_release()" and then "my_btn.addEventListener(MouseEvent.CLICK, my_btn_release);" It's cumbersome and time consuming.

Also, lots of freedom and advantage of AS2 is now gone. Variable typing is necessary, and it is also necessary that no variable referenced is undefined.

The only major improvement is... performance, sometimes by 5 folds or even 10 folds. I consider it really good, but seriously, flash applets rarely need such high performance. I mean, it certainly opens up possibilities for things such as 3D rendering and bitmap manipulation. However, for most needs, AS2 will be faster to develope for small program complexities. *hope it doesn't become deprecated in the future*