# Linking to a specific frame on another swf

**URL:** <https://forum.kirupa.com/t/linking-to-a-specific-frame-on-another-swf/245495>\
**Category:** flash\
**Created:** [November 30, 2007, 7:47am UTC](https://forum.kirupa.com/t/linking-to-a-specific-frame-on-another-swf/245495 "2007-11-30T07:47:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fibonacci1](https://avatars.discourse-cdn.com/v4/letter/f/fbc32d/32.png) [@fibonacci1](https://forum.kirupa.com/u/fibonacci1)\
**Post date:** [November 30, 2007, 7:47am UTC](https://forum.kirupa.com/t/linking-to-a-specific-frame-on-another-swf/245495/1 "2007-11-30T07:47:02Z")

</div>

Hi all,  
I am trying to get a button on one swf to go to a specific frame on another swf. I have two movies A.swf and B.swf

I have five frames in A.swf. I have a button in B.swf. I want the button in B.swf to link to frame 4 in A.swf.

To accomplish this, I have the following code:  
//code on the button in B.swf  
on (press){  
loadMovieNum(“A.swf”,1);}  
on (release){  
with (\_level1) {  
gotoAndPlay (“frame5”);  
}  
}It works absolutely great (for anyone who wants to know how to link to a specific frame on another swf). The only problem is that when I execute this in ‘Test Movie’ you can see B.swf under A.swf. How do I get rid of B.swf so users can see only A.swf and the contents in frame 4?

I’ve tried almost everything, including changing level 1 to level 0. In this case, the first frame of A.swf plays. The playhead does not go to frame 4.

Can anyone help me with this please?  
Many thanks.
