A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [MX04] hitTest

  1. #1
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157

    [MX04] hitTest

    The following code Works fine except for the gotoAndPlay function can anyone see why! help is much appreciated
    Code:
    onClipEvent (enterFrame) {
    	this.onEnterFrame = function() {
    		if (this.hitTest(_root.guy)) {
    			gotoAndPlay(2);
    		}
    	}
    }
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

  2. #2
    Fk's Official Mac Lover gympie's Avatar
    Join Date
    Aug 2005
    Location
    Perth, Australia
    Posts
    157
    solved lol but thanks for having a look any way ! for anyone else having this problem simply stick a _root.gotoAndPlay (2);
    Function help () {
    Get._Root.helpFromFlashKit.com}

    onOpenFlash = help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center