Showing posts with label Flash. Show all posts
Showing posts with label Flash. Show all posts

Sunday, January 4, 2009

Connect4 in Flash


Inspired by Giorgio Sardo who used my old Connect4 code to demonstrate moving a c# game to Silverlight for Mobile (when will you put that code online, Giorgio?) in a PDC 2008 session, I decided to use the same code as the basis of a project I had to do for a flash course last year.

This time, I didn't migrate all of the code, but rather made the flash talk to a back-end c# web service that calculated computer moves.

I know it's still a bit buggy - but some of you out there might enjoy it. While making it I found what could seem like a bug in ActionScript 3 - making it quite difficult to drag and drop nested objects....But I might share more about that later.


Try the original plain html here.

Try the new flash version here.

Code and written project will be available later.

Wednesday, October 22, 2008

Flash Rss Reader

Another little flash gadget I just made... An RSS reader. Yes, I know it's an original idea - but it seemed like a good, comprehensible, and to some degree useful thing.

For fun I made iPhone style navigation - in the sense that you need to drag right or left to move between items.
It lists the blog feed from labs.episerver.com.

The trickiest thing was to handle all the security around loading a URL in flash. Flash can only load data from the same domain as it is located on (or another domain that has a crossdomain.xml file in the root, allowing flash access). Anyway, the simple solution was to make a small rss proxy in c# (around 3 lines of code) and put it on my test-domain together with the flash app.