getUrl with javascript breaks when publishing for Flash Player 8


I want to use getUrl to display a javascript alert. I’ve found an example that works perfectly, by using getUrl(“javascript:alert(‘hello world’)”);
But that example is published for Flash Player 6, and the rest of my movie requires FP8. And if I go to publish settings, and select Flash Player 8 as target, the javascript is no longer executed.

It’s not about the getUrl changes in Flash Player 9, I’ve also tested with Flash Player 8.

If you want to try for yourself, the example I’m talking about is from
The attachment of the 3rd post.