I also read somewhere that a sercurity update might have changed how this functionality will work.
Sorry I've misunderstood.
I've tried using:
but I'm getting errors:
think I must be missing something?
you can write the function in the HTML page and assign a name to it
then you use the standard syntax in your flash content