# Loading Movies Into Target - question

**URL:** <https://forum.kirupa.com/t/loading-movies-into-target-question/25015>\
**Category:** flash\
**Created:** [July 8, 2003, 3:42pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015 "2003-07-08T15:42:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![PromoGuy](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@PromoGuy](https://forum.kirupa.com/u/PromoGuy)\
**Post date:** [July 8, 2003, 3:42pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/1 "2003-07-08T15:42:49Z")

</div>

I loved the tutorial on [Loading Techniques](http://www.kirupa.com/developer/mx/loading.htm). It was just what I was wanting to learn.

But as all good tutorials do, it left me wanting to do more. So, I have a question I hope someone can help me with.

\*\*1. The tutorial shows how to use a button to start the external movie. But is there a way to add a “pause” or “stop” function & button to control the loaded movie? \*\*

The SWF that I loaded into the target is an endless loop (an unfortunate function of the capture software used to generate it). So, I’d like to find a way to stop it. Ideally, I’d like to have it just stop after one cycle with a “stop” keyframe.

But a stop or pause button function of some sort would be fine (or a stop button that would actually just clear the stage maybe).

I figure there is not a way to control the loaded swf, since the movie isn’t imbedded into the flash movie. If that is the case, any suggestions?

Thank you.

---

<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:** [July 8, 2003, 3:51pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/2 "2003-07-08T15:51:03Z")

</div>

If you want it to stop after 1 cycle, just add a stop(); action on the last frame of the external swf.

---

<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:** [July 8, 2003, 4:07pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/3 "2003-07-08T16:07:10Z")

</div>

I wish I could, but the 3rd party software that generatred the swf to which I am linking does not generate the FLA. So I can’t add a stop to it (or at least I don’t know how I could).

So, while I figured there weren’t many options, I just wanted to ask.

---

<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:** [July 8, 2003, 4:12pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/4 "2003-07-08T16:12:28Z")

</div>

Ok, you can set a stop button. container\_mc is the movie where the external swf is loaded into. Im assuming your placing this container\_mc on your main movie.  
[AS]on(release){  
\_root.container\_mc.stop();  
}[/AS]

---

<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:** [July 8, 2003, 5:20pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/5 "2003-07-08T17:20:50Z")

</div>

The stop function added to a button worked great. Thank you!

Would there be a way to pause and unpause the linked swf as well?

---

<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:** [July 8, 2003, 5:24pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/6 "2003-07-08T17:24:00Z")

</div>

Yes. Use another button with the action[AS]on(release){  
\_root.container\_mc.play();  
}  
[/AS]

---

<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:** [July 8, 2003, 9:31pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/7 "2003-07-08T21:31:11Z")

</div>

Thank you for the help. I learned a lot in Flash today with these tips and forming them to work in my project.

It won’t be grand, but I will post a link to it when I’m done if anyone wants to see.

Take care.

---

<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:** [July 9, 2003, 2:09am UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/8 "2003-07-09T02:09:21Z")

</div>

You’re welcome 🙂

---

<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:** [July 9, 2003, 2:35am UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/9 "2003-07-09T02:35:19Z")

</div>

btw… u ever tried importing the swf??

-Aditya  
:thumb:

---

<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:** [July 9, 2003, 5:16am UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/10 "2003-07-09T05:16:47Z")

</div>

No, I didn’t try that. But then again, I’ve no idea HOW to do that.

Does it matter that I don’t have a FLA for the SWF I want to use? The 3rd party software only generates the SWF.

I’d sure like give this a try if someone could point me to a tutorial or give me some direction on how to modify the tutorial I used (linked above) - I am still quite the n00b at Flash.

Thank you.

---

<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:** [July 9, 2003, 5:20am UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/11 "2003-07-09T05:20:14Z")

</div>

On your main movie, hit Ctrl+F8 to create a new movie clip.  
Go to file/import and select the swf. Now the swf will be placed in the movie clip timeline. You can now set an stop action on the last frame of this movie clip.

---

<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:** [July 10, 2003, 4:15pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/12 "2003-07-10T16:15:32Z")

</div>

Thanks! I will give that a try.

Appreciate all the feedback.

---

<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:** [July 10, 2003, 4:23pm UTC](https://forum.kirupa.com/t/loading-movies-into-target-question/25015/13 "2003-07-10T16:23:01Z")

</div>

No problema :beam:
