Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Drag And Drop Tutorial, Very useful
speedy
post Oct 25 2005, 08:46 PM
Post #1


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 37
Joined: 23-October 05
Member No.: 9,248



Drag And Drop is a very useful effect commonly used for making DressUp games, Mobile applications, Games, Cursors, Good user interface etc.

Here is a sample (by me) which would show one of its uses:
http://img266.imageshack.us/my.php?image=drag28lm.swf

You can see that when you press the "Shoutbox, FirstPost or the Dust Bin" you can drag them anywhere on the screen and on releasing mouse button they settle there. Also if you release mouse button over the dust bin after "selecting the Shoutbox or Firstpost" they get removed.

To make such "Drag and Drop" objects do as follows:

1. Select the object (can be any image) and press F8, select "Button" from the options and OK.
2. Put in following code in the Action Window for that object.
CODE
on (press)      
{
this.startDrag();  //start drag
}
on (release) {
this.stopDrag();  //stop drag
}

3. Again press F8 and select "Movie" this time.
4. Press ctrl + Enter and try.

You may add more of your commands above according to your needs. Thus you may create an interactive presentation


You can also use this property to make your own mouse icon for the presentation:

1. Select a graphic (small in size for a mouse icon)
2. Press F8 and select "Movie"
3.In the Actions Window type this code:
CODE
onClipEvent(load)
{
startDrag(this,true)  //start dragging and lock mouse to center
Mouse.hide()    //hide the  default mouse cursor
}

4. Again press F8 and select "Movie"
5. Press ctrl + Enter and try.

Here is the ".fla" file of my sample:
DOWNLOAD FLA


As this was my first FLASH tutorial so please pe patient where ever I go wrong. Also please rate this tutorial and post your comments. wink.gif cool.gif biggrin.gif

Speedy
Go to the top of the page
 
+Quote Post
YudzzY
post Oct 26 2005, 09:27 AM
Post #2


Member - Active Contributor
Group Icon

Group: Members
Posts: 80
Joined: 5-September 05
Member No.: 8,327



hey thanks i'm gonna try that and get back to you.. seems useful!
Go to the top of the page
 
+Quote Post
CarolinaBlues
post Nov 8 2005, 05:09 AM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 14
Joined: 8-November 05
Member No.: 9,508



QUOTE
Drag And Drop is a very useful effect commonly used for making DressUp games, Mobile applications, Games, Cursors, Good user interface etc.

Here is a sample (by me) which would show one of its uses:
http://img266.imageshack.us/my.php?image=drag28lm.swf

You can see that when you press the "Shoutbox, FirstPost or the Dust Bin" you can drag them anywhere on the screen and on releasing mouse button they settle there. Also if you release mouse button over the dust bin after "selecting the Shoutbox or Firstpost" they get removed.

To make such "Drag and Drop" objects do as follows:

1. Select the object (can be any image) and press F8, select "Button" from the options and OK.
2. Put in following code in the Action Window for that object.
CODE
on (press)     
{
this.startDrag();  //start drag
}
on (release) {
this.stopDrag();  //stop drag
}

3. Again press F8 and select "Movie" this time.
4. Press ctrl + Enter and try.

You may add more of your commands above according to your needs. Thus you may create an interactive presentation


You can also use this property to make your own mouse icon for the presentation:

1. Select a graphic (small in size for a mouse icon)
2. Press F8 and select "Movie"
3.In the Actions Window type this code:
CODE
onClipEvent(load)
{
startDrag(this,true)  //start dragging and lock mouse to center
Mouse.hide()    //hide the  default mouse cursor
}

4. Again press F8 and select "Movie"
5. Press ctrl + Enter and try.

Here is the ".fla" file of my sample:
DOWNLOAD FLA


As this was my first FLASH tutorial so please pe patient where ever I go wrong. Also please rate this tutorial and post your comments. wink.gif cool.gif biggrin.gif

Speedy


Thanks so much. You really decrobed it good. Your awesome xD biggrin.gif
Go to the top of the page
 
+Quote Post
JUDGE_RELIC
post Jan 2 2006, 04:40 PM
Post #4


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 44
Joined: 2-January 06
Member No.: 10,423



You helped me with some questions I had, thanks
Go to the top of the page
 
+Quote Post
GodDog
post Mar 20 2006, 04:11 AM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 20-March 06
Member No.: 12,127



This looks very good i will try this out and see what it will do is it mostly used in games
Go to the top of the page
 
+Quote Post
iGuest
post Mar 12 2008, 04:04 PM
Post #6


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



drag and drop
Drag And Drop Tutorial

I want to move an object horizontally with mouse draging,
Just in the x- axis


-reply by saad
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Remove Bad Sectors Or Bad Clusters From HDD(17)
  2. 3ds Max Tutorial.(7)
  3. 3ds Max Tutorial #2-creating Reflective Materials(1)
  4. C#.NET: Web Timer Control Tutorial(3)
  5. Photoshop Tutorial: Full Grunge Signature(16)
  6. VB.NET: MS-Access Interaction Tutorial (Part I)(18)
  7. Using The Php Mail() Function For Images Or Attachments(3)
  8. Pre Loader Tutorial For Flash(6)
  9. Installing Glut To Dev C++(3)
  10. Wireless: Bypassing Mac Filtering(10)
  11. Problem With Drag And Drop (or So It Seems).(11)
  12. Phpbb - Installation Tutorial ( For Newbies Based On Astahost Cpane)l(5)
  13. Php Tutorial: Making A Shoutbox(11)
  14. Html Basic Tutorial(9)
  15. How To Make An Test-based Rpg Game!(4)
  1. Safety(9)
  2. How To Download Videos From Youtube(11)
  3. Photographing Fireworks(7)
  4. Linux Beginners - Tutorial On Editors In Linux.(3)
  5. C/c++ -gdb Linux Debug Tool(1)
  6. Gimp Userbar Tutorial(3)
  7. Bulletproof Ftp Server Tutorial(0)
  8. Moving To Fedora 9(1)
  9. Basic Html Tutorial(1)
  10. Psychostats(1)
  11. How To Understand A Database Schema(4)
  12. Here Are Some Great Php Tutorial Sites(4)
  13. Gimp Animation Tutorial(2)


 



- Lo-Fi Version Time is now: 11th October 2008 - 08:35 PM