A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Why doesn't works this??

  1. #1
    Junior Member
    Join Date
    Dec 2000
    well, I can't understand why it won't work.
    I've got a frame 2. I can drag it and it hits. But it won't go to frame 2.
    And the script is this:

    onClipEvent (enterFrame) {
    if(_root.mcHitArea.hitTest(_root.mcDrag)){gotoAndP lay (2);}
    [Edited by Manfred on 06-04-2001 at 09:29 AM]

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Your code works fine provided you want to go to frame 2 of the MC which has the code on it. If you want to send the main timeline to frame 2 then use the root prefix:

    onClipEvent (enterFrame) {
    if (_root.mcHitArea.hitTest(_root.mcDrag)) {

    Good luck.

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