# Passing JavaScript problems

**URL:** <https://forum.kirupa.com/t/passing-javascript-problems/128224>\
**Category:** Uncategorized\
**Created:** [November 10, 2004, 4:14pm UTC](https://forum.kirupa.com/t/passing-javascript-problems/128224 "2004-11-10T16:14:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc0047](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@marc0047](https://forum.kirupa.com/u/marc0047)\
**Post date:** [November 10, 2004, 4:14pm UTC](https://forum.kirupa.com/t/passing-javascript-problems/128224/1 "2004-11-10T16:14:24Z")

</div>

I have a movieclip button called ‘theimage’ which is constantly being updated to launch a getURL with two different functions at separate times. Those two JavaScript functions are called ‘oldmovieplayer’ and ‘video’.

So far it works with one catch: If the actions are being launched by _only_ the ‘oldmovieplayer’ or _only_ the ‘video’, it will perform the JavaScript function. However, if it is being updated to call these two JavaScript functions in a mixture, only the first JS function will perform.

‘theimage’ movieclip button is being updated by six buttons which tell it to gotoAndStop on 6 frames. These 6 frames update the ‘theimage’ movieclip button with the two different getURL(“javascript:x”); commands.

I am not sure if the problem is arising because:

1. I am setting up the way Flash updates variables in an inefficient and illogical manner.

2. The AS syntax that I am using is incorrect

3. The JS syntax that I am using is incorrect

4. or other issues that I am not aware of

Any suggestions or tips would be helpful.

You can also download the FLA, SWF, and HTML here:  
[http://you.minus.ws/Close/features-break1.zip](http://you.minus.ws/Close/features-break1.zip)

thanks.
