# Control an external instance?

**URL:** <https://forum.kirupa.com/t/control-an-external-instance/300196>\
**Category:** flash\
**Created:** [November 17, 2009, 3:31pm UTC](https://forum.kirupa.com/t/control-an-external-instance/300196 "2009-11-17T15:31:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raccoon](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@Raccoon](https://forum.kirupa.com/u/Raccoon)\
**Post date:** [November 17, 2009, 3:31pm UTC](https://forum.kirupa.com/t/control-an-external-instance/300196/1 "2009-11-17T15:31:38Z")

</div>

[FONT=Arial][SIZE=2][COLOR=#000000]Hello i have this code:[/COLOR][/SIZE][/FONT]

[FONT=Arial][SIZE=2][COLOR=#000000]

```auto
auto.addEventListener("click",loadAlbum);
function loadAlbum(event:Event):void { parent.portafolio.loadAlbum("perro","1"); }

```

[/COLOR][/SIZE][/FONT]

[SIZE=2][COLOR=#000000][FONT=Arial]which controls a component instance, i want to use this code in a button on another swf file, how can i do this?, is posible to use a statement, i[SIZE=3][COLOR=#0a0a0a][SIZE=2] do not understand the concept of target path[/SIZE] [SIZE=2]yet[/SIZE][/COLOR][/SIZE][/FONT][/COLOR][/SIZE]

[FONT=Arial][SIZE=2][COLOR=#000000]Thank you.[/COLOR][/SIZE][/FONT]
