# \[AS2\] Playing a specific frame

**URL:** https://forum.kirupa.com/t/as2-playing-a-specific-frame/267303
**Category:** flash
**Created:** [July 30, 2008, 3:45pm UTC](https://forum.kirupa.com/t/as2-playing-a-specific-frame/267303 "2008-07-30T15:45:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Arkman](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Arkman](https://forum.kirupa.com/u/Arkman)
#### Post date: [July 30, 2008, 3:45pm UTC](https://forum.kirupa.com/t/as2-playing-a-specific-frame/267303/1 "2008-07-30T15:45:31Z")

</div>

I am using the following actionscript to load a external swf. I would like to actually start playing that movie at a specific location based on what is already loaded. I am using this tutorial [[COLOR=#0000ff]here[/COLOR]](http://www.kirupa.com/developer/mx2004/transitions.htm). Its hard to explain exactly what I want but basically lets say I have three swf’s. A, B, C.

If I go from A to B I use this AS

```auto
 
B_bt.onRelease = function() { 
if (_root.currMovie == undefined) { 
_root.currMovie = "B"; container.loadMovie("B.swf"); 
} else if (_root.currMovie != "B") { 
if (container._currentframe>=container.midframe) { 
_root.currMovie = "B"; container.play(); } 
}
};

```

Which is fine. If I go from A to C I use basically the same AS just change the “B” to a “C”. In each case (going from A to B and from A to C) I am ok with them starting to play on the first frame. But if I go from C to B I actually want B to start at a different frame then when I went from A to B. Is there a way to change the AS to do that?

I am also using this AS to load a movie right off the bat.

```auto
 
_root.currMovie = "A";
[LEFT]container.loadMovie(_root.currMovie+".swf");[/LEFT]

```

Can I change that to A start at a particular location.

I hope this all makes sense  
Thanks,  
Josh
