Based on toggle menu v0 speed is now calculated via the slider. I also added x position detection to be more precise. inside checks if mouse is inside the X and Y area of the rectangle whereas state calculate precisely if the mouse is approaching the precise pixel we want to hitTest.
state = (isInside) ? Math.min(1, state + speed) : Math.max(0, state - speed);
In a navigation GUI where the mouse needs to have a hit test before toggling a menu, animate in a tween like effect and stay open as long as the mouse is on the menu. I had written an example in actionScript 2 a while back and rewrote it in AS3.
The whole behavior is based more »
The Reflektions Miniml CD has been updated, new work exploring light effects and mesh triangulations and a bunch of new AS3 experiments, new frameworks (Flex) and compiler options (MXMLC) for swf creation. Good to have if you're a serious flash developer or a starting novice. more »
You can download my Flash Forward San Francisco lecture files here.
more »
It's a solid speaker lineup and the location ... as good as it gets, San Francisco. I will be holding one workshop and speaking on Friday. Looking at the schedule, I noticed a nice blend of creative & technical topics. With this type of hype, I don't see any reason why not more »
Adding draggable buttons to the mesh triangulation v6 and we get a fully skew-able image.more »
This experiment is an extension of the mesh triangulation v4, This improves on the sharpness and detail and removes the image stretching by adding more triangle to the bitmap. A drawback is that this increases the amount of matrix calculations. In this case, the bitmap skew more »
This experiment is an extension of the mesh triangulation v4. I added a few dots (you can drag them to distort the bitmap) at the 4 corners of the bitmap, The bitmap skew is a transformation matrix. applied to the top and bottom triangles. Each matrix is seperatly calculated, more »
This experiment is an extension of the mesh triangulation v0 post. I added a few dot objects (you won't see them, they are only variables) at the 4 corners of the bitmap and moved them around a few pixels in order to create a skew. The bitmap skew is applied to the top and more »
Bitmap distortion is not always about triangulation. I had used the chop the image long rectangles technique, and then there was the bitmapData skew to create the I-Tunes cover flow experiment. Triangulation on the other hand, is something that enables me to distort and twits an more »