gotoAndPlay

  • bobmarley
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 07, 2008
  • Posts: 13
  • Status: Offline

Post July 7th, 2008, 6:46 pm

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.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 7th, 2008, 6:46 pm

  • suzie
  • Guru
  • Guru
  • User avatar
  • Joined: Feb 07, 2004
  • Posts: 1127
  • Loc: England
  • Status: Offline

Post July 8th, 2008, 12:37 am

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!
http://jungaling.com/katecorner/
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 8th, 2008, 5:36 am

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.
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • bobmarley
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 07, 2008
  • Posts: 13
  • Status: Offline

Post July 8th, 2008, 5:26 pm

Ahhh, thank you very much.
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post July 8th, 2008, 9:28 pm

No problem. Good luck
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • bobmarley
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jul 07, 2008
  • Posts: 13
  • Status: Offline

Post August 30th, 2008, 8:41 pm

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
  • Joined: Aug 03, 2006
  • Posts: 78
  • Status: Offline

Post September 1st, 2008, 6:50 pm

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 65 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.