# Loading movie through button from child clip

**URL:** <https://forum.kirupa.com/t/loading-movie-through-button-from-child-clip/296043>\
**Category:** Uncategorized\
**Created:** [September 8, 2009, 11:55pm UTC](https://forum.kirupa.com/t/loading-movie-through-button-from-child-clip/296043 "2009-09-08T23:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrylla](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cbrylla](https://forum.kirupa.com/u/cbrylla)\
**Post date:** [September 8, 2009, 11:55pm UTC](https://forum.kirupa.com/t/loading-movie-through-button-from-child-clip/296043/1 "2009-09-08T23:55:17Z")

</div>

I have a portfolio page with several trailer thumbnails (a portfolio list). If you click on each, the page changes and you see the trailer in a video player, plus more info about the film. I used two frames in the timeline: the first frame has the clip with the thumbnails (port\_list). The second frame has a movie clip container and the video player. The idea is that pressing the respective button from port\_list will load the details of that movie and the movie into the video player. I am using this script:

ZSQ\_but.onRelease = function (){  
\_parent.gotoAndStop(“por\_details”);  
myplayer.contentPath = “videos/ZSQ.flv”;  
por\_details\_cont.attachMovie(“ZSQ\_details”,“ZSQ\_de tails”,0);

}

Even though the script looks alright (and works alright if at the root level), it will not work from the child clip. What am I doing wrong?? Please see the attached fla (zipped) file.
