Sven Dens

deserialize me

Archive for May, 2007

Aral Balkan at MultiMania 07

with 2 comments

Just saw Aral Balkan’s session on “Rediscovering Fun”, which, as always, TOTALLY ROCKED!!

He mostly talked about his new remoting technology (gateway) SWX, and showed just how cool it is to really USE the web. Things like Twitter, Flickr, Upcoming, etc… all have public API’s which basically allow you to build your own stuff, just the way you like it, while using their technology.

A totally cool demo was when he used his Nokia N92 phone to read out a barcode, generated by web software and containing actual Twitter input. The phone read in the barcode, Flash Lite on the phone using SWX interpreted the input and displayed the output on screen. Now how cool is that?! :-)

Lesson learned was: don’t be afraid to experiment! Use the web, discover all the fun things you can do with it, and don’t get put off if you need to try 1000 times before you build something really cool that lasts. JUST DO IT!

More on this day as it continues…

Written by Sven Dens

May 25th, 2007 at 12:02 pm

Posted in Events

Email and cell phone validation in AS2 and AS3

with 6 comments

I just wrote 2 simple classes to validate email addresses and Belgian cell phone numbers in AS2 and AS3.
Might come in handy for you, they’re available for download here.

I included FLA’s for Flash8 and FlashCS3 for AS2 and AS3.
They show 2 TextInput components, one for an email address and one for a cell phone number.
The cell phone validation includes a “strip” function. Since people tend to enter their phone numbers in different ways, dots, blanks and slashes are removed from the input before validating the number.

Read the rest of this entry »

Written by Sven Dens

May 22nd, 2007 at 4:04 pm

Posted in ActionScript, Flash

Encryption in AS2 and AS3

with 11 comments

If ever you need to encrypt or decrypt something from in AS2 or AS3, this might come in handy for you.
I’ve started off with the great encryption classes written for AS2 by meychi.com (currently offline), but felt there had to be a more user-friendly way of using them, so I got to work on it last night and think I’ve come up with a pretty elegant solution.

You can download the ZIP-archive to try it out for yourself.
Please note that this release is still early alpha and there’s probably alot of room for improvement, I’ll post updated copies for the files here regularly. There’s also still little documentation in the files and there aren’t any unit tests yet.
Inside the ZIP you’ll find an FLA for AS2 and one for AS3. The AS2 FLA comes in a Flash8 and a FlashCS3 flavour.
The FLA’s contain a single MovieClip with a linkage to their respective .as source files.

Inside the package be.boulevart.as2.security are the wrapper classes I wrote for the original AS2 implementation by meychi.
What this does is provide you with an elegant way of using any encryption type with just a single line of code:

e = new Encryption(EncryptionTypes.RC4(), str , this.theKey, null, null, null);

See what I did with the EncryptionTypes there?
Read the rest of this entry »

Written by Sven Dens

May 22nd, 2007 at 1:44 pm

Posted in ActionScript

Build and compile AS3, Flex2 and Apollo applications in Eclipse on Mac OS X

with 2 comments

So today I wanted to compile a simple “Hello World” app and package it as an .air-file for installation in Adobe Apollo on my Mac…

This can already be done in FlashDevelop – a great editor, but it only runs on Windows – but I couldn’t yet find a source telling me how to do it from Eclipse or any other editor that runs on OS X. So it was time to roll-up my sleeves and figure out a way to do it.
Didn’t turn out to be hard at all, using ANT and starting off from the nice Apollo ANT-template for FlashDevelop built by Ryan Taylor.

Read the rest of this entry »

Written by Sven Dens

May 22nd, 2007 at 12:42 pm

Posted in Adobe AIR, Flex