Update your PureMVC framework
A new version of PureMVC AS3 is released - 2.0.4 . In this release the following bugs has been fixed:
- Dissallowed re-registration of Mediators in View.registerMediator.
- Modified View.notifyObservers to notify from a copy of the observer list rather than the actual observer list, which may change during the notification loop.
If this bugs are something new to you, read more on them here - bug 1, bug 2. And, of course, the download page to get a new release.
Jabber Client with Flex & PureMVC
Just found a great and very detailed tutorial(with source) on creating a jabber client with Flex, PureMVC, Jabber and XIFF. It consists of nine parts:
- Introduction
- Part 1 -Frameworks
- Part 2 -Directory structure
- Part 3 -Application and ApplicationFacade
- Part 4 -Notifications, Commands & Use Cases
- Part 5 -Model & Proxy
- Part 6 -The Application View & Mediator
- Part 7 -The Login View & Mediator
- Part 8 -The Roster View & Mediator
- Part 9 - The Chat View & Mediator
- Conclusion, Demo & Downloads
As you can see, Dave Keen did a great job, and it’s really worth of taking a look.
Thanks Dave!
Renju, The Game
I have been playing this game for a while and thought that it whould be interesting to create my own flash version. For those who don’t know this game, a bit about it - Renju or Lianzhu is the professional variant of Gomoku, a board game originated from Japan in Heian Period. It was named Renju by Japanese journalist Ruikou Kuroiwa in December 6, 1899 in a Japanese newspaper Yorozu chouhou. Lianzhu is a Chinese translation of Renju. It is played with black and white stones on a 15×15 intersection board.
Two players, Black and White, alternately place two stones of their own colour, black and white respectively, on empty intersections of a board, except that Black (the first player) places one stone only for the first move. The one who gets five or more stones in a row (horizontally, vertically or diagonally) first wins the game.
So try it here. You can also download the source. Please note that this game is build on PureMVC version 1.7, and it won’t work under a new version 2.0.1 that has just been released. Just in case, I’ve included older version in source.
Hope you like it, and have fun.
Post Update: March 17, 2008
Implemented difficulty level functionality, some bug fixes and updated code to PureMVC version 2.0.1 . Download source.
For any thoughts about improving this game or bugs, leave comments.
AMFPHP Flex Guestbook
Would like to present you the first beta release of my Flex Guestbook. A week ago I’ve started to write a tutorial on creating a full featured paging, but ended up in a more complex example.
The application is tied with amfphp services which so far can return comments and insert them, the client part formats and displays posts, has a paging feature and of course a simple form to insert your data. At this point I stoped, to show the work in progress, so you could help me to define what other features I can add. Of course, there should be an admin part to moderate the content. But should it be an external app, or be right there in guestbook? Should there be multiple administators/moderators with different access level? Or maybe something is wrong or uncomfortable in existing version?
Would really like to hear any suggestions, meanwhile feel free to test the FGuestbook demo.
After getting some feedback, I’ll finish this project and open-source it.
As all my other projects it’s build on PureMVC framework, so it should be a good example for pmvc users or those who would like to learn it!
Mac Style Flash Menu
I always wanted to re-create Mac OS X menu in flash, so considering that it’s a bad practice to invent a bicycle, I started to look for some examples, to see what others might have done. As expected, I found a bunch of shitty ones, but there always is a light in the end of a tunnel. Finally I found a really nice one at http://jrgraphix.net/. Link to post and example is here. It’s an ActionScript2 class that looks really nice, so I took it as a base for my AS3 version. Click on the image below to see the example.

As you see, I refactored the class so it’s properties could be dynamicly changed. The example is build on PureMVC framework, so handling events like updating properties of menu or listening for it’s events is pretty simple.
There is actually a little bug, that I was too lazy to fix. It’s when mouse is over the menu, and then exits swf area, menu doesn’t return to it’s initial state. No big deal.
So feel free to download and examine the source. Maybe someone can create a cool application out of this. For any questions, bugs, or whatever else just contact me.