CLICK HERE FOR A LIVE DEMONSTRATION OF THE TUTORIAL
On this tutorial we show how to start the drag through an event listener. The event listener will fire a function that starts the drag, stops the listener for mouse down and starts waiting for release.
DOWNLOAD THE TUTORIAL TO YOUR HARD DRIVE
Here is the Code!!
// Circle Flash Drag and Drop
// by Avraham Saltoun solutions at say-web dot com
// FREE to use, copy and Distribute.
//It all starts with an Event Listener
Circle_mc.addEventListener(MouseEvent.MOUSE_DOWN, Drag);
/*
The _mc enables CODE HINTING for Movie Clip
(The drop down with suggestions)
When the mouse button is clicked the compiler
will look and go for the Drag function */
function Drag (e:MouseEvent): void {
// The e represents the value beign recieved
// void is good practice to state no value
// will be return. Would work without it!
Circle_mc.startDrag();
Circle_mc.removeEventListener(MouseEvent.MOUSE_DOWN,Drag);
Circle_mc.addEventListener(MouseEvent.MOUSE_UP, Drop);
}
function Drop (e:MouseEvent):void
// Let’s copy and paste
// This will release the circle
// from the mouse!
{
Circle_mc.stopDrag();
Circle_mc.removeEventListener(MouseEvent.MOUSE_UP,Drop);
Circle_mc.addEventListener(MouseEvent.MOUSE_DOWN, Drag); }
// Thanks for Watching !!!!




February 7th, 2012 at 8:09 am
Bonjour, j’ai bien apprécie cet article et j’en profite aussi pour partager une ressource précieuse qui parle des arnaques sur internet, par exemple sur la contrefaçon : Arnaques Paypal. Merci encore pour cet article !
February 7th, 2012 at 8:11 am
I’m not easy to please, but your interesting content has my attention. This is one of the best informational articles I have ever read. You’re very insightful and your know your audience well. Thank you.
February 7th, 2012 at 8:37 am
Awesome post and blog in general. I’m a huge perfume enthusaist so info like this is very useful to me, espically when trying to find a new signature perfume. Thanks!
February 7th, 2012 at 8:44 am
This article is comprehensive in its data. I appreciate this having much information laid out in such a clear format. You have a knack for engaging and influencing your readers. Interesting content can be rare.
February 7th, 2012 at 8:44 am
If I had to describe this article in one word, it would be awesome. I think this is a wonderful piece of work that deserves recognition. I enjoyed reading it. I completely agree with you.
February 7th, 2012 at 8:48 am
Well written articles like yours renews my faith in today’s writers. You’ve written information I can finally agree on and use. Thank you for sharing.
February 7th, 2012 at 8:52 am
Yours is a very unique informational article. Your fresh views persuaded me to be thoughtful about this subject. It’s obvious you have provoked thought in other readers with your material.
February 7th, 2012 at 9:17 am
I agree with many of your points in this article. I appreciate your well-written content. You’ve made this article more interesting that others I’ve read.
February 7th, 2012 at 9:21 am
I am very impress your this post, this is too much interesting. Thanks a lot…
February 7th, 2012 at 9:29 am
In my opinion, you’ve presented the topic in a quite thorough yet concise manner, that is genuinely useful when someone wants to get the facts without spending too a lot time searching the Internet and sifting out the noise to discover the answers to their questions.
February 7th, 2012 at 9:29 am
You have created an interesting article. Unique is a word I could use to describe your writing. You are an accomplished writer with a good grasp of the English language.
February 7th, 2012 at 9:38 am
This original content is out of the ordinary. I appreciate that you’ve gone off the beaten path with your points and I agree with most.
February 7th, 2012 at 10:46 am
This appeal beads are frequently gold or rhodium or perhaps rare metal plated with http://www.pandorabeadssell.co.uk/ as well as glass and appear in no less than 300 models Pandora Bracelets These kinds of drops symbolize your birthstones, sun signs, creatures, alphabets, letters, in addition to each one of these Pandora Beadsalong with different along with challenging layouts. All these broad selection ensure that you don’t have repeating with pattern. The drops are fashioned so who’s complements present bracelet as well as necklace. If you ever elect to acquire necklace around your neck rather than beans by yourself, the gathering can be extra unique that will charm people heart. Your necklace put faitth on is supplied in ins along with the necklace size is frequently inches width. The particular dimensions in addition to bases may be interchanged so that the selection connected with toggle bracelet and also any necklace or maybe any keychain can be unique to your account and it will certainly usually takes age range to uncover the replicate these days.
February 7th, 2012 at 4:10 pm
I have a lot of respect for a writer that can take informational content and make it interesting. You did this. Readers like to be entertained when reading straight information.
February 7th, 2012 at 4:25 pm
this is such a good article to read. Stimulating me to read more of your articles. Keep up the good work Hoping more excellent articles from you soon.
February 7th, 2012 at 4:30 pm
Sometimes I have to try to decipher online article content because it’s unclear and confusing. I was excited to find your clear and interesting article.
February 7th, 2012 at 5:21 pm
I can tell you have put much effort into researching this subject matter. You have also made many good points for consideration. I thank you.
February 7th, 2012 at 5:28 pm
Nice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which we all need, thanks for all the enthusiasm to offer such helpful information here.
February 7th, 2012 at 5:49 pm
Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint.
February 7th, 2012 at 5:49 pm
I loved reading this article. I feel you took aim and hit the target here. I am very impressed with your obvious demonstration of excellent writing skills and unique content. Thank you for writing this.
February 7th, 2012 at 5:50 pm
Your article is great! Your viewpoints are valid and well-represented. This is useful and interesting data that I can appreciate. You are obviously knowledgeable in this area. You kept this content smart and very engaging.
February 7th, 2012 at 6:06 pm
You have written an article that has started an invigorating debate among my friends. How exciting to stir up such a wonderful debate. Your research is very useful. Thank you.
February 7th, 2012 at 6:08 pm
Informative articles like this impress me. I think these points made are fresh and original and I agree with a lot of this content. Thank you for your great writing.
February 7th, 2012 at 6:14 pm
Your first sentence immediately got me interested in this topic. Your unique commentary and writing style had me convinced of your points. Amazing work. Please continue this type of content.
February 7th, 2012 at 6:22 pm
Reading this article was such a blessing to me today. Thank you for sharing your insights in such an interesting manner. The information has been useful to me and I will continue to use it.
February 7th, 2012 at 6:31 pm
Reading your article was a really illuminating experience. I enjoyed your informative content and learned a lot about this topic I never knew. You are an insightful writer. Thank you.
February 7th, 2012 at 6:33 pm
On That Point there r certainly a stack of details identical to that to take into consideration
February 7th, 2012 at 6:38 pm
It takes a real thinker to put together such great article content such as this. I agree with many of your views here. You make many strong points on the subject. This content is awesome.
February 7th, 2012 at 6:49 pm
It’s very infrequently I read much online content, but I found your article very informative and interesting from the start. You mention good points and keep things interesting. Thank you.
February 7th, 2012 at 6:54 pm
My personal opinion is that this article is terrific. I agree with much of the information you’ve provided and I’m interested in reading more articles written by you. Good job!