# AS3: controlling child frame while parent playing/TWEENING

**URL:** <https://forum.kirupa.com/t/as3-controlling-child-frame-while-parent-playing-tweening/327227>\
**Category:** flash\
**Created:** [February 14, 2012, 6:12am UTC](https://forum.kirupa.com/t/as3-controlling-child-frame-while-parent-playing-tweening/327227 "2012-02-14T06:12:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash\_at\_risk](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@ash\_at\_risk](https://forum.kirupa.com/u/ash_at_risk)\
**Post date:** [February 14, 2012, 6:12am UTC](https://forum.kirupa.com/t/as3-controlling-child-frame-while-parent-playing-tweening/327227/1 "2012-02-14T06:12:44Z")

</div>

Hello EveryBody,  
I stucked again,

I have a MovieClip named “all\_Pages” inside of it has timeline tweening on its child “pg” which has sets of pages as child of pg on frames

Here is the problem  
I am trying to execute the code written on all\_pages first frame which is 6th frame

all\_pages.pg.gotoAndPlay(6);

while executing all\_pages.gotoAndPlay(1); // timeline tweening  
i.e  
if (e.target.name == “txtField1”)  
{  
all\_pages.pg.gotoAndStop(9);  
all\_pages.gotoAndStop(1);  
}  
else if(e.target.name == “txtField2”)  
{  
all\_pages.pg.gotoAndStop(8);  
all\_pages.gotoAndStop(1);  
}  
else if (e.target.name == “txtField3”)  
{  
all\_pages.pg.gotoAndStop(7);  
all\_pages.gotoAndStop(1);  
}  
else if (e.target.name == “txtField4”)  
{  
all\_pages.pg.gotoAndStop(6);  
all\_pages.gotoAndStop(1);  
}

but everytime “all\_pages.gotoAndPlay(1)” executes it plays its first frame( 6th frame only). I want it to play  
pages at specific frame with its parent tweening
