# Script help please!

**URL:** https://forum.kirupa.com/t/script-help-please/33536
**Category:** Uncategorized
**Created:** [October 20, 2003, 8:49pm UTC](https://forum.kirupa.com/t/script-help-please/33536 "2003-10-20T20:49:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jondj24](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jondj24](https://forum.kirupa.com/u/jondj24)
#### Post date: [October 20, 2003, 8:49pm UTC](https://forum.kirupa.com/t/script-help-please/33536/1 "2003-10-20T20:49:49Z")

</div>

i have my loaded .swf buttons loading ‘movie1’ and ‘movie2’. both ‘movie1’ and ‘movie2’ have a tween in frames 1-5, which is a box that slides open and is stopped. in frames 6-10 the box slides backwards in the opposite and dissapears.

i would like it if ‘movie1’ is open and the user clicks the button for ‘movie2’, ‘movie1’ plays 6-10 and then loades ‘movie2’ and vice versa. i just don’t a script for this function…can someone help me? i attached the files to this post.

thanks.  
jondj24

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 21, 2003, 12:06am UTC](https://forum.kirupa.com/t/script-help-please/33536/2 "2003-10-21T00:06:50Z")

</div>

what you need to do is in you button to play movie2 have:  
[AS]  
telltarget(movie1)  
Play()  
[/AS]

Then in the last frame of movie one have:  
[AS]  
telltarget(movie2)  
Play()  
[/AS]

or something like that. Sorry, I’m too lazy to download your .fla and its best If ya learn yaself

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2003, 3:19am UTC](https://forum.kirupa.com/t/script-help-please/33536/3 "2003-10-23T03:19:54Z")

</div>

why dont you just have the movies in the same file as your buttons?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 23, 2003, 12:50pm UTC](https://forum.kirupa.com/t/script-help-please/33536/4 "2003-10-23T12:50:47Z")

</div>

the example i am giving you is just a quick mock up. the site that i am working on is huge and loading external files is a big help. is there any hope?

thanks.
