OranjePoule - De grootste WK poule van Nederland

June 7th, 2010

OranjePoule De WK poule van Hyves en Telesport. Voorspel de uitslagen van de wedstrijden en word de “WK Koning van Nederland”. Je kan natuurlijk ook je eigen subpoule maken en de voorspellingen van je vrienden bekijken.

De teller staat momenteel op 169.374 deelnemers en daarmee is het al ruimschoots de grootste WK poule van Nederland. Maar daar komen uiteraard nog veel meer deelnemers bij. Wil je ook mee doen? Vul dan voor vrijdagmiddag je voorspelling in, want de inschrijving stop als het WK begint!

Voor dit project heb ik de ActionScripting gedaan. Hiervoor heb ik gebruik gemaakt van Gaia en de Temple. Ook is het caching systeem ingezet en verbeterd. Voor dit project heb ik een speciale truc bedacht om ActionScript code uit SWF files te halen, waardoor deze files meer dan de helft kleiner zijn geworden. Hierover zal ik nog een blogpost wijden.

Mede door het PHP-werk van Robert Slootjes is dit project een technisch hoogstandje geworden waar ik erg trots op ben. En ondanks mijn “liefde” voor voetbal was dit een heel erg leuk project om te doen.

Bekijk het project op:

http://www.oranjepoule.nl

Stemkijker - VideoPlayer

June 7th, 2010

StemkijkerBekijk en vergelijk de video´s van de lijsttrekkers van de politieke partijen voor de Tweede Kamer verkiezingen op 9 juni 2010 op Stemkijker.nl

Voor TalentInsite heb ik een videoplayer gemaakt voor de Stemkijker. De videoplayer is gebaseerd op de videoplayer uit de Temple en ondersteund verschillende video formaten als flv, H2.64, progressive download en RTMP streaming. De videoplayer is schaalbaar en gemakkelijk te embedden in andere websites.

De VideoPlayer van de Temple is momenteel nog niet open-source, maar zal daar binnenkort aan worden toegevoegd.

Veilig op weg - De Game

June 7th, 2010

Veilig op weg - De GameEen autorij-spelletje voor Pearle, waarbij je mag proberen om met -8 een auto te besturen. Onderweg pak je brilletjes op en wordt het zicht beter. Maar lukt het je ook om zonder brokken de finish te halen?

Dit semi-3D spel is gemaakt zonder 3D framework, maar gewoon met de  3D feature van Flash player 10. Uiteraard wel met behulp van onze Temple Library, en Gaia voor de pagina navigatie.

Voor dit project heb ik de ActionScripting gedaan. Het design is gemaakt door Vincent van de Wetering.

Speel het spel op:

http://www.pearle.nl/Veilig_Op_Weg_De_Game

Flash: Convert a function reference to a readable string

April 23rd, 2010

Temple Flash Library IconIf you have a function reference in Flash there is not a lot of information you can get from it. Converting the function to a string will only give you: Read the rest of this entry »

How to set MXMLC (FCSH) to English (on Windows)

March 25th, 2010

If you are working in the Netherlands on a pc with MXMLC (FCSH) you probably get all your errors in Dutch, like:

Functie heeft geen hoofdtekst.” or “Waarde van het type Function is gebruikt waar type void werd verwacht. Mogelijk ontbreken ronde haakjes () na deze functieverwijzing”.

Funny, but not very handy since most help and documentation is in English. So I wanted my errors in English. FCSH does not have any option to change the language. Changing Windows to English doesn’t change anything and setting the location to U.S. doesn’t help either. Finally we found out that setting the format to”English (United States)” will set MXMLC to English:

Format options

Unfortunately this will also change your number, currency, time and data formatting. But you can customize this back to the Dutch settings.

Temple open sourced.

March 22nd, 2010

Temple  Flash Library IconTemple‘ is the name of our AS3 library we use at MediaMonks. Almost all of our AS3 projects are using it. The Temple is inspired on several 3rd party libraries like ASAPLibrary, AS3CoreLib and CaseLib, but adapted to fit our needs.

The Temple consists of several classes we use on a regular basis. They are designed for reusability and optimized for performance and memory usage.  The Temple is specially designed to work with other frameworks like Gaia. The core of the Temple focuses on: debugging, destruction and memory management.

Debugging
Many classes are debuggable and have a ‘debug’ property. When this property is enabled, the object logs debug messages which allow you to see what the object is doing. All debuggable objects can be managed by the DebugManager. The DebugManager allows you to run all objects in debug mode.
All messages are logged through the Log class which is easily extended for usage by other logging applications, like Yalog and DeMonsterDebugger.

