ActionScript3 library for MySQL, be careful!

Today I’ve read on Mike Chanbers blog a post about a newly born library which allows flex2/as3 to connect directly to mysql.

Here’s the link to the project: http://maclema.com/assql/

I must admit some times ago I tried to make a similar thing because I know as3 could speak directly to mysql.. but it was just a test and I sopped immediately the experiments.

About the assql library: this library can be useful if you think to use it in Apollo applications, but never never think to use it on the web!
First of all you need a mysql server which allows connections outside the localhost env, secondly you need to set the database password within the swf file and thirdly you will have queries within the swf too.. bad. Better to stay on amfphp or webservices

Even if a scrambler is provided with this library, it will be quite easy to sniff the password too..

Anyway, awesome library indeed for the Apollo framework!

Fear of Silverlight?

Since the announcement of Microsoft Silverlight I continue to read posts of flashers (being subscribed to mxna feed) attacking silverlight in various manner.. (here some links to these posts)
I must admit I don’t know silverlight at all. I just watched some online demos and downloaded some examples.
For what I’ve seen I don’t like it too (but just for personal feeling), but I also have to consider it’s the first (and beta) version….
Otherwise I think the vector rendering engine is more powerful than the flash one.

But why people fear of it? Does it because it’s a Microsoft stuff? Or just because it’s a possible Flash competitor?
Usually when someone attacks something, this means that you fear or it. But I don’t agree, I hope MS will continue the development of silverlight because competition can only be a benefit in a global market.
Don’t you agree with this?

Flashlite and python games for my Nokia

Last week I bought my new mobile and I got a Nokia N73 phone.
After the first days playing with themes and ring tones, as usual with new toys :), I installed Flashlite 2.1! I must admit I never used and seen it before… so I decided to make a first quick experiment making a simple game.
Lucky that Adobe Device Central CS3 has just been released, so I could test the swf in different environments (even if I didnt understand how phones flashlite versions could be changed in the device central phone list..).

Anyway, finally I made this simple tetris remake with flashlite 2.1.
If you want to broke your phone you can try install it from here:
[attachments size=small docid=989 fields=none force_saveas=”1″ logged_users=”0″]

I also followed some tuts about creating .sis installer (for symbian phones) from here and also trying using other tolls such as SWF2GO but unfortunately I wan’t able to do that 🙁

Python… oh python 🙂
Then I discovered that there is a python version for series 60 (PyS60). I couldn’t believe to my eyes when I opened the Python shell from the phone menu! LOL

So, why not trying to make something also with python?
After installing tons and tons of software from Nokia, tutorials and example files I finally managed to start creating simple apps. Also this time I started with a simple game (my second fav arcade game): Asteroids.
This time I also managed to create the .sis file, even if not with the suggested process with py2sis, but using only Ensymble with this command:
ensymble_python2.5-0.22.py py2sis asteroidz.py asteroidz.sis --uid=0xA0002E1F --appname=asteroidz --caps="NONE" --lang=EN --shortcaption="asteroidz" --cert=mycert.cer --privkey=mykey.key --passphrase=password --verbose --version=1.0.1
You can download the .sis file and the source directly here (it requires python series 60 1.3.20 already installed):

[attachments docid=990 force_saveas=”1″ logged_users=”0″]

Anyway, please note that this is incomplete, it’s merely a test just for understand the python graphical api from Nokia.

I just discovered a new world 🙂

New Flash player 9,0,45 & Flex patch

If you’re a Flex 2 developer you should download the newly released Flash player 9.0.r45 debug version.

Once installed the new player remember to apply also this patch to Flex builder 2, otherwise it will throw you an error every time debugging an app (expecially if you’re using Firefox).
This patch also does the following:

“This patch allows the Flex SDK and Flex Builder to use SWFs and SWCs created by Flash CS3 Professional. After applying the patch you should be able to take classes and symbols compiled with Flash CS3 Professional and compile them into a Flex application. You should also be able to take classes and libraries compiled with Flex and use them in a Flash CS3 Professional project.

In addition, this patch allows the Flex debugger (fdb) to function correctly with Flash Player 9 (9.0.45.0) in the Mozilla browser.”

Actionscript Image filtering experiments

I never worked so much on image filters with Flash and ActionScript, but due to the current project we’re working on we (me and Gabriele) started enjoying the image filtering with Flash.
Ok, there’s still so much to learn, but it’s the beauty of discovering new worlds 🙂
Even if for some multiple-pass filters the player is quite slow and so we need to make a step by step filter (applying the filter line per line).

However, here some of our experiments