Not sure if this a Flash or HTML Problem, thinks it's Flash

Ok I have a button that has this AS


on(release){
	getURL(_root.htmlURL,_root.htmlTarget);
}

Now in Dreamweaver I add these parameters to the flash movie


<object classid="clsid:*****longnumber" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="29" height="18">
                                            <param name="movie" value="Buybutton.swf">
                                            <param name="quality" value="high">
                                            <param name="htmlURL" value="http://www.escapegrace.net">
                                            <param name="htmlTarget" value="_blank">
                                            <embed src="Buybutton.swf" width="29" height="18" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" htmlurl="http://www.escapegrace.net" htmltarget="_blank"></embed>
                                          </object>           

Now everytime I click the button it gives me an undefined error. I’ve tried changing the AS to a static link and it seems to work but for some reason the AS or the parameters do not seem to be working.

If anyone has any insight I would be pumped.

Case