# Retrieve goto destination from mc/button

**URL:** <https://forum.kirupa.com/t/retrieve-goto-destination-from-mc-button/246982>\
**Category:** Uncategorized\
**Created:** [December 17, 2007, 2:40pm UTC](https://forum.kirupa.com/t/retrieve-goto-destination-from-mc-button/246982 "2007-12-17T14:40:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![solos](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@solos](https://forum.kirupa.com/u/solos)\
**Post date:** [December 17, 2007, 2:40pm UTC](https://forum.kirupa.com/t/retrieve-goto-destination-from-mc-button/246982/1 "2007-12-17T14:40:02Z")

</div>

is there anyway to retrieve the command when a movie clip/button is pressed…for example i have a swf that was converted from a pdf page…the goto links in the pdf are converted to goto links in the swf…however, i need to convert those goto commands to geturl, however, i need to retrieve the page number the goto command is calling…

i know this is confusing but to sum it up i need a way to retrieve the command being issued when a movieclip or button is clicked, and call a function if it meets certain parameters…is there a way to do this?
