# Flash combined with Javascript

**URL:** <https://forum.kirupa.com/t/flash-combined-with-javascript/94755>\
**Category:** Uncategorized\
**Created:** [November 16, 2003, 1:38pm UTC](https://forum.kirupa.com/t/flash-combined-with-javascript/94755 "2003-11-16T13:38:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)\
**Post date:** [November 16, 2003, 1:38pm UTC](https://forum.kirupa.com/t/flash-combined-with-javascript/94755/1 "2003-11-16T13:38:14Z")

</div>

Hi, I am working on a site essentially built with HTML and javascript but have decided to introduce a flash menu.

Currently I am using a dreamweaver command to make the buttons in the menu change the page shown on rollover.

I want this to happen now with my flash menu, but am not sure what commands I have to add to my flash buttons.

The script at the moment is:

```php
<a href="javascript:;" onMouseOver="MM_swapImage('Image2','','images/button2.gif',1);MM_goToURL

('parent','accueil1.html');return document.MM_returnValue" onMouseOut="MM_swapImgRestore()">

<img src="images/button1.gif" alt="Soci&eacute;t&eacute;" name="Image2" width="24" height="24" border="0" id="Image2"></a>

```

[ That is Javascript not PHP & I have split it up to make it easier to read - there are no breaks in the code.

Should I put that command into a function and then call the function from Flash using getURL?

If thats what I should do please show me how to turn it into a function!

Help, as always, is very much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 16, 2003, 4:28pm UTC](https://forum.kirupa.com/t/flash-combined-with-javascript/94755/2 "2003-11-16T16:28:47Z")

</div>

your probably better off posting in the Server Side forum. Those guys over there a lot more knowledable then just us pure flash people :0
