Jump to content

Flash AS2 Make MC disapear with over another MC

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
big-tony

big-tony

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
I basically am suppose to make "scarf" drag over to a movie clip named "winter_mc" and when it is on it, it is suppose to disappear but it's not disappearing.

Here is my code used in the scarf:
on (press) {
	startDrag(scarf, true);
}
on (release) {
	stopDrag();
	if( root.scarf_dropTarget == "winter_mc")
	setProperty(root.scarf,_visible,false);
}

Here's my fla file if anyone wants to take a look: http://go.internet.c...skillsdemo9.fla
_____________________________________
Currently enrolled in School for an Associates Degree in Computer Science

#2
big-tony

big-tony

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
Oh hell yeah, I figuired out a problem by myself for once lol. This code worked for me:
on (press) {
	startDrag(scarf, true);
}
on (release) {
	stopDrag();
	if(_dropTarget=="/winter_mc")
	
	{setProperty(root.scarf,_visible,false);}
}

Behold, the mystical power of Strong Coffee to help you think better. :D
_____________________________________
Currently enrolled in School for an Associates Degree in Computer Science