# Is there a way to add a javascript onclick event from an imagemap to a flash button?

**URL:** <https://forum.kirupa.com/t/is-there-a-way-to-add-a-javascript-onclick-event-from-an-imagemap-to-a-flash-button/299490>\
**Category:** flash\
**Created:** [November 5, 2009, 5:51pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-add-a-javascript-onclick-event-from-an-imagemap-to-a-flash-button/299490 "2009-11-05T17:51:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Post date:** [November 5, 2009, 5:51pm UTC](https://forum.kirupa.com/t/is-there-a-way-to-add-a-javascript-onclick-event-from-an-imagemap-to-a-flash-button/299490/1 "2009-11-05T17:51:24Z")

</div>

I have an image map with coordinates and event onclicks. I am not concerned about the image map coordinates as much as i am with the onclick event which is what triggers the parent application ( which seems to only recognize the event formatted in this way:

\<area shape=“circle” coords=“169,380,16” href="#" alt=“221” onclick=“top.changeView(’[Shared] CENTER’, ‘221’);” /\>

Is there any way to do this?At least for the onclick part?

I’d like to add the imagemap onclick to a button.

Thanks in advance
