Category

Archive for the 'PHP' Category

AS2 to AS3 converter: createTextField, getURL handling

( Actionscript and PHP )

Just came back from a week’s vacation in fabulous Quebec City, and glad to share this second draft of the AS2 to AS3 converter. Try it here, download it here.

Since the first version of the converter was quite well-received, I figured I’d revamp the actionscript parser portion of the class to get it beyond a […]

AS2 to AS3 preprocessor converter - first draft

( Actionscript and PHP )

After yesterday’s heated discussion as to the actual usefulness of an AS2 to AS3 converter, I decided to implement some of the features in laundry list to see if I could get something actually useful. You can test it live here. You can download the PHP source here. The source includes convert.php, which expects two […]

The end of methodTable? Opinions wanted.

( Remoting and PHP )

I’ve started working on amfphp 2 and if there is one thing I hate about amfphp it is certainly writing that darn methodTable. Now with amfphp 1.2 I’ve made it so it’s possible to generate the method table from the service browser, thanks to Christophe Herreman’s MethodTable class. I still hate the fact that methodTable […]

PHP, FileReference, and sessions: a bug from hell

( Actionscript and PHP and Bugs )

Oh, I had fun debugging this one. I was using FileReference to build an interface for users to upload their resumes on an agency site. Once the user pressed the send button, the following happened:

File is sent using FileReference to upload.php. The location of the file is remembered using a session. Second file is sent using […]

BitmapData saving: now 50% faster on encoding

( Remoting and Actionscript and PHP )

I was trying to optimize the encoding routine for my BitmapData saving solution and then I thought: WWTUD? Well, I tried every trick in the book: lowering the number of bitwise operations, replacing + with | or vice-versa, unrolling the encoding loop, reversing the if… All failed until I tried something dead obvious that I […]