Archives for May, 2007

More cryptic notes to myself about execution order in Flash


When a nested MovieClip with a custom subclass is created, the order is something like this (I think):

the asset is created (as a “plain” MovieClip: it has its name, dimensions, etc, and can be referred to by name from the containing MovieClip, but it has no methods or properties of its ActionScript class)
its constructor is [...]

Facebook Platform app ideas


I haven’t even started digging into the documentation seriously yet nor have I looked at the sample application, but I’ve been playing with existing Facebook apps and a bunch of ideas are bouncing around in my head. I’m sure a lot of these are pretty common ideas, but since there’s no “search” function that I [...]

Nested MovieClip subclass gotcha in ActionScript 2


[UPDATE: It looks like Colin Moock's excellent book Essential ActionScript 2.0 talks about this very situation, on page 328. His workaround is to use setInterval to poll the object to see if the custom methods/properties have been set up yet.]
This kind of stuff is always a bit difficult to describe clearly, so I might not [...]

Facebook Platform!


I’m pretty excited about the Facebook Platform which was announced yesterday. It goes beyond just “widgets.” It lets you create modules (”Facebook applications”) that run right inside of Facebook. They have access to the user’s data, if users consent to it. Apps can have a box on the user’s profile page, as well as having [...]

MovieClip.curveTo() drawing bug


I’ve recently encountered drawing glitches in MovieClip.curveTo() when using a thick pen.
In the following demo, drag the little circle handle left and right. The text box updates to display the “X” value of the handle.
This movie requires Flash Player 9
The black line is a curve drawn with a one-pixel thick lineStyle. The green line is [...]

JSFL in Flash CS3


I still don’t have Flash CS3, but I was wondering what was changed in JSFL in the new release. The info is on livedocs. Alas, as far as I can tell, there is no event or anything sent when the selection changes, which would be a great help. Oh well. Maybe in the next version? [...]