# What about control loop of extload swf?

**URL:** <https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021>\
**Category:** Uncategorized\
**Created:** [August 15, 2004, 1:09am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021 "2004-08-15T01:09:45Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdl](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jdl](https://forum.kirupa.com/u/jdl)\
**Post date:** [August 15, 2004, 1:09am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/1 "2004-08-15T01:09:45Z")

</div>

I’ve lost the original fla for my swf and i never put a stop on it before creating it. can i stop it’s looping without access to it’s original fla?

---

<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:** [August 15, 2004, 1:24am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/2 "2004-08-15T01:24:39Z")

</div>

I believe so…It’s like stopping a movieClip, i guess:

```php
 
_root.movieClip.stop();

```

So i guess it depends how you import the swf…maybe someone else can expand on that 😛

---

<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:** [August 15, 2004, 1:29am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/3 "2004-08-15T01:29:36Z")

</div>

> [@jdl](#):
>
> I’ve lost the original fla for my swf and i never put a stop on it before creating it. can i stop it’s looping without access to it’s original fla?

if you have a decompiler it might be easier, but you can try this.  
load the movie into another movie  
createEmptyMovieClip(“paper”, 1);  
loadMovie(“test.swf”, “paper”);

function checker() {  
trace(paper.\_currentframe);  
}  
myinterval = setinterval(checker, 20);

if it is only looped on the maintimeline, then this will find which is the last frame and you can tell it to stop if its \_currentframe is that one.

---

<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:** [August 15, 2004, 1:34am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/4 "2004-08-15T01:34:52Z")

</div>

What’s a decompiler?

---

<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:** [August 15, 2004, 1:39am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/5 "2004-08-15T01:39:23Z")

</div>

> [@ViNc3](#):
>
> What’s a decompiler?

Just allows you to extract code,images sounds etc from swfs  
think this is about the best around  
[http://www.buraks.com/asv/](http://www.buraks.com/asv/)

Sothink do one too.

---

<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:** [August 15, 2004, 1:55am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/6 "2004-08-15T01:55:14Z")

</div>

Thanks , I’ll give it a go- otherwise I can always import my swf into a new fla and just refind the audio I put on it and fix up bits of lost animations which for some reason it does when i import like that.- the put a \*\*\*\* stop on it 🙂

Where exactly would I put that code you’ve given me? I’m not using loadmovienum- I’m just using loadmovie and targeting to an empty clip on main 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:** [August 15, 2004, 1:57am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/7 "2004-08-15T01:57:01Z")

</div>

Stingy’s code on the main timeline

---

<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:** [August 15, 2004, 1:58am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/8 "2004-08-15T01:58:16Z")

</div>

> [@jdl](#):
>
> Thanks , I’ll give it a go- otherwise I can always import my swf into a new fla and just refind the audio I put on it and fix up bits of lost animations which for some reason it does when i import like that.- the put a \*\*\*\* stop on it 🙂
> 
> Where exactly would I put that code you’ve given me? I’m not using loadmovienum- I’m just using loadmovie and targeting to an empty clip on main swf.

The code includes creating an empty movieclip to load into(bonus!!)  
just put it on the first frame.

---

<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:** [August 15, 2004, 2:50am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/9 "2004-08-15T02:50:44Z")

</div>

That code is doing some very weird shyte 😜 It does stop the movie but then you get the output popup in test movie mode scrolling through heaps of numbers- all over the place - I can’t even see a pattern to it. So I tried changing the number in your code from 20 to 200 and it did the same thing again just diff numbers.

---

<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:** [August 15, 2004, 6:29am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/10 "2004-08-15T06:29:37Z")

</div>

The numbers is the current frame of the loaded swf, isn’t it?

---

<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:** [August 16, 2004, 9:08am UTC](https://forum.kirupa.com/t/what-about-control-loop-of-extload-swf/61021/11 "2004-08-16T09:08:12Z")

</div>

it’s not working, it’s me, I 'm doing something wrong. NM , I’ll work it out another day. THX
