dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: What is WRONG !!!!!

  1. #1
    Senior Member
    Join Date
    Jan 2002
    Posts
    149
    Hi!

    Is what is( or is there) wrong with this script??
    It simply won't work.

    Code:
    on (press) {
    	startDrag(_root.menu.equip.bow);
    }
    on (release) {
    	stopDrag();
    	if (getProperty(_root.menu.equip.bow, _droptarget) eq _root.menu.equip.drop) {
    		_root.menu.equip.drop.gotoAndStop("bow");
    		setProperty(_root.menu.equip.bow, _x, "-52.1");
    		setProperty(_root.menu.equip.bow, _y, "-64.5");
    		_root.weapon = "bow";
    	} else {
    		setProperty(_root.menu.equip.bow, _x, "-52.1");
    		setProperty(_root.menu.equip.bow, _y, "-64.5");
    	}
    }

  2. #2
    Buğra ÖZDEN
    Join Date
    Mar 2001
    Location
    Turkey
    Posts
    52
    try this code

    code:
    ___________________________________________
    on (press) {
    startDrag(_root.menu.equip.bow);
    }
    on (release) {
    stopDrag();

    if(_root.menu.equip.bow, hittest(_root.menu.equip.drop)){
    _root.menu.equip.drop.gotoAndStop("bow");
    setProperty(_root.menu.equip.bow, _x, "-52.1");
    setProperty(_root.menu.equip.bow, _y, "-64.5");
    _root.weapon = "bow";
    } else {
    setProperty(_root.menu.equip.bow, _x, "-52.1");
    setProperty(_root.menu.equip.bow, _y, "-64.5");
    }
    }

    _________________________________________________

    good lock

  3. #3
    Senior Member
    Join Date
    Jan 2002
    Posts
    149
    Thanks!

    I will try this code, but I am thinking of redoing my other idea anyway, but THANKS.

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