# loadURLRequest gotoAndPlay frame label

**URL:** <https://forum.kirupa.com/t/loadurlrequest-gotoandplay-frame-label/246416>\
**Category:** flash\
**Created:** [December 11, 2007, 1:23am UTC](https://forum.kirupa.com/t/loadurlrequest-gotoandplay-frame-label/246416 "2007-12-11T01:23:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HIPPY](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@HIPPY](https://forum.kirupa.com/u/HIPPY)\
**Post date:** [December 11, 2007, 1:23am UTC](https://forum.kirupa.com/t/loadurlrequest-gotoandplay-frame-label/246416/1 "2007-12-11T01:23:23Z")

</div>

Hi I’m loading a long timeline into a listener and trying to use buttons on a menu to goto andplay the frame label further into the timeline.

My selling\_btn has this AS and loads the .swf but no luck going to the frame label… any suggestions

[a]  
selling\_btn.addEventListener(MouseEvent.CLICK , clickselling)  
function clickselling ( evt )  
{  
myLoader.unload()  
myLoader.addEventListener(Event.COMPLETE, fnToAddSwfAndSeekFrame)  
myLoader.load( new URLRequest(“1\_tabs\_heather.swf”) )  
}

```
//untested but should put you in the right direction...

```

function fnToAddSwfAndSeekFrame(e:Event)  
{  
// assumes loaded object is a swf…  
var newSWF:MovieClip = MovieClip(e.target.data);  
addChild(newSWF);  
newSWF.gotoAndPlay(30);  
}  
[/a]
