# How do I trigger a function?

**URL:** <https://forum.kirupa.com/t/how-do-i-trigger-a-function/320242>\
**Category:** flash\
**Created:** [March 17, 2011, 11:41pm UTC](https://forum.kirupa.com/t/how-do-i-trigger-a-function/320242 "2011-03-17T23:41:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Post date:** [March 17, 2011, 11:41pm UTC](https://forum.kirupa.com/t/how-do-i-trigger-a-function/320242/1 "2011-03-17T23:41:51Z")

</div>

I am totally new to AS3. I downloaded a template that is written in AS3 and I am trying to understand the source and make a few changes.

Basically, I would like to trigger a function that is normally triggered by a button press. It is an “additional info” box that shows some text over a picture. I want it to always be displayed.

I found the function in the code.

```auto
private function onInfo(e:ButtonEvent):void
		{
			this.dispatchEvent(new FooterEvent(FooterEvent.INFO));
		}

```

How would I just make this trigger without having to press the info button?

Thanks,  
Rich
