dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: pg. 189 flash manual (examine _droptarget)

Hybrid View

  1. #1

    Question

    I've been trying to figure this one out for a couple weeks, How to have a dragable movie trigger specific actions? (pg 189 flash manual) How do I "examine the _droptarget property"? I tried

    If _droptarget (name="trash")
    Go To ("nextmovie 1")
    End If

    but my syntax is obviously wrong, amoung other things i'm sure, and where do i put this statement? I used

    On(Press)
    Start Drag (Get Property(x,y))
    End ON
    On (Release)
    Stop Drag
    End ON

    would i put the evaluation statement after "Stop Drag"? any knowlaedge you could pass on to me would be greatly appreciated



  2. #2

    Post

    Wooo yeah.. thats some bad syntax.. First of all your strucuture would be as follows:
    Inside of your main timeline you would have a movie clip that you wanted to drag, and all of your target MCs. Keep in mind that the targets need to be named (the instances that is)

    Now, inside of the MC you want to drag should be a button, the actions attached to that button should be as follows:

    On (Press)
    Start Drag ("", lockcenter)
    End On
    On (Release, Release Outside)
    Stop Drag
    If (_droptarget eq "/trash")
    End If
    End On

    Then, inside that If statement put the code you need...
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000017.swf" quality=high WIDTH=350 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  3. #3

    Post

    many thanks aquaman, however after following these instructions very carefully, and re-checking everything 15 times it still does not work, I added a "Go TO and Play 10" to the if statement and was ever so careful, if anyone has time to check it out I put the test fla(for download) at:
    http://members.aol.com/magiksound/flash/droptarget.fla

    Thank You very much

  4. #4

    Post

    Thats because you are working in multiple timelines.. you want the main movie to jump to frame 10 correct?
    Then you have to tell target to that time line and put the appropriate actions inside of the tell target.
    In this case, your target would be /
    <EMBED src="/cgi-bin/ubb/Members/sigs/00000017.swf" quality=high WIDTH=350 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>

  5. #5

    Post

    oh, yes, forgot to turn my brain on, thanks so much for your help

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