How to execute JavaScript functions from Actionscript 2 and 3?

There is something called JSFL. AKA. JavaScript for Flash.

I am sure that will help. Look up help for that and you should be up and running in no time.
'
Cheers!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.