Lets Just do it all ready
Ok enough wordy explainations of how the script works I just want to use it.
First make your movie that will be dragged. This movie will include a Text Field named displayText and the piece of action script shown below (same script explained above.) make this movie two frames long so it will loop.
Set Variable: "displayText" = GetProperty ("", _droptarget) Set Variable: "displayText" = Substring (displayText, 2, (Length (displayText)))
Place this clip on your main time line and give it an instance name, how about drag.
Next you make your other movie clips that you want to have in my case I was making a map and streets. It is important to give these clips usefull instant names because that is what will be displayed in the textfield as you pass the cursor over them.
Now for the last piece of code. This tells your drag movie clip instance of the textfield to stick to your mouse. Just put it in frame 1 of the main timeline.
Start Drag ("drag", lockcenter)
Ok your done now you can see the magic. There are other possible uses for this but Ill leave that up to your imagination.
|» Level Intermediate|
Rating: 6 Votes: 125
|Im just your average environmentalist/flash addict.|
|Download the files used in this tutorial.|
|Download (24 kb)|
|More help? Search our boards for quick answers!|