Archives

Archive for February, 2005

JPSPAN: Remoting for Javascript?

( News and Remoting )

Communication between Javascript and the server-side is getting more and more popular with the recent dHTML apps by Google getting a lot of press. Just noticed this toolkit for communicating between PHP and Javascript in a seemless fashion. It handles serialization of objects between Javascript and PHP in a transparent fashion, is object-oriented, allows you […]

Sprintf class for AS2 now available!

The wonderful sprintf function, which first appeared in C, often-used in PHP, allows you to format numbers, strings and dates very easily. Nate Cook implemented a version in Actionscript 1.0 a while ago, and I noticed it didn’t work in AS2, so I created a wrapper class that Nate very quickly posted on his site. […]

A thought on Flash tooltips and accessibility

I use tooltips in many of my rich internet apps and I’ve been thinking that it would be a useful feature of the Flash IDE to be able to set tooltips for certain objects at design time. Now the accessibility panel has a ‘description’ field that might just do the job. Theoretically you could create […]

If I break AMFPHP on purpose, will you be mad?

( Remoting and PHP )

Dates are a pain to handle in AMFPHP 0.9b. The timezone setting is lost in the conversion from Flash date to PHP int. But the timezone is very important to know since without it we can’t figure what was the time on the client’s machine. A typical problem is choosing a date using the DateField […]

Randomness, Keith Peters’ experiments and entropy

Keith Peters has done some experiments recently on randomness and it inspired me to give you a little theoretical background on the subject. One of the most impressive experiments uses a sum (Math.random() + Math.random() + …)/n to create a distribution with more stuff in the centre (near 0.5) than on the sides. Why this […]