A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: MC drag around the scene problem

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    22

    MC drag around the scene problem

    I have a MC graphic in a scene that contains a button inside of it. When pressed, the button will jump to another frame inside the MC to show a new graphic. My problem is when I apply the script I can drag the mc graphic around the scene but the button does not work. Any ideas?

    Here is the script I attached to the MC on the main stage:

    on (press) {
    this.startDrag();
    }
    on (release) {
    this.stopDrag();
    }

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    If you have a movie clip behaving like a button, and a button inside that movie clip, only the external object (the movie clip) will work.
    How do you want flash to tell which one you're clicking? Flash chooses the one on top.

    Maybe you can place both the button and the mc in the same timeline, inside another movie clip. This last movie clip has no code, but the movie clip and the button keep their code, with different target paths maybe...

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