# A function to load movie (swf)

**URL:** https://forum.kirupa.com/t/a-function-to-load-movie-swf/73862
**Category:** flash
**Created:** [December 21, 2004, 8:22am UTC](https://forum.kirupa.com/t/a-function-to-load-movie-swf/73862 "2004-12-21T08:22:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![apple](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@apple](https://forum.kirupa.com/u/apple)
#### Post date: [December 21, 2004, 8:22am UTC](https://forum.kirupa.com/t/a-function-to-load-movie-swf/73862/1 "2004-12-21T08:22:41Z")

</div>

I want to write a function that will load movie when I click on the buttons from the menu. For example, I have a menu with four buttons and four movies with the name m1a1.swf, m1a2.swf, m2a1.swf and m2a2.swf.  
The main purpose for this function is I only have to call the function instead of write the same action script agains for four time.

So, what should i do to solve the preolem and I hope some could help me. Thanks.