Destruction
All objects are destructible. By calling the destruct- method, the object will clear all of its data, removes all event listeners, removes itself from the display list (DisplayObjects only of course) and makes the object available for garbage collection. Destruction is recursive, so an object will also destruct all its children.

Memory Management
All Temple objects are tracked, via weak reference, in the Memory class. You can view all objects in the Memory class. This makes it possible to detect if an object’s destruct method is working correctly.

More
We also added many nice utility classes for the initial release of Temple, however there is a lot more to come. Since we are keen on stable, neat, and well documented code we are initially only releasing the core of the Temple library. This code has been used and tested and has proven to fit our requirements. There is a lot more we are planning to release soon, like UI components (buttons, form components, video player), loaders (CacheLoader, ImageLoader) and behaviors.

The Temple can be downloaded from Google code and the documentation can be viewed online.

For updates follow us at Twitter.

The Temple is released under the GNU General Public License which allows you to use, extend or modify the code to whatever you want.

Cache and preload Gaia pages

January 25th, 2010

Gaia Flash FrameworkI use Gaia a lot. I think it’s a great and powerful framework to create page-based Flash sites. But there is a problem: Gaia creates a SWF for every page. And every time you visit a page, the SWF is loaded again. Even if you already visited that page. Also it is not possible to preload pages you are not visiting.

To make page caching and page preloading possible, I have created the ‘CacheLoader‘ and ‘CacheURLLoader‘ classes. Both classes make use of the ‘LoaderCache‘ to cache the SWF files used by Gaia. Just add these 3 classes to your project and you only have to adapt 2 Gaia classes to enable this feature: Read the rest of this entry »

‘Even Apeldoorn bellen’ - Augmented Reality

January 7th, 2010

Centraal Beheer - Augmented Reality - Thumbnail

Voor de “Even Apeldoorn bellen”-live campagne van Centraal Beheer hebben we bij Media Monks de website mogen bouwen. Een onderdeel van de website is een Augmented Reality toepassing, waarvoor ik de ActionScripting gedaan heb.

In verschillende kranten heeft een ‘Centraal Beheer’ advertentie gestaan. Door in de website de advertentie voor je webcam te houden verschijnt er een 3D scene op de advertentie: Er komt een mannetje in beeld die op een ladder probeert te klimmen.

Centraal Beheer - Augmented Reality

Door de advertentie te bewegen beïnvloed je de 3D scene. Als je de advertentie te schuin houdt valt de man van zijn ladder en verschijnt de “Even Apeldoorn bellen” slogan.

Centraal Beheer - Augmented Reality 2

De Augmented Reality applicatie is gemaakt  met PaperVision3D en de FLARToolKit. De website is gemaakt met Gaia en de Temple. Meer informatie over de hele campagne staat op Dutch Cowboys en Marketing Facts. Bekijk de website op:

http://www.evenapeldoornbellenlive.nl

Om de Augmented Reality toepassing te bekijken klik je onderaan op “Webcam-boodschap” en vervolgens op “Start”. Zorg er voor dat je de advertentie bij de hand hebt (deze kan je uitprinten op de website).

We Fashion

December 28th, 2009

We Fashion A few weeks ago we launched the new website for We Fashion.

“WE Fashion is an international fashion company. With approximately 230 stores and 3,000 members of staff, WE Fashion is represented in the Netherlands, Belgium, Germany, France, Luxembourg and Switzerland.”

The website is build with Gaia and the Temple. We used some special techniques for this website like:

Multi language, multi locale
Since We Fashion is located in several countries with several languages, the website had to be multi-language. The language is added in the deep-link and you can switch language without reloading the website.

Search Engine Optimization (SEO)
The website is fully index-able by using alternative HTML pages that contain all the content of the website. When you switch off Javascript you can see the alternative HTML. (But the HTML still needs some styling.)

Liquid
The layout of the website is automatically adjusted to fit to the size of the screen. No matter what the size of your screen is. For this purpose we created a LiquidBehavior for the Temple, which handles automatically resizing and repositioning of the objects.

Watch the new website on: http://www.wefashion.com

Gaia: Run pages standalone

October 18th, 2009

Gaia Flash FrameworkI am a huge fan of Gaia Flash Framework, I use it for almost all my projects. It is a great framework if you want to create solid and maintainable Flash websites.

But as with many Frameworks it comes with some disadvantages; Gaia creates a .fla file for every page, but a page will not run standalone. After compiling the .fla file you have to test the page through the main.swf. For a huge project this is very unwieldy and inefficient.

So I created this “GaiaStandAloneRunner” which enables you to run your Gaia pages standalone, even with all the assets and SEO copy defined in your site.xml. The code only adds about 0.6 KB to your page swf file. Read the rest of this entry »