AS3: controlling child frame while parent playing/TWEENING

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