after 1 day of massive debuging i finally figured out where the bug was... it was in swfkit i belive, but not the directory tree... I traced all the directory contents with the trace() command and it seems the trace window has some kind of maxchars limitation. When testing then the trace stops suddenly and so does the script. When built then the program just crashes. After removing all the trace() functions everything worked out just fine! So i belive it is still a swfkit bug but no worry about the directory and file functions... they seem to work jus fine

still guys... you owe me a night full of debugging :P
keep up the good work with swfkit and kill teh bugs
