StopWatch class - code snippet
August 23rd, 2009
a simple StopWatch class to measure how long something takes.
read full article and see source code
also on http://haxe.org/doc/snip/StopWatch
commaFormat(num:Float):String; code snippet
August 23rd, 2009
added another code snippet to http://haxe.org/doc/snip/commaFormat
that commafies a number such as really high scores
converts 123456 to “123,456” and 1234567890.12345 to “1,234,567,890.12345”
jumpAround(audio_level); #songsInCode
August 21st, 2009
Made another #songsInCode in haXe
much funner this time.
if(audio_level > threshold){
house_of_pain[j].jumpAround(audio_level);
}
You need Flash 10 to view the awesome. It’s a free and fast upgrade.
let it load, press play.
House of Pain - Jump Around (Deadmau5 remix)
read more to see the source code and result in action…
ringAround(rosies); #songsInCode
August 21st, 2009
Felt like making a #songsInCode in haXe
and just for fun actually writing the code and compiling it to see how it might look.
ringAround(rosies);
for(girl in girls){
girl.pocket.fill(new Posies());
}
ashes+=2;
for(girl in girls){
girl.fall(DOWN);
}
read more to see the source code and result in action…
Insanely Twisted Shadow World - Game Trailer
August 20th, 2009
You need Flash 10 to view the awesome. It’s a free and fast upgrade.
do i even need to write about this? watch the video and you’ll see why it deserves to be posted here.
Amazing flash Interactive Music Video
August 20th, 2009
I rarely post other people’s work on this site unless it’s just too amazing to not talk about…
…this is one of those times.
music_video_loader.addEventListener(Event.COMPLETE, jaw_drops);
Flash Actionscript3 Tutorial : Animated Slideshow
August 20th, 2009
Using TweenLite to generate the animations for a simple flash slideshow built using Flash IDE.
my goal was was to create a looping slideshow as simply as possible. least amount of steps. and with some room to expand on.
this tutorial is made to help understand the logic and some basic moving parts involved in a general slideshow.
it certainly won’t fit all slideshow needs, especially ones with lots of slides, or with constantly changing slides.
source files available.
epic ending… srsly.
deepTrace for haXe flash9/10
August 19th, 2009
posted a code snippet on http://haxe.org/doc/snip/deeptrace?lang=en
a useful tool i use sometimes to see a displayObject’s display list in a tree format with optional parameter to see extra fields.
deepTrace(myObject,[“x”,”y”]); will trace something like
[object myObject] -> ( x : 560; y : 150 )
[object MovieClip] -> ( x : 0; y : -50 )
[object Shape] -> ( x : 0; y : 0 )
[object Shape] -> ( x : 0; y : 0 )
[object Sprite] -> ( x : 200; y : 100 )
[object Sprite] -> ( x : 100 ; y : 300 )
[object SimpleButton] -> ( x : -10 ; y : 100 )
[object TextField] -> ( x : -40 ; y : -30 )
[object Sprite] -> ( x : 300 ; y : 300 )
[object SimpleButton] -> ( x : -10 ; y : 100 )
[object TextField] -> ( x : -40 ; y : -30 )
[object Sprite] -> ( x : 200 ; y : 300 )
[object CustomButton] -> ( x : -37 ; y : 100 )
[object Shape] -> ( x : 0; y : 0 )
[object TextField] -> ( x : 0 ; y : 0 )




