I am glad i could help.
here is something to remember. I am not sure if this applies to the newer version of haxeflixel, a class name such as Reg will not give an error but will not give the correct result either when written RegReg.variable. so be careful with that. took me weeks to find that bug. :)