A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: coin drag over script with livemotion 2

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    14
    hi,
    i want to make a script, that start an animation if i drag an objekt over another objekt. but i am not able to write this in the scripteditor. here is a nonworking mac samplefile:
    http://www.pheno.de/livemotion.sit
    who can help me?

    greatings from germany
    matthias

  2. #2
    I am not too handy with this sort of thing, I do more server side stuff... But you would possibly use the getBounds() to test if each movie clip was in the others space.

    In other words, say you have three objects, 1. Animation, 2. A Drag Object, 3. A Player Object. Now the Drag and Player Objects would be MC's or MCG's. When the Drag object and Player object intersect there getBounds(), it would play the animation.

    This is about all I can offer as I have not even played with getBounds() at all, but I do hope this helps a little.

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