dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help Please

  1. #1
    Member
    Join Date
    Oct 2001
    Posts
    45

    Help Please

    Im kinda trying to make a game and i need to know how i can make a button that, when i click on it, makes more, draggable, buttons so i can move them around a board. thanks!

  2. #2
    Dreams in Actionscript
    Join Date
    Jan 2001
    Posts
    97
    That one will be fun to put together, I don't have the time to do it all for ya.. But you wanted a challenge anyway,

    You want to probably use movieclips instead of buttons and and use mouse events:

    onClipEvent (mouseDown) {

    movieclip.duplicateMovieClip(newname,depth);

    }

    If you still want the movieclip to act like a button, the easiest thing to do is make a button, and put it inside of a movie clip, then put your code on the movie clip instead of the button. It will still react the same, but the code handles a bit differently..

    Then you make a

    onClipEvent (load){}

    handler on the movie clip that has code that basically says:

    "If I am a new clip(new name), then start moving me around the screen"

    Or whatever else you want the thing to do.

    Anyway.. I know this isn't exactly a "How To" but it should point you in the right direction. Someone wise once told me "Never do anything for someone that they can do themselves." So good luck, and if you need help along the way, I would be glad to.


    Cheers!

    IconD
    (Insert Witty Remark Here)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center