|
|
|
|
![]() ![]() |
Oct 25 2005, 08:46 PM
Post
#1
|
|
|
Member [ Level 1 ] 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. Speedy |
|
|
|
Oct 26 2005, 09:27 AM
Post
#2
|
|
|
Member - Active Contributor 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!
|
|
|
|
Nov 8 2005, 05:09 AM
Post
#3
|
|
|
Newbie [ Level 2 ] 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 |
|
|
|
Jan 2 2006, 04:40 PM
Post
#4
|
|
|
Member [ Level 1 ] Group: Members Posts: 44 Joined: 2-January 06 Member No.: 10,423 |
You helped me with some questions I had, thanks
|
|
|
|
Mar 20 2006, 04:11 AM
Post
#5
|
|
|
Newbie [ Level 1 ] 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
|
|
|
|
Mar 12 2008, 04:04 PM
Post
#6
|
|
|
Newbie [ Level 1 ] 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 |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 07:46 AM |