Please help me - draggable items

  • tomatorama
  • Born
  • Born
  • tomatorama
  • Posts: 1

Post 3+ Months Ago

I want to be able to make a drag and drop doll, similar to the javascript ones you sometimes see, like this one: http://www.over-the-moon.org/dollz/dollmaker/make.html
I know it can be done because I've seen lots of similar things, like this one for example: http://www.indie-girl.com/dressupgame/
I just have no idea how to make my buttons into draggable objects. Please someone help me?
I prefer to use Flash 3 if possible, but if neccessary I have Flash 5, but am unfamiliar with it.

Thanks

Katie
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SycomCOmp
  • Graduate
  • Graduate
  • User avatar
  • Posts: 171
  • Loc: USA

Post 3+ Months Ago

It's simple

COPY THIS :arrow:
Code: [ Select ]
on (press) {
    _alpha = 50;
    startDrag(menu);
}
on (release) {
    _alpha = 100;
    stopDrag();
}
  1. on (press) {
  2.     _alpha = 50;
  3.     startDrag(menu);
  4. }
  5. on (release) {
  6.     _alpha = 100;
  7.     stopDrag();
  8. }


Attach that to a movieclip, It'll drag and drop when you release it!

I've added the _alpha = 50 so that when the image is selected it will dim... You can remove that if you want

Later
:arrow: SycomCOmp :idea:
  • phpSelectah
  • Student
  • Student
  • User avatar
  • Posts: 97

Post 3+ Months Ago

nice one :)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 3 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.