gotoAndPlay

  • bobmarley
  • Newbie
  • Newbie
  • bobmarley
  • Posts: 13

Post 3+ Months Ago

demo_mc.onPress = function() {
gotoAndPlay('_root.2');
}




What am i doing wrong? I know it is something with the '_root.35' but I don't know how to correctly write it.
  • suzie
  • Guru
  • Guru
  • User avatar
  • Posts: 1134
  • Loc: England

Post 3+ Months Ago

Hi,

I don't do Flash but you have a (.2) in _root not .35 but this will jerk a Flash guru into action... :mrgreen:

Good luck!
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

Code: [ Select ]
demo_mc.onPress = function() {
_root.gotoAndPlay("2");
}
  1. demo_mc.onPress = function() {
  2. _root.gotoAndPlay("2");
  3. }

or
Code: [ Select ]
demo_mc.onPress = function() {
_root.gotoAndPlay(2);
}
  1. demo_mc.onPress = function() {
  2. _root.gotoAndPlay(2);
  3. }


Frame label names are in quotes frame numbers are not... Also the path goes at the beginning not as an argument.
  • bobmarley
  • Newbie
  • Newbie
  • bobmarley
  • Posts: 13

Post 3+ Months Ago

Ahhh, thank you very much.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1827
  • Loc: In the Great White North

Post 3+ Months Ago

No problem. Good luck
  • bobmarley
  • Newbie
  • Newbie
  • bobmarley
  • Posts: 13

Post 3+ Months Ago

this should work the same way when referring to a movie inside a movie right? but like...

demo_mc.onPress = function() {
this.demo_mc.othermovie_mc.gotoAndPlay(2);
}
  • zhaojany
  • Student
  • Student
  • User avatar
  • Posts: 79

Post 3+ Months Ago

graphixboy is right and he give an clear explanation too

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.