# I need help asap... is it possible to link from one swf file to another?

**URL:** <https://forum.kirupa.com/t/i-need-help-asap-is-it-possible-to-link-from-one-swf-file-to-another/45174>\
**Category:** flash\
**Created:** [March 11, 2004, 5:58pm UTC](https://forum.kirupa.com/t/i-need-help-asap-is-it-possible-to-link-from-one-swf-file-to-another/45174 "2004-03-11T17:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitetulips](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@whitetulips](https://forum.kirupa.com/u/whitetulips)\
**Post date:** [March 11, 2004, 5:58pm UTC](https://forum.kirupa.com/t/i-need-help-asap-is-it-possible-to-link-from-one-swf-file-to-another/45174/1 "2004-03-11T17:58:51Z")

</div>

i have created 2 swf files… (eg; a.swf and b.swf)  
if i 1 2 link from a.swf to b.swf, i use this AS : ( this As works)

on (release) {  
tellTarget ("\_root") {  
gotoAndStop(1);  
loadMovieNum(“b.swf”, 1);  
}  
}

lets say if a.swf have 3 scenes in it, (scene1, scene2, scene3), and i 1 2 link b.swf back to the ‘scene3, frame1’ of a.swf, what will the AS be?

i tried using this:

on (release) {  
tellTarget ("\_root") {  
gotoAndStop(1);  
loadMovieNum(“a.swf”, “scene3”,1);  
}  
}

but it has and error…

can u tell me the correct AS to link it back?

---

<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:** [March 13, 2004, 10:21am UTC](https://forum.kirupa.com/t/i-need-help-asap-is-it-possible-to-link-from-one-swf-file-to-another/45174/2 "2004-03-13T10:21:02Z")

</div>

can some pls reply me… at least tell me issiz possible to do tat… pls… desparate…

---

<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:** [March 13, 2004, 10:06pm UTC](https://forum.kirupa.com/t/i-need-help-asap-is-it-possible-to-link-from-one-swf-file-to-another/45174/3 "2004-03-13T22:06:30Z")

</div>

First stop writing “1 2” instead of “want to”. Thats horrible and confusing.

> \*Originally posted by whitetulips \*  
> \*\*on (release) {  
> tellTarget (“\_root”) {  
> gotoAndStop(1);  
> loadMovieNum(“a.swf”, “scene3”,1);  
> }  
> }

but it has and error…\*\*  
Why are you using loadMovieNum if a.swf is already loaded? And besides, the sintax is wrong, the scene parameter doesnt even exist:

```auto
loadMovieNum("url",level);

```

If you want to reference movie a from movie b, you’d use \_parent.  
ie: If you have a button on movie b and you want to tell movie a to go to a certain frame:

```auto
on(press){
_parent.gotoAndPlay(frame);
}

```

I dont recommend using scenes though, as it can be hard to navigate through them sometimes.  
[http://www.macromedia.com/support/flash/ts/documents/scene\_frame.htm](http://www.macromedia.com/support/flash/ts/documents/scene_frame.htm)
