Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Problems with Drag and Dropping in Flash

Options
  • 05-04-2008 9:01pm
    #1
    Closed Accounts Posts: 401 ✭✭


    I am having problems with Drag and dropping in Flash. I have written / copied code into Action Script. i can pick up the object but it wont let me put it down.

    Heres the code so far im using

    square_mc.onPress = function():Void {
    this.startDrag(true);
    reply_txt.text = "";
    };
    square_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == squareTarget_mc) {
    reply_txt.text="You got it!";
    }
    else{
    reply_txt.text="No, keep trying!";
    }
    };

    ill be able to pick up the square but i cant put it down ?? why is this or what am i missing??? Do i need anothe layer??


Comments

Advertisement