# How to stop looping an external .SWF file?

**URL:** <https://forum.kirupa.com/t/how-to-stop-looping-an-external-swf-file/317420>\
**Category:** flash\
**Created:** [December 20, 2010, 7:43am UTC](https://forum.kirupa.com/t/how-to-stop-looping-an-external-swf-file/317420 "2010-12-20T07:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [December 20, 2010, 7:43am UTC](https://forum.kirupa.com/t/how-to-stop-looping-an-external-swf-file/317420/1 "2010-12-20T07:43:23Z")

</div>

Hi,

How can I stop my Logo.swf file from looping. Actually the external Logo.swf file doesn’t contain any looping code inside it. If I open it in any flash player it animates only one time.

Writing “stop();” in code stops all other animations which I don’t want.

```auto
 
var J:Loader=new Loader();
addChild(J);
J.load(new URLRequest("Logo.swf"));
J.x = 275;
J.y = 25;
J.contentLoaderInfo.addEventListener(Event.INIT, growLoaderj);
 function growLoaderj(evt:Event):void {
     J.width = 1000;
     J.height = 700;
}
var myTimer:Timer = new Timer(2000,3);
myTimer.addEventListener(TimerEvent.TIMER, timerListener);
function timerListener (e:TimerEvent):void{
trace("Timer is Triggered");
J.alpha=0;
}
myTimer.start();

```

Any help please.
