# Loading and controlling a movie through actionscript

**URL:** <https://forum.kirupa.com/t/loading-and-controlling-a-movie-through-actionscript/241500>\
**Category:** flash\
**Created:** [October 15, 2007, 2:49am UTC](https://forum.kirupa.com/t/loading-and-controlling-a-movie-through-actionscript/241500 "2007-10-15T02:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutcase88](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@nutcase88](https://forum.kirupa.com/u/nutcase88)\
**Post date:** [October 15, 2007, 2:49am UTC](https://forum.kirupa.com/t/loading-and-controlling-a-movie-through-actionscript/241500/1 "2007-10-15T02:49:04Z")

</div>

Hi im currently working on a new project that requires me to control a movie clip through actionscript. The problem is that i have to attach a movie clip symbol onto another movie clip after i select the specific clip i want to play.

E.g  
playbox is the movie Clip i attach other clips on.  
A is the movie Clip to be attached.

So i have this going on right now on a button.

on(release){  
playbox.attachMovie(“A”,“movie”,2);  
}

This works fine as the movie starts to play however the question is how do i use gotoAndPlay(10) on the attached movie clip? I am required to control what frames A has to be at and playbox.gotoAndPlay(10) doesnt seem to function.

Please advise, thanks!
