hi!
I can’t get this to work. I need to call a Javascript function from a button in flash.
the code is as follows:
on (release) {
getURL(“javascript:nameOfMyFunction(‘whatever.html’)”);
}
This is working, so I got the call right. But what I really want to do is have that url (html) to be a variable within flash.
on (release) {
Myurl=“http://www.borispc.com”;
getURL(“javascript:nameOfMyFunction(‘Myurl’)”);
}
This doesn’t work. How do you use a flash variable as a javascript function parameter??? :rd: