A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: i hope it is possible

  1. #1
    Senior Member
    Join Date
    Apr 2000
    Posts
    136

    Lightbulb

    i have 7 buttons in the background of the movie.
    i want that when ever some one clicks on one of the buttons, a mc will start in the exact spot that the user touched.
    is it possible?

    thanks

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,092
    It sure is possible.
    What i would do is put the each button in a movie clip
    get each movie clips _x and _y
    and set up a 2 variables
    set variable ("clicked") = 1
    set variable ("notclicked") =0

    Then use IF
    to check if a button is clicked
    if yes which would = 1
    the Set Properties
    to the same _x _y for both movie clips
    so it replaces the button movie clip with the new movie clip.


    I tried to keep my example here simple for you


    another thing you can do is set the visibility
    to false
    Set Property Visibility = False
    then the button action would be

    On Release
    Begine Tell Target (" mc's instance name here")
    Set Property Visibility = True
    End Tell Target

    Just make the movie clips invisible
    then when the button is pressed set them back to visible.

    Just some ideas for you...



  3. #3
    Senior Member
    Join Date
    Apr 2000
    Posts
    136

    thank for the help

    but i'm kinda new to flash and couldn't understand how to do what you said(espacially the part about the x and y)
    from what i undersood i think what you suggusted would make the mc on the button that would be clicked, and i want it to be where ever the user would clicked, so it could be on diffrent places on evry button.

    hope you could help me

    thanks

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