SWFProfiler haXe'd

January 13th, 2010

I ported over a very good SWFProfiler that a fellow actionscripter wrote over a year ago.
It’s very useful especially to haXe‘rs when all we have to play with is the flash debug player, and for flash game devs to make sure our framerates stay up, and our memory is managed correctly.

I added my own flavor to this already awesome SWFProfiler.

See the demo and download the source.

Read more ...


theRemix invents gravity in haXe (with full source)

October 10th, 2009

I created an experiment to visualize and play with the law of gravity.
The concept of gravity is new, i just created it, attraction occurs between any two masses in space.
I came up with the formula for gravity:
Mass1 × Mass2
Distance²

neat huh?

check out the full haXe source code and play with gravity to create orbits in the full article

Gravity haXe Screenshot

Read more ...


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

Read more ...


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”

read full article and source

Read more ...


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…

Read more ...


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…

Read more ...


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.

Read more ...


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 )

view source code

Read more ...


Turkey haXe game Source Code

April 3rd, 2009

full source for Turkey haXe

requested by Raf

crude source code, never thought anyone else would see it after i finished, including myself.

248 lines in the main class. i also created a few supporting classes for this game that i’ve been reusing ever since, and included in my common library.

Read more ...