Your comments

Dear all, thank you for your replies. The code was okay, when I changed the publish settings to flash 9 it worked (It was on flash 11.2 before). Thank you for your effort.