# F5-actionscript/Javascript

**URL:** <https://forum.kirupa.com/t/f5-actionscript-javascript/91230>\
**Category:** Uncategorized\
**Created:** [September 30, 2003, 7:28pm UTC](https://forum.kirupa.com/t/f5-actionscript-javascript/91230 "2003-09-30T19:28:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![borispc](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@borispc](https://forum.kirupa.com/u/borispc)\
**Post date:** [September 30, 2003, 7:28pm UTC](https://forum.kirupa.com/t/f5-actionscript-javascript/91230/1 "2003-09-30T19:28:30Z")

</div>

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](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:
