Yes, that will surely solve your problem. Using ActionScript is usually the best solution for problems with built-in elements. I often had problems with buttons and checkboxes.