# Need a method to call a function

**URL:** https://forum.kirupa.com/t/need-a-method-to-call-a-function/76052
**Category:** Uncategorized
**Created:** [January 14, 2005, 11:06am UTC](https://forum.kirupa.com/t/need-a-method-to-call-a-function/76052 "2005-01-14T11:06:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Intruder](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/intruder/32/883_2.png) [@Intruder](https://forum.kirupa.com/u/Intruder)
#### Post date: [January 14, 2005, 11:06am UTC](https://forum.kirupa.com/t/need-a-method-to-call-a-function/76052/1 "2005-01-14T11:06:50Z")

</div>

HI Guys,

I just want to know if we can execute a function defined in flash in the SWF itself, when we pass on it through some external HTML ( Javascript )

if so How?

more details :

I have an swf… it has a button on click call a JS, it triggers the loading of SWF to a frame in the HTML… I want to get a variable from the 2nd SWF in the 1st.

Anyway out ?
