# Tutorial question: 'Transitions between external SWFs'

**URL:** <https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432>\
**Category:** Uncategorized\
**Created:** [May 5, 2004, 2:36pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432 "2004-05-05T14:36:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hip\_van\_Binnen](https://avatars.discourse-cdn.com/v4/letter/h/edb3f5/32.png) [@Hip\_van\_Binnen](https://forum.kirupa.com/u/Hip_van_Binnen)\
**Post date:** [May 5, 2004, 2:36pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/1 "2004-05-05T14:36:43Z")

</div>

I just read the ‘Transitions between external SWFs’ tutorial. Now I have a question… in the example used, the buttons for switching between SWF movies are part of the movie. Is it also possible to control/navigate between movies from outside of the Flash file?

I mean, I want to place my navigating buttons in HTML. Is that going to be a problem?

---

<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:** [May 5, 2004, 2:46pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/2 "2004-05-05T14:46:59Z")

</div>

no, it is not going to be a problem, but you would have to use flashvars to “communicate” with the swf that makes the transitions.  
see [http://www.kirupaforum.com/forums/showpost.php?p=473066&postcount=4](http://www.kirupaforum.com/forums/showpost.php?p=473066&postcount=4)

---

<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:** [May 5, 2004, 3:14pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/3 "2004-05-05T15:14:15Z")

</div>

Okay, that looks pretty easy…

However, I need to do two things:

1. Tell the current movie1.swf to ‘fade out’ (goto frame xx)
2. After movie1.swf faded out, I need to load movie2.swf/movie3.swf/movie4.swf/… etc. depending on the button I clicked.

How can I make the browser do these two things? If I read your post correctly, it only takes care of step 1. Or am I missing something?

---

<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:** [May 5, 2004, 3:25pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/4 "2004-05-05T15:25:05Z")

</div>

hmmm… I don’t think flashvars is what you are looking for ☹ sorry  
what you want can most likely be done with javascript, but I have no experience with javascript and flash working toghether, so i wouldn’t know…  
this might be something:  
[http://www.kirupaforum.com/forums/showthread.php?t=20098&highlight=javascript+variable](http://www.kirupaforum.com/forums/showthread.php?t=20098&highlight=javascript+variable)

[http://www.kirupaforum.com/forums/showthread.php?t=3209&highlight=javascript+variable](http://www.kirupaforum.com/forums/showthread.php?t=3209&highlight=javascript+variable)

[http://www.kirupaforum.com/forums/showthread.php?t=41281&highlight=javascript+variable](http://www.kirupaforum.com/forums/showthread.php?t=41281&highlight=javascript+variable)

---

<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:** [May 5, 2004, 3:29pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/5 "2004-05-05T15:29:16Z")

</div>

Each swf loads \_root.curMovie + “.swf” when it reaches it’s last frame. So what i guess you’d have to do is create the functions that are normally on the buttons on the main timeline (edited where necessary), and then call those functions through JavaScript. However, I wouldn’t know how to do call a function in flash from JavaScript. Maybe you could do it with the example from the first thread Kalliban linked to and the watch method … so that if the variable changes (through JS) it executes a function (the button function).

---

<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:** [May 5, 2004, 3:31pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/6 "2004-05-05T15:31:37Z")

</div>

hmm, no idea how to do it but i read you can communicate with javascript and flash using the fscommand. NO idea how to do it though…

---

<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:** [May 5, 2004, 3:32pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/7 "2004-05-05T15:32:57Z")

</div>

yeah, as voets said, you would have to make a javascript function that changes the \_root.curMovie variable. I’ll experiment a little, to see what I can do 😉  
I’ll keep you updated

---

<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:** [May 5, 2004, 3:34pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/8 "2004-05-05T15:34:24Z")

</div>

> [@iloveitaly](#):
>
> hmm, no idea how to do it but i read you can communicate with javascript and flash using the fscommand. NO idea how to do it though…

I know how to execute JavaScript function from Flash using fscommand, but I don’t know how to execute Flash functions from JavaScript … lemme search and see if I can find anything.

---

<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:** [May 5, 2004, 3:52pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/9 "2004-05-05T15:52:55Z")

</div>

Thanks guys… really appreciate your help! I’ll keep watching this thread.

---

<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:** [May 5, 2004, 4:06pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/10 "2004-05-05T16:06:30Z")

</div>

I think this says it all… 😃  
[http://www.macromedia.com/support/flash/ts/documents/flash\_to\_flash\_comm.htm](http://www.macromedia.com/support/flash/ts/documents/flash_to_flash_comm.htm)

---

<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:** [May 5, 2004, 4:19pm UTC](https://forum.kirupa.com/t/tutorial-question-transitions-between-external-swfs/109432/11 "2004-05-05T16:19:41Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?t=55254](http://www.kirupaforum.com/forums/showthread.php?t=55254)  
[http://www.macromedia.com/support/flash/ts/documents/set\_variables.htm#javascript](http://www.macromedia.com/support/flash/ts/documents/set_variables.htm#javascript)  
😉
