26th Jul2010

Playstation 3 XrossMediaBar

by Johan Borgström

I really like the playstation main menu interface. It`s been around for ages but I still like the sense of the interaction. I´ve been planning to code my own AS3 version of the ui just to get my head around how you could code such a thing. Coding is like everything else. Find something you really like and try doing it yourself. You will learn a lot. This is a work in progress  and I am planning to use this as a testbed for differbet as3 features I want to try out.

To interact with the swf use keys below. The reason for using spacebar and tab is that they are allowed to use in fullscreen mode of a flash movie.

Navigation: Keyboard arrows

Enter: Spacebar

Exit: Tab

Get Adobe Flash player

Pixelbender I wrote a simple pixelbender filter to animate the bg image from color to b/w.

24th Jul2010

Finding differences in text files

by Johan Borgström

Finding differences in text files. It perhaps doesn´t sound to exiting. But it can be a real time saver. I was writing or rather sketching in as3 and suddenly the code stopped doing what I wanted and gave me all those errors that you like. You can of course hunt line by line and eventually find where you broke it or perhaps commented out something important. But if you have a a working copy of the .as file you can simply compare it to the script file giving you a hard time a fix the error in no time. You can download the program below to assist you. Worked like a charm for me.

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

20th Jul2010

Flash AS3 Fullscreen interaction

by Johan Borgström

I noticed that when in fullscreen mode in browser like google chrome and firefox, the swf didn´t respond to mouse interaction. I expected to find numerous of post on this weird behaviour but I really didn´t find that much at first glance. I found a post that said that in AS2 the eventListener should have the type set to mouseup to function correctly. I changed the listener type in AS 3 to MouseEvent.MOUSE_UP and voila I had interaction in fullscreen in chrome and firefox. I seldom use IExplorer but with that browser the listener type of down was fine. mmmm standards. May be helpful.