Hi JC,
Thanks! It works now.
But "funny", every solution brings on a new problem.
When I use this ButtonHelper, button.cursor = "pointer" doesn't work anymore.
I found a work-around by dragging another button instance from the library onto the stage and place it out of sight. Then the pointer on the dynamically added button works also again.
What is the cause and what is the "clean" solotion for this?
Cheers,
Peter
Hi again, Peter!
The ButtonHelper class actually set the cursor property to "pointer" automatically. But it was my fault to not mention that the stage.enableMouseOver() method has to be called first so that mouse over interactions work.
The reason is that when we create a regular Button symbol in Animate, the stage.enableMouseOver call is added automatically in the publishing process. But if there's no Button symbol instance on stage, we have to call it manually ourselves.
I've just edited my second answer including the stage.enableMouseOver call.
I hope it helps.
Regards,
JC