Flash to Javascript

hi,

I want to communicate from flash to javascript. I have made one button in flash and given the following script:
on (release)
{
getURL(“javascript:confirm(‘is this is ok’)”);

}

When I open it in the browser and clik on the button, it is displaying confirm box and if you click ok button will get disappeared and it will return the text to true.

Can anyone solve my problem.

I am attaching Fla as well as html file.

If anyone knows the solution please mail me to bsprathapsimha@rediffmail.com,

Thanking you,
Prathap

try this - (you’ll need to export the fla to “delete.swf”)

TD

try this instead:


on(release) {
      getURL("jávascript: void(confirm('is this ok'));");
}

Sorry m_andrews - that does not work. Nice try though.
TD

did you copy and paste the code I posted?

if so it wouldn’t work because I spelt jávascript with a ‘á’ rather than ‘a’ because for some reason if you post the word jávascript on these forums it gets replaced with the word javascript

anyway, the code I posted works, I tested it myself before posting

hi,

Thank you very much,

Now the problem is solved.

I have one moer similar doubt. How to get data from javascript to flash.