Hi,

we would appreciate it if you could upload the actual file instead of just posting the huge code here :) It's difficult to understand and debug the code without seeing your FLA file.