Icon

Sylvain Combes

g33k stuff & notes

How to install pdt aptana and FDT 5

Step 1, PDT : Download PDT here, extract the content and put it somewhere on your disk

Step 2, Aptana : Launch your brand new PDT and go to Help>Install New Software click add, fill the fields with ‘Aptana’ and this url http://download.aptana.com/studio3/plugin/install , click ok, check the checkbox and install. When you’re prompted to restart eclipse, restart

Step 3, adding java stuff for FDT 5 requirements : Again return to Help>Install New Software click Add and enter p2 for the name and this repo (depend on your eclipse version, mine is indigo) : http://download.eclipse.org/releases/indigo/ ,click ok and look for Eclipse Java development tools in Programming Languages, check and install restart if you’re asked for.

Step 4 FDT5 : Help>Install New Software : Add, enter FDT5 in name and http://fdt.powerflasher.com/update/fdt5/ for the location, click ok check the checkbox and install, restart eclipse

Step 5 : Enjoy your pdt + aptana + fdt eclipse combo :)

ZendAMF

At work i have to do some AMF3 delivered through php, so i finally have an excuse to have a look at ZendAMF.

First i follow the classic implementation which is pretty simple, you can found it here. It works well and i found no problem using it.

Then (thanks to my geek friend max) i read articles about how to deliver AMF through HTTP requests on the cool Rob[on]code blog

The main advantage i like in this approach is the possibility to have a progression info, cool.

The other cool thing is that rob offer us two articles, one with php sending AMF to flash and the other flash sending AMF to php.

Everything is very well explained and gave us example with custom data format aka class mapping.

There are some tips revealed that can save your day, like adding a newline in your php to have correct interpretation in flash or avoid URLVariables in flash, or how to get flash AMF from php with this :

1
2
3
4
// Get the contents from the stream
$amf = file_get_contents('php://input');
// Remove first byte (new line)
$amf = substr($amf, 1);

You can found the articles on the Rob[on]code blog here :

Category