A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: activate button from inside a movie clip?

  1. #1
    Junior Member
    Join Date
    Mar 2002
    Posts
    16

    activate button from inside a movie clip?

    Hi everyone..

    I'm trying to get a button which is inside a movie clip to lead to another scene with the following:
    on (press) {
    gotoAndPlay ("licensed", 1);
    }

    Where "licensed" is the name of the scene where i'm trying to go.

    I have no problem having the button lead to the next scene if the button is sitting directly on a scene, the problem is when i put the button inside a movie clip so it's not "directly" sitting on the scene.

    If anyone understands what i mean, is it possible to do? and how?

    thanks!

  2. #2
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282
    Code:
    on (release) { 
       _root.gotoAndPlay("frameLabelHere");
    }

  3. #3
    Junior Member
    Join Date
    Mar 2002
    Posts
    16
    I'm afraid it doesn't work, on the button itself or on the movie clip neither :/

    Anything else i could try? Or perhaps any example i could find?

    Thanks for the tip though

  4. #4
    Junior Member
    Join Date
    Mar 2002
    Posts
    16
    Sorry my bad, i put the name of the scene instead of a frame label. Now it works!

    Thanks a bunch estudioworks! You just saved me hours of work!

    I still don't get it why it won't work with just a goto and the scene name, since the scene name is available from the pulldown menu, you'd think the movie clip would figure out how to find a scene without resorting to a frame label name within the target scene. Anyways, i should stop thinking about it and use the way it works..

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