# I have a problem in accessing external SWF files tab index

**URL:** <https://forum.kirupa.com/t/i-have-a-problem-in-accessing-external-swf-files-tab-index/262995>\
**Category:** Uncategorized\
**Created:** [June 11, 2008, 6:08pm UTC](https://forum.kirupa.com/t/i-have-a-problem-in-accessing-external-swf-files-tab-index/262995 "2008-06-11T18:08:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthick\_s\_2008](https://avatars.discourse-cdn.com/v4/letter/k/4bbf92/32.png) [@karthick\_s\_2008](https://forum.kirupa.com/u/karthick_s_2008)\
**Post date:** [June 11, 2008, 6:08pm UTC](https://forum.kirupa.com/t/i-have-a-problem-in-accessing-external-swf-files-tab-index/262995/1 "2008-06-11T18:08:21Z")

</div>

[FONT=Calibri][SIZE=3]Hi Friends,[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]I have a problem in accessing external SWF files tab index. [/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]I tried to access the external SWF’s buttons by the Local Connection. I tried to give the tab index for the external SWF file. I am accessing more than two external SWF files. The tab index for the external SWF file’s Buttons are assigned, but they are not working properly.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]Can somebody review my code given below and help me to resolve this issue? Thanks a ton in advance.[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]This is the main File Receiving the connection from the external SWF File:[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]var connSample:LocalConnection;[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]connSample = new LocalConnection();[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]connSample.client = this;[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]try {[/SIZE][/FONT]  
[SIZE=3][FONT=Calibri] connSample.connect("sampleConnection ");[/FONT][/SIZE]  
[FONT=Calibri][SIZE=3]} catch (error:ArgumentError) {[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]------------[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]This is the External SWF file:[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]var connSample:LocalConnection;[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]connSample = new LocalConnection();[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]button1\_btn.addEventListener(MouseEvent.CLICK, btnClick);[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]function btnClick(sampleEvent:MouseEvent)[/SIZE][/FONT]  
[FONT=Calibri][SIZE=3]{[/SIZE][/FONT]  
[SIZE=3][FONT=Calibri] connSample= new LocalConnection();[/FONT][/SIZE]  
[SIZE=3][FONT=Calibri] connSample.send(“sampleConnection”, “sampleName”, sampleEvent.currentTarget.name);[/FONT][/SIZE]  
[FONT=Calibri][SIZE=3]}[/SIZE][/FONT]
