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 ...


Sandy 3.1 haXe Spectrum Analyzer (Disco variation)

March 12th, 2009

This variation adds random colors when the spheres pulsate.
same fps and memory displays exist, they are just hidden, use the keys to view them if you want.
also using haXe compiler flag -D SANDY_USE_FAST_MATH

Read more ...


Sandy 3.1 haXe FastMath Spectrum Analyzer

March 10th, 2009

haXe 2.02 FAST_MATH
Sandy 3.1 haXe sandy_use_fast_math 2.02 benchmark

Read more ...


Sandy 3.1 accident for MacPro

March 10th, 2009

WARNING, DO NOT VIEW THIS PAGE IF YOU HAVE A SLOW MACHINE

This version is a special experimental accident that i decided to post because my iMac bogged down to < 8 fps

i want to see how a MacPro scores

Read more ...


haXe flash flex benchmarks on Sandy 3.1

March 10th, 2009

I've setup more tests to compare the new Sandy 3.1 3D engine compiled on flash, flex, and haXe.

thanks to Russell Weir (damonsbane) and cyanescent for porting the new Sandy as3 classes to haXe

I added some more controls for fun and benchmarks, and a few new songs to test out.
you can change the sphere rotation and orbit speed, and toggle the benchmark displays visiblity and background color

please post your scores in the comments.

Flash 10 plugin is required to view these demos. upgrade here http://get.adobe.com/flashplayer/

Flash 10 (Flash ide)
Sandy 3.1 Flash 10 benchmark

Flex 3 (mxmlc)
Sandy 3.1 Flex 3 benchmark

haXe 2.02
Sandy 3.1 haXe 2.02 benchmark

haXe 2.02 FAST_MATH
Sandy 3.1 haXe sandy_use_fast_math 2.02 benchmark


Sandy 3.1 haXe Spectrum Analyzer

March 10th, 2009

haXe 2.02
Sandy 3.1 haXe 2.02 benchmark

Read more ...


Sandy 3.1 Flex Spectrum Analyzer

March 10th, 2009

Flex 3 (mxmlc)
Sandy 3.1 Flex 3 benchmark

Read more ...