Dragging Code
2 posters
Page 1 of 1
Dragging Code
Hey guys,Flash here to show you a code to drag objects.
Step 1. Open your animating program.
Step 2. Draw the object that can later on be dragged.
Step 3. Convert the object into a movie clip,if you dont have a feature like this,skip on to step 5.
Step 4. Open ActionScript in your animating program.
Step 5. Apply this code to your object :
on(press){
startdrag("");
}
on(release){
stopDrag();
}
Step 6. Save your file.
Step 7. Test it.
FINAL STEP. Upload your work on some website,like www.spamtheweb.com. I would love to see everyones work.
- Flash ^^
Step 1. Open your animating program.
Step 2. Draw the object that can later on be dragged.
Step 3. Convert the object into a movie clip,if you dont have a feature like this,skip on to step 5.
Step 4. Open ActionScript in your animating program.
Step 5. Apply this code to your object :
on(press){
startdrag("");
}
on(release){
stopDrag();
}
Step 6. Save your file.
Step 7. Test it.
FINAL STEP. Upload your work on some website,like www.spamtheweb.com. I would love to see everyones work.
- Flash ^^
Christian- Cub
- Posts : 14
Liobucks : 5214
Reputation : 0
Join date : 2010-02-24
Re: Dragging Code
Nice!
Thnx For The Help!
Thnx For The Help!
Lion- Lions Mountain Administrator
- Posts : 228
Liobucks : 5464
Reputation : -4
Join date : 2010-02-02
Age : 24
Location : USA
Character sheet
Lion:
Similar topics
» PlayerCard And Walking Code and some html!
» Webkinz(Golden Retreiver)Lil Kinz Code!
» Scrolling Code! write your message between [scroll] and [/scroll]
» Webkinz(Golden Retreiver)Lil Kinz Code!
» Scrolling Code! write your message between [scroll] and [/scroll]
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|