A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Unlocking buttons

  1. #1
    The guy full of problems
    Join Date
    Nov 2004
    Posts
    19

    Unlocking buttons

    I'm having a problem with my flash:
    I'm working on a movie with some easter eggs (total of 10 XD) and the problem is:
    When you find and click in all 10 easter eggs, another easter eggs is unlocked for you to find and click. But I have no idea how I can do this (what comand to use, what kind of Movie Clip to create...).
    PS.: all the easter eggs are in different scenes, so is the last one.
    Help would be really appreciated
    If you don't know flash then you don't know how to make things come true...

  2. #2
    Senior Member
    Join Date
    Dec 2003
    Location
    florida
    Posts
    386
    i never use scenes, but here is what i would do:

    have the final egg as a movie clip in the whole flash movie. give it a name like easter_egg.

    in the first frame, have an action like:
    easter_egg._visible = false; (i believe that is the notation to make a button inactive)

    then, when all the eggs are clicked, you can have another action (whether it's on the click of a certain egg, or when the movie gets to a certain frame, etc) like this:
    easter_egg._visible = true;

    let me know if that works.

    heather
    ---------------------------------
    http://www.heathercash.com

  3. #3
    African Savage
    Join Date
    Nov 2001
    Posts
    76
    Are you trying to go from scene to scene?

    If this is the case you can just use

    nextScene ();

    this will allow you to go from scene to scene.

    However, if you are trying to create more eggs within each scene I would recommend using the duplicateMovieClip() in conjunction with random(x) and random(y) to position your eggs randomly
    If you're going to shoot...shoot. Don't talk!
    - The Good, The Bad and The Ugly

  4. #4
    Senior Member
    Join Date
    Dec 2003
    Location
    florida
    Posts
    386
    Yes I guess that is a simpler way to do it then my way...
    ---------------------------------
    http://www.heathercash.com

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