As part of a school project about AS3 api’s i developed a small actionscript api that uses Itzchak Rehberg php classes to parse cache the imdb pages and extract the information from it(with a very cool caching mechanism). i just tweaked it a bit so it parses xml instead of html. there is a working draft copy here if you want to test it just type in a movie title and it will parse an xml wich gives you the all the associated imdb-id’s for it.
the as3 api now only concludes searching and fetching movie information.
its as easy as just to
var imdbSearch:SearchIMDB = new SearchIMDB(“scrubs”,20);
and for fetching a movie you can just do
movie = new Movie(<enter movie id here>);
Try not to put in a loop of fetching 500 movies at the same time because it will overload your internet connection. I did a couple of tests (try it out here) (srcview) i also did test to fetch movie information 1 at the time but it goes like 50% (avg) faster if you just request all at the same time ( just respect a golden rule .. “don’t overdo it” 😉 )
you can download the source files here
you can download the php source files here
note that if you want to use the code that my server is only there for testing purpose and if you do want to setup you own project just copy the files to you php server and change the link. I can only keep my server online as long as it can handle traffic 🙂
A couple of days ago i was searching for a AS3 zip API that would support encryption.
When i couldn’t find one i started to extend David Chang’s Zip API with the RC4 encryption method made by Metal Hurlant
What it does is that it encrypts the bytearray provided by the zip API with RC4, and in the test application you can see that it writes the file to the hard disk. It is not compatible to open in windows/mac environment. But that just my intention, only to open it in flash ( if provided the right key off-course ). Maybe a nice way to secure/compress your assets in 1 file.
my latest test on my mac ( 2.2ghz, 2gb ram) concluded that it could parse/decrypt +500kb/s
so be careful with very big files 😉
I’m open for suggestions and if you find any bugs just let me know 😉
(in the zip there is also an SWFParser class from Denis V. Chumakov it comes in handy if you want to parse an swf-bytearray)
download source code
for the test code just look in the ZipSecureXML_test.as file and you will find out how to load/save an encrypted zip file
05.00 am Saturday morning, just got 1 hour of sleep.
But pretty eager to rush to the airport to get the 8.15 flight to Stansted.
Train got us pretty quick to brighton ( although in my opinion ).
First time in brighton and definitely not the last, people are friendly, stores are open day and night, and the food is .. yeah “ok” 🙂 let just say it’s healthy enough. what else can be the first meal in brighton than a good old fish and chips .. fish and chips it was.
early to bed to catch some extra sleep for the fotb workshop day on Saturday.
Michelle Yaiser have teached us the basics in AS3 which was a little to basic for me (but if you have the chance to see here please make some free time because she is a wonderful and very warm speaker!) but the afternoon session by Joey Lott was a lot more inspiring.. although it started with a little delay because not everybody in the room had Flex Builder and the cairngorm framework. when that was cleared up (with the help of a couple usb sticks because the Internet was on a coffee break) we had a little introduction in to cairngorm which got me fired up to experiment with it!
So for the first day.. it was a good warm-up.. but i’m looking more forward to the sessions the next 3 days.
The 0.5l bear in the old ship hotel got me in good atmosphere to get a good night of sleep.
for those who care.
good night !
(ps: my picture is op on the fotb backnetwork 😉 taken by my friend dimitri)