A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: drag layer query

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    4
    is it possible to drag an image into a specific area that then activates an action? Preferably happening all on the same scene.

    is it possible to drag multiple images into the same area at different times that then activate different actions?

    Am I being clear?

    thanks
    b-

  2. #2
    "way too many questions"
    Join Date
    Feb 2001
    Posts
    312
    creat 2 MC's

    the one which is going to be dragged had this actions on the timeline
    ----

    on (press) {
    startDrag ("/dragthis", true);
    }
    on (release, dragOut) {
    stopDrag ();
    if (getProperty("/dragthis", _droptarget) eq "/drop") {
    tellTarget ("/drop") {
    gotoAndPlay (1);
    }
    tellTarget ("/dragthis") {
    gotoAndPlay ("play");
    }
    }
    }
    on (press) {
    setProperty ("/dragthis", _x, "");
    }
    -------

    Hope this helps!

    Joris

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    4

    little confused

    [QUOTE]Originally posted by JorisRotteveel
    [B]creat 2 MC's

    the one which is going to be dragged had this actions on the timeline
    ----

    on (press) {
    startDrag ("/dragthis", true);
    }
    on (release, dragOut) {
    stopDrag ();
    if (getProperty("/dragthis", _droptarget) eq "/drop") {
    tellTarget ("/drop") {
    gotoAndPlay (1);
    }
    tellTarget ("/dragthis") {
    gotoAndPlay ("play");
    }
    }
    }
    on (press) {
    setProperty ("/dragthis", _x, "");
    }

    I'm still having some difficulty with this script.
    Should "play" be a seperate scene or MC?
    Why the need to tellTarget ("/drop") gotoAndPlay (1);?
    Also is the setProperty necessary as well?
    Just trying to make understand how actionscripting works.

    Thank you
    b-

  4. #4
    "way too many questions"
    Join Date
    Feb 2001
    Posts
    312
    send an email to ja.rotteveel@chello.nl
    adn i'll send you an fla


    cya

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