the script syntax is based on the c language but with a lot taken out the swf bytecode machine is just too simpleminded to do a lot of things we might like for instance we cant implement function calls without a tremendous amount of hackery because the jump bytecode has a hardcoded offset value no pushing your calling address to the stack and returning every function would have to know exactly where to return to 