Using gotoandplay from a custom class


 / Published in: ActionScript 3
 

GotoandPlay from a nested MC Class file

  1. //This code will do the following : parent.parent.gotoAndStop(2);
  2. var my_parent:MovieClip=parent.parent as MovieClip;
  3. my_parent.nextSection=2;
  4. my_parent.gotoAndStop(my_parent.nextSection)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Flannagan on September 23, 2009

Thank you!, After hours searching for a solution, at last I have found

You need to login to post a comment.