Using gotoandplay from a custom class


/ Published in: ActionScript 3

GotoandPlay from a nested MC Class file


Copy this code and paste it in your HTML
  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

You need to login to post a comment.