CS4 AS2 Dragging and Dropping Movie Clips

Need help figuring it out... =(

Page 1 of 1

1 Replies - 1104 Views - Last Post: 10 May 2009 - 04:01 PM

#1 icutenewb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 09-May 09

CS4 AS2 Dragging and Dropping Movie Clips

Posted 09 May 2009 - 07:14 PM

OK, I'm making a game in Adobe Flash CS4, using ActionScript2 (I know, I know, I just don't wanna learn the new lang.) and I have a problem.. basically what I need is for the user to drag and drop my movie clip (a small white circle) into a goal (a big blue circle).. then for flash to detect it in the goal, and go to a certain frame.. any help?

BTW, I have it so that I can drag & drop it in using this code on a button inside of the MC
on(press){
	startDrag("_root.lvl1ball2");
}
on(release){
	stopDrag();
	if (_root.lvl1ball2._droptarget == "/lvl1goal2") {
		goal2 = 1
	}
}

and on the frame
var goal = 0
var goal2 = 0
if (goal=1){
		if (goal2=1){
			gotoAndPlay(54);
		}
	}

...but right when I start the frame, it goes to the next one

if you need any extra info, just ask :ph34r:

This post has been edited by icutenewb: 09 May 2009 - 07:42 PM


Is This A Good Question/Topic? 0
  • +

Replies To: CS4 AS2 Dragging and Dropping Movie Clips

#2 brandon_v  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 62
  • Joined: 29-May 08

Re: CS4 AS2 Dragging and Dropping Movie Clips

Posted 10 May 2009 - 04:01 PM

Do you have a stop() command anywhere on your frame?
Also, you could have problems in your if statements, because you need to use == instead of just =.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1