Author Archives: mark
HTC Incredible screen shot
Here is the screen shot of my HTC Incredible with the Sense UI 2.0, which allows 7 panels for the home screen. The 3 panels on the left of the center home screen has all the most used widgets. Starting … Continue reading
Goodbye apple, hello android incredible
Flash developers unite. Ditch apple iPhone and get the Android.
The ultimate chair – Herman Miller Embody
Took the executive chair back to costco and replaced it with the Herman miller embody chair. As comfortable as the costco chair looked, it is not suitable for working. Executive chairs are inclined slightly backwards so after few hours on … Continue reading
Actionscript 3: Detect hidden movieclip on stage overlapping buttons
If you run into issues with an invisible display object covering your button but you don’t know where it is, this handy code snippet I got from my co worker Kris can trace it out for you. Just drop it … Continue reading
Foxtrot – Recognizes Ipad’s lack of flash
Brilliant comic strip from Foxtrot shows a feature lacking in the Ipad in a funny way.
Actionscript 3: Using modulos to wrap a moving movieclip
A clean way to wrap a movieclip wrapping around the stage is to use modulos var widthOfStage:Number = stage.stageWidth; var velocity:uint = 1; myClip.x = (myClip.x + velocity) % widthOfStage; That part is easy. The difficult part is handling moving … Continue reading
Actionscript 3: Bold not working on external fonts in a font family.
There was an issue with compiling external font swf made up of a font family in flex builder. For example when trying to generate a set of AkzidenzGrotesk regular, light, bold and black the bold will now show up. Here … Continue reading
Actionscript 3: Get ratio value between two numbers
Simple utility for getting a ratio between two numbers. Thanks to my friend Jamie for the method. private function returnValue(value:Number, actualMin:Number, actualMax:Number, ratioMin:Number, ratioMax:Number):Number{ return (((value – actualMin) / (actualMax – actualMin)) * (ratioMax – ratioMin)) + ratioMin; } Here … Continue reading
Actionscript 3: Detect the difference between a Mouse click and a Mouse drag.
How do you tell if the user clicked or dragged in your flash app? Take a look: private var time:uint; function onMouseDown(event:Event):void { time = getTimer(); startDrag(); } function onMouseUp(event:Event):void { var diff = getTimer() – time; if (diff < … Continue reading
Three monitor mac pro work station
Mac pro got upgraded to 3 monitors. 24″ in the middle and 2 19″ wide screen on the side.