# Passing URL Vars to flash after embed object fix?

**URL:** https://forum.kirupa.com/t/passing-url-vars-to-flash-after-embed-object-fix/186732
**Category:** flash
**Created:** [April 24, 2006, 7:36am UTC](https://forum.kirupa.com/t/passing-url-vars-to-flash-after-embed-object-fix/186732 "2006-04-24T07:36:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bodom78](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@Bodom78](https://forum.kirupa.com/u/Bodom78)
#### Post date: [April 24, 2006, 7:36am UTC](https://forum.kirupa.com/t/passing-url-vars-to-flash-after-embed-object-fix/186732/1 "2006-04-24T07:36:11Z")

</div>

Hey Guys,

I have a Mambo site with a flash nav, I wwas passing the item ID to flash so I could hightlight the currrent page but after applying the adobe fix, it no longer works and I can;t figure out how to pass the item id to flash now.

My old solution before the fix was

```php

<script language="JavaScript" type="text/javascript">
	movieURL = document.location.toString();
	movieURL = movieURL.split("?");
	movieURL = 'templates/common_files/images/menu.swf?' + movieURL[1];
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="914" height="42">');
	document.write('<param name="movie" value="' + movieURL + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="' + movieURL + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="914" height="42" wmode="transparent">');
	document.write('</embed></object>');
	</script>

```

which allowed me to get the ID from the url and use case statments to highlight the correct button highlight.

Anyone knwo of a way to encorporate this with the Adobe embed solution.

Cheers
