I have 2 js files. In first js on clicking a button am trying to load second js, which is another page. But before loading that I want perform some actions on same click. Its going to next scene b4 completing these action. If I don’t add loading method then its performing all actions. Can any one please let me know how can i load next scene after completing these actions. Please have look at my piece of code.
var actInterval = cc.ActionInterval.actionWithDuration(8);
var seq1 = cc.Sequence.actions(action3,action5,action1,fadeAction);
var seq2 = cc.Sequence.actions(action4,action6,action2,fadeAction,actInterval);
sprite1.runAction(seq1);
sprite2.runAction(seq2);
//***After performing runaction, I want to load following js
cc.loadtestLevel1();
Thanks in advance.
Aparajita