A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: x position

  1. #1
    one eyed queenslander big daddy bruce's Avatar
    Join Date
    Sep 2002
    Location
    Brisbane QLD
    Posts
    134

    x position

    Hi

    I want to write an if/else statement that checks to see if a dragged movieclip's x position is 350 (on the _root), and if so, then tell another movie to goto frame "drag_ok". If not do nothing.
    Cheers mate

    Big daddy

    http://www.bluesquaremedia.com.au

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Code:
    this.createEmptyMovieClip("batt",1);
    _root.batt.onEnterFrame = function() {
    	if (_root.ball._x>=350) { Ball is the instance name of the 'dragged' mc.
    		_root.myMc.gotoAndPlay("drag_ok");
    		_root.batt.removeMovieClip();
    	}
    };

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