ActionScript conference in Singapore

There’s going to be an ActionScript conference in Singapore coming October 19.

The Actionscript Conference

It would be cool to see what Adobe has for the developers. It cost 60 bucks to attend but if you’re real lucky and are amongst the first 10 to put the above badge up, you might be in for a little discount. And yeah, I am kinda eying for some discount, haha…

Google now crawls Flash

Flash developers would be pleased on this one – Google has now learnt to crawl the text within the Flash files.

Google learns to crawl Flash

Google has been developing a new algorithm for indexing textual content in Flash files of all kinds, from Flash menus, buttons and banners, to self-contained Flash websites. Recently, we’ve improved the performance of this Flash indexing algorithm by integrating Adobe’s Flash Player technology.

In the past, web designers faced challenges if they chose to develop a site in Flash because the content they included was not indexable by search engines. They needed to make extra effort to ensure that their content was also presented in another way that search engines could find.

Now that we’ve launched our Flash indexing algorithm, web designers can expect improved visibility of their published Flash content, and you can expect to see better search results and snippets. There’s more info on the Webmaster Central blog about the Searchable SWF integration. (Source: Google Blog)

This should have been done a long time ago. But it’s great news for ActionScript lovers. You text are not left out any more.

But! But!! But!!! Honestly, given a choice I much prefer see JavaScript if Flash is not really need. If you just want to create some rollovers or an image gallery, consider JavaScript. For one, it just works out-of-the-box. JavaScript libraries have cool effects that you can achieve with Flash too.

How to do a parseInt in…

Recently, due to my Java class, I’ve been typing parseInt() in my PHP code instead of intval().

Here is a compilation of all sorts of ways to parse string into integers:

PHP

[code lang=”php”]var $num = intval("0001");[/code]

JavaScript/ActionScript

[code lang=”javascript”]var num = parseInt("0001", 10);[/code]

Java

[code lang=”java”]int num = Integer.parseInt("0001");[/code]

Apparently you need to type really long to parse stuff in Java.

Python

[code lang=”python”]num = int("0001")[/code]

Ruby

[code lang=”ruby”]num = "0001".to_i[/code]

Now that I suddenly remember them all, I decide to quickly write them all down. Because the next moment, I’ll forget them or mix them up again. Please correct me if I am wrong.