Archive for the ‘Flex, Flash and AMFPHP’ Category

Optics simulation in Flash - lens formula

Saturday, June 13th, 2009

I was just created a flash simulation of what happens when you move an object in front of a convergent lens. When the object is moved back and forth its image will react to the movement. It all had to happen with Actionscript 2 too. Check the result here.... Read More

Zend Amf and class mapping with Flash CS3 / AS3

Tuesday, March 24th, 2009

Update: I just got a mail from Julien Iafrancesco:... Read More

Detecting parent URL with AS3 and jQuery - redux

Friday, January 23rd, 2009

In an earlier article I spoke about changing the stage size based on the URL of the page that loads the ShockWave.


Well as it turns out the simple approach I outline there won’t work in IE7 for some reason (no don’t ask me why, I didn’t find any explanation no matter how much googling I did).... Read More

Creating Help with Flash and ActionScript3

Monday, January 19th, 2009

I just finished making the support document for Dive Admin, I did it in Flash by replicating the interface of the application and adding a lot of elements explaining it, as well as navigational interactivity. This approach should be easier for the end user to work with than having a 200 page manual where the feature he wants help with is on page 143, paragraph 5.... Read More

Changing Flash stage size from ActionScript

Sunday, January 4th, 2009

Changing the stage size can’t really be done in a pure sense just with AS, unfortunately.... Read More

Menu and Banner from XML with AS3 and Flash CS3

Tuesday, December 23rd, 2008

I’ve just finished remaking the menu/banner of Sea Bees, one of the bigger diving shops here in Phuket. ... Read More

Flash 10 and jQuery multi-file uploader

Friday, October 31st, 2008

So Flash Player version 10 won’t stand for any automatically opened file select windows, there goes our flash uploader down the drain, the article is still good as a reference though if something here is unclear, it’s much more verbose. It’s just that the old logic needs a button and I’m not going to learn how to do that in Flex at the moment. And the whole point of that scheme was to make the uploader invisible and therefore design agnostic. Oh dear Adobe people, what on earth are you thinking?... Read More

Simulating Gravity in Flash

Thursday, August 14th, 2008

I’ve got some kind of compulsory disorder. Sometimes I just have to do some simulations, play with physics and get a break from normal web development. I haven’t had an “episode” in over two years now (view the last one), but a few days ago all this pent up need just had to be released and this tutorial is the uber-geeky result. Just touch the spheres with the mouse pointer, not too fast or you’re gonna break out of orbit!

... Read More

Limiting character types in input fields with Actionscript 2

Monday, August 4th, 2008

This is a small snippet that will force the input in a named input field (in our case it’s input_txt) to be numbers only.... Read More

AMFPHP in Flash CS3 with AS3 - jQuery.post style

Monday, July 28th, 2008

The other day I was asked to demonstrate how to setup AMFPHP in Flash. As I’ve already done it many times in Flash 8 with little or no problems I felt relaxed about it. The machine I was to demonstrate on only had Flash CS3, no problem I thought and fired up an Actionscript 2 project. The extra components you are required to install in Flash 8 are probably already integrated by now I thought and copy pasted code from an older project, hit ctrl-enter and got a debug window complaining about a lot of missing classes. Apparently you have to copy that stuff from somewhere in the Flash 8 program dir tree and put in the corresponding place in the Flash CS3 dir tree. We didn’t have any Flash 8 installed though…


So I started a new AS3 project instead and started googling my ass off for a quick solution (the designers I were demoing to started getting restless), which I found in the form of Oscar Trelles‘ nice AS3 Flash remoting example. I followed the tutorial but no it didn’t work. The staging server had .htaccess with password protection that ruined things this time. I had to give up, I told them I would get back to them and here I am!... Read More