MovieClip(root).gotoAndStop(2); ???

  • ytb
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 16, 2008
  • Posts: 5
  • Status: Offline

Post January 1st, 2009, 7:20 am

right I want my animation to go to say, frame 2- so in the first frame I type

MovieClip(root).gotoAndStop(2);

or just

gotoAndStop(2)


but it just stops the movie doesn't go anywhere!@

also why can't I add actions to movie clips??
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 1st, 2009, 7:20 am

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

Post January 12th, 2009, 12:34 pm

the correct code would be
Code: [ Select ]
_root.gotoAndStop(2);
is it possible that your already on frame 2?

Also you need to add code inside movieclips so make sure that you don't have an item on the stage selected when you try to add code to the clip.
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
  • ibrabdo
  • Novice
  • Novice
  • User avatar
  • Joined: Feb 23, 2009
  • Posts: 29
  • Status: Offline

Post February 23rd, 2009, 7:45 am

u can't add actions to movie clips in the actionscript3
u have to work with actionscript2 if u want to do that

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 38 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
 
cron
 

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