# Targeting loaded .swf

**URL:** <https://forum.kirupa.com/t/targeting-loaded-swf/19782>\
**Category:** Uncategorized\
**Created:** [May 1, 2003, 4:26pm UTC](https://forum.kirupa.com/t/targeting-loaded-swf/19782 "2003-05-01T16:26:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mojoNYC](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mojoNYC](https://forum.kirupa.com/u/mojoNYC)\
**Post date:** [May 1, 2003, 4:26pm UTC](https://forum.kirupa.com/t/targeting-loaded-swf/19782/1 "2003-05-01T16:26:39Z")

</div>

hi all-  
this code is working to load and position the external swf, but it won’t gotoAndPlay to the frame inside the external swf–what am doing wrong here?  
regards,  
-mojo

```php

bio.onPress=function(){
	_global.section="bio";  
	createEmptyMovieClip("content",99);
	content.loadMovie("headshot_info.swf");
       content._x=400;
	content.gotoAndPlay(3);
	}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 1, 2003, 4:49pm UTC](https://forum.kirupa.com/t/targeting-loaded-swf/19782/2 "2003-05-01T16:49:39Z")

</div>

My guess would be that you tell it to goto frame 3 before the external swf has fully loaded.  
First make sure it’s fully loaded before using the gotoAndPlay action.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 1, 2003, 5:24pm UTC](https://forum.kirupa.com/t/targeting-loaded-swf/19782/3 "2003-05-01T17:24:33Z")

</div>

look at this thread:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=8833](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=8833)

or try adding \_root before content.

might be wrong, but i thought i’d have a go at helping!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 1, 2003, 5:49pm UTC](https://forum.kirupa.com/t/targeting-loaded-swf/19782/4 "2003-05-01T17:49:42Z")

</div>

thank you both for your replies–flashmatazz, you got it–it needed to load fully–i get carried away with attaching things on the fly that i forgot about this…thanks again!  
-mojo
