Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you make Drag and Drop item disappear?

Status
Not open for further replies.

Lizzie

Technical User
Aug 1, 2000
62
GB
I am making a movie where you pick up an item and drop it into a bag. I want the item to disappear when it is dropped. How do I do that? [sig][/sig]
 
You either change the visibility property of the movieclip to 0 or unload it. If you prefer to use unload, you need to previously load the movieclip at a different level with the load movie action.

To change the visibility property just go to the actions window of your triger object and add a Set Property action to the On Release. So your action window will have something like this:

On (Press)
Start Drag ("_level0/mc", lockcenter)
End On
On (Release)
Stop Drag
Set Property ("_level0/mc", Visibility) = false
End On

_level0/mc is the name of the movieclip that will disappear.
Two things to remember:

- Name your movieclip. Select it and open the properties window, now in the definition tab make sure that your movie's name is there. In this example: mc

- When you assign the value false to the Visibility property, make sure that it is a variable. There should be an equal sign in the button and not an abc sign.

That is it.

Good luck
[sig]<p>Fernando Regueiro<br><a href=mailto:ferhelping@yahoo.com>ferhelping@yahoo.com</a><br><a href= > </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top