Today’s quiz is not multiple choice. Instead, your task is to write a function that draws stairs that look like this:
Your function should have the following arguments:
drawStairs(graphics, stairNum);
// you may include additional arguments for size, depth etc..
Feel free to post your solution in the comments.
I’ll post my solution for this in the comments tomorrow. There is also another multiple choice quiz in the pipeline for tomorrow…
BONUS: Try to use as few Graphics class method calls as possible…
Milkyball, a further extension of my Triangle3D experimentation, used in my presentation of end 2009. Click on the shape to see the magic vertexmap.
PixelBender + Flash raytracer. Work in progress.
I posted both of these earlier on my twitter (@unitzeroone), but they didn’t make the blog as of yet. More details in future posts.
Related posts:Triangle3D : Small Flash 10 3D demo. Over the last days I’ve spent some time twittering…
I’m a big fan of ASDoc! It allows you to write simple comments in your AS3 classes, then generate HTML documentation from them. This is great in that it allows developers to maintain source code and documentation simultaneously, and it reduces the overall burden in writing documentation by reading the core API information from the code directly. Unfortunately, the ASDoc tool is command line based, and can be a bit of a pain to work with. That’s where ASDocr comes in…
This quiz is about sound and gradients…
Number of Questions : 5
Difficulty : Medium
Topic : Sound and Gradients
Please go to AS Quiz #7 to view the quiz
Connecting game controllers to the Flash Player is something I experimented in the past with FlashStick and a few years ago with WiiFlash with Joa. One of the limitations with those implementations is that you had to launch a standalone server acting as a gateway between the hardware and Flash. This was usually done through the use of binary socket which usually could bring some headaches due to the Flash Player security restrictions. The server also had to be started manually and this was a required dependency making applications deployment harder…
I started the XMLLoader class a few months back, but didn’t post right away because it needed a lot of cleanup. Not cleanup in the sense of performance improvement or refactoring—it simply used my old programming style, full of dollar signs and underscores. If anyone remembers seeing my code in that form, I deeply apologize for the pain it must have caused your eyes.
So why an XMLLoader class?—because 99% of the data I load with AS3/AIR is in XML format. I stay far from JSON when possible because in AS3 it’s slower than a slug on its day off…
ExternalInterface is the API in the Flash Player that allows you to send data into an embedded SWF once it’s running in a web page. It also allows you to call functions in your web page from an embedded SWF.
There are 3 main players: the DOM (Document Object Model), the…