# Call a function in another class

**URL:** https://forum.kirupa.com/t/call-a-function-in-another-class/327270
**Category:** Uncategorized
**Created:** [February 17, 2012, 1:15pm UTC](https://forum.kirupa.com/t/call-a-function-in-another-class/327270 "2012-02-17T13:15:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shava304](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@shava304](https://forum.kirupa.com/u/shava304)
#### Post date: [February 17, 2012, 1:15pm UTC](https://forum.kirupa.com/t/call-a-function-in-another-class/327270/1 "2012-02-17T13:15:19Z")

</div>

[COLOR=#000000][FONT=verdana]Hi, I’m just beginning to learn AS3. Here’s what I intend to do. Create a base movie. Load a footer into the basemovie. When a button is clicked in the footer, I want to call a function in the base movie to load a page on the top.[/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]Please refer to the attachment. Basemovie is the main class, that loads the footer swf. In footer.as, I want to be able to call basemovie.fLoadContent() from the function fClickNext(). [/FONT][/COLOR]

[COLOR=#000000][FONT=verdana]Can someone please guide? Will be really appreciated.[/FONT][/COLOR]
