Sylvain Combes

Icon

g33k stuff & notes

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 :

MultiLink

Finally an update : another free open source flash extension just for you !

MultiLink extension link movieclip to a class. The linkage matches the selection you made in the flash ide (on stage or in the library).

To learn more about this extension and to download it :
Go grab MultiLink flash extension now !

PS : Yes it’s been a looooong time and nothing new on this blog. I’ll try to change that and publish content more often.

Instances Grab

One day i just can’t bear anymore to declare manually all my instances form the flash ide in my classes.

Lazy as i am, i created an extension to manage this issue. With this extension i can now just select my instances launch the command and paste in my classes without the painful and time-costing manual method.

Now i just can’t live whithout it :)

You can get an use freely Instances Grab, i hope it can be as useful as it is for me :
Go get Instances Grab now !

Happy coding !

Category