# Linking to a certain frame when loading a swf

**URL:** <https://forum.kirupa.com/t/linking-to-a-certain-frame-when-loading-a-swf/283293>\
**Category:** flash\
**Created:** [March 4, 2009, 3:53pm UTC](https://forum.kirupa.com/t/linking-to-a-certain-frame-when-loading-a-swf/283293 "2009-03-04T15:53:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vanilla](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@Vanilla](https://forum.kirupa.com/u/Vanilla)\
**Post date:** [March 4, 2009, 3:53pm UTC](https://forum.kirupa.com/t/linking-to-a-certain-frame-when-loading-a-swf/283293/1 "2009-03-04T15:53:04Z")

</div>

[FONT=Arial][SIZE=3]I need some urgent help with linking in Flash. I have a main movie in which all my buttons are, this movie loads the other swfs in a contentHolder movie clip.

Now the problem is that I need to link to a certain frame in the loaded swf.[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]button\_btn.onPress = function() {[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] contentHolder.loadMovie(“investment.swf”);[/SIZE][/FONT]  
[FONT=Arial][SIZE=3]};[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]Now in the investment.swf I want it to go straight to frame 5. I have done lots of looking online, but cant seem to find the answer. I think I need to use variables but am not sure.[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]Any help would be really appreciated![/SIZE][/FONT]
