# Not sure how to do this?

**URL:** https://forum.kirupa.com/t/not-sure-how-to-do-this/216160
**Category:** Uncategorized
**Created:** [February 14, 2007, 4:57am UTC](https://forum.kirupa.com/t/not-sure-how-to-do-this/216160 "2007-02-14T04:57:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bdd](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bdd](https://forum.kirupa.com/u/bdd)
#### Post date: [February 14, 2007, 4:57am UTC](https://forum.kirupa.com/t/not-sure-how-to-do-this/216160/1 "2007-02-14T04:57:17Z")

</div>

Hi,

I have a button in an external swf file… this swf is called in a container in the main flash file… once the button is clicked i need it to run some code that i have in the main flash file.

i assume you use listeners?? i have looked at examples and cant figure out how to do it… tried out a few things but no good…

essentially what i need is when you click the button in the external swf it is like you are clicking the next button in my main flash file…

help please…
