Even More Recommended ActionScript Resources
If Adobe’s recent clusterfuck hasn’t sent you running into the arms of html5 here are some nice resources you might like…
Read more…
If Adobe’s recent clusterfuck hasn’t sent you running into the arms of html5 here are some nice resources you might like…
Read more…
Following on from part one and two, we now deal with sending messages to specific peers in a large group (where large means 15+ members).
Read more…
Following on from part 1, i have adapted the code to to enable message sending to specific peers (or in p2p jargon, direct routing). I have added a label to display the instances’ (truncated) ID and a dropdown list to select the recipient of the message:
Read more…
Flash Player has provided an API for peer-to-peer communication since 10.1 (and in AIR since 2.0). P2P over the Internet requires some server-side technology (such as Flash Media Server) but on a local network it’s really easy; no server stuff and it can be set up in a few lines of code.
Read more…
I’ve noticed that this question pops up from time to time on forums, and it’s very straight-forward to do; we can use the draw() method of BitmapData to copy any visual element (in this case, the stage itself) into a BitmapData object. Then we can use the getPixel() method to extract the colour.
Read more…
Today, i got a very nice surprise – FedEx delivered my BlackBerry PlayBook. I wasn’t expecting it to arrive for at least another couple of months (ie: when it is officially released in the UK) so a big thank you to BlackBerry.
Read more…
For the un-initiated, Bezier Curves are curves defined by a set of (at least 2) points in space (usually defined by x and y coordinates). By setting appropriate sets of points, complex curving paths can easily be defined. These could be simply drawn to the screen or used as paths for visual objects (eg a game character) to follow.
The simplest case is a curve defined by 2 points – which is just a straight line. As more points are added the curvature can become more complex. The curveTo method of the Graphics class uses a Bezier Curve of 3 points (1 point defined by the current drawing position and 2 points passed into the method).
So, if we want to draw a 2 or 3 point Bezier Curve, Flash can do the work for us, but for 4 points or more we need to handle it ourselves. Also, if we are using a Bezier Curve as a path for an object to follow, we need to know the coordinates at all positions along the path and the drawing methods of Flash wont help us with that.
Read more…
If you’ve read part 1, you already know how to generate sound – just pass some values into a ByteArray when a SampleDataEvent event fires – so now let’s see what kind of noises we can make.
Read more…
If you are an old codger like me, you will (fondly?) remember the sounds of early computer games. They were mostly monotone beeps and bips, but there were some real gems that took the audio experience seriously (think Defender) and used the simple audio abilities in more interesting ways.
Now, just 30 years later, Flash can also generate it’s own sound…
Read more…
I have just added a new ‘stuff‘ page to this blog (see main menu above) where i will be adding assorted bits and pieces that will hopefully be useful to some of you flashers out there.
To get things started, i have added 5 PixelBender filters (when i went through my library of filters i realised that many of them were quite similar or very specific, so once i have discarded the waste i will post some more).
If you’re not familar with PixelBender, i have posted some truly amazing/totally fantastic/incredibly awesome tutorials on the subject, so there’s no excuse not to take my free stuff…