A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Can't quite get this to work..any help?

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    16

    Can't quite get this to work..any help?

    Trying to create several dragable/throwable objects. Trouble is I can only get one to work.... anybody got any ideas. Check out the .fla's attached

    Thanks
    Attached Files Attached Files

  2. #2
    Senior Member DrDoom's Avatar
    Join Date
    Apr 2006
    Posts
    144
    What's the problem? I don't see it.
    -luke.slashmedia.co.uk(my site)
    (^.^)

  3. #3
    Junior Member
    Join Date
    Apr 2006
    Posts
    16

    only one object will throw & bounce...

    the code works great with one object. But I need multiple objects for the effect i require. When I try placing extra objects they do not have the same throw and drag capabilities....only one object will work...

    any ideas?

  4. #4
    Senior Member DrDoom's Avatar
    Join Date
    Apr 2006
    Posts
    144
    It's because you're storing all of the variables in root so the variables storing the balls speed etc are also storing the pic's speed etc.

    Just put the code locally and it'll work.

    I've attached a working copy.
    Attached Files Attached Files
    -luke.slashmedia.co.uk(my site)
    (^.^)

  5. #5
    Junior Member
    Join Date
    Apr 2006
    Posts
    16

    problem solved!!!

    Thanks so much for sorting the code... it works a treat.

    You are a Flash God!!

    Cheers

  6. #6
    Junior Member
    Join Date
    Apr 2006
    Posts
    16

    One final thing

    Hi hope you can solve this one (hopefully easy) thing.

    When I want to double click on an object I had it direct to a URL on the test. For the site I need the object to open into a larger panel in Frame 2. I labeled the frame "chris" and used a 'GotoAndStop' instead of 'getURL'. But this does not seem to work..any ideas why?

    I've included the fla so you can have a look

    Thanks
    Attached Files Attached Files

  7. #7
    Senior Member DrDoom's Avatar
    Join Date
    Apr 2006
    Posts
    144
    Needs to be _root.gotoAndStop
    Without the _root it tries to change the frame of the draggable MC.
    -luke.slashmedia.co.uk(my site)
    (^.^)

  8. #8
    Junior Member
    Join Date
    Apr 2006
    Posts
    16

    Thanks...

    Finally got everythhing working a treat

    Thanks again for all 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