Actionscript help

  • Jummm
  • Novice
  • Novice
  • No Avatar
  • Joined: Sep 11, 2006
  • Posts: 17
  • Status: Offline

Post September 19th, 2006, 8:33 am

onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
MCmonvie.gotoAndPlay(2);
}
}


I need to to so when say, "player" touchs a computer, it goes and plays on frame 2 of MCmonvie, the script is on a movieclip, or graphic, andone?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 19th, 2006, 8:33 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post September 21st, 2006, 3:31 am

if your code doesnt work, then try this:
Code: [ Select ]
onClipEvent (enterFrame) {

  if (this.hitTest(_root.player)) {
    _root.MCmonvie.gotoAndPlay(2);
  }
}
  1. onClipEvent (enterFrame) {
  2.   if (this.hitTest(_root.player)) {
  3.     _root.MCmonvie.gotoAndPlay(2);
  4.   }
  5. }
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 40 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.