# Problem with loaded swf

**URL:** <https://forum.kirupa.com/t/problem-with-loaded-swf/292762>\
**Category:** Uncategorized\
**Created:** [July 18, 2009, 3:46pm UTC](https://forum.kirupa.com/t/problem-with-loaded-swf/292762 "2009-07-18T15:46:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gyan\_Singh](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@Gyan\_Singh](https://forum.kirupa.com/u/Gyan_Singh)\
**Post date:** [July 18, 2009, 3:46pm UTC](https://forum.kirupa.com/t/problem-with-loaded-swf/292762/1 "2009-07-18T15:46:35Z")

</div>

Hi Friends,  
I have 3 movies named _movie\_1.swf, movie\_2.swf, movie\_3.swf._ and also have a container named _main.swf._

I am loading all movies in _main.swf_ with different frame labled as \ ***frm\_1, frm\_2, frm\_3**.  
\*  
I have loaded all movies successfully but the problem is…

\> I have a button in _movie\_1.swf_ named \*\*\*nextBtn \*\*\*which called \ ***frm\_2** \*in main.swf

I wrote code like this…

```auto

var myParent = parent
btn.addEventListener (MouseEvent.CLICK, nextMovie);

function nextMovie (e:MouseEvent):void {
   myParent.gotoAndStop ("frm_2");
}

```

but its not working…

Please help me, How can i do this…??

Also i am attaching those files…
