Programmically calling a button action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdawson2000
    New Member
    • Nov 2007
    • 3

    Programmically calling a button action

    Hello Gurus,

    I have a movie that is composed of a picture and 5 buttons below it. When the user clicks button1, a lighting effect occurs, then the image is changed to image1. When the user clicks on button2, the same lighting effect occurs, the the image is changed to image2 and so on.

    Now when the movie loads, I want to programmically fire off the actions of button1, button2, button3, button4, button5 in sequence.

    Pseudocode:

    On movieLoad()

    call button1.click()
    when button1.click() done call button2.click()
    when button2.click() done call button3.click()
    and so on.

    end moveLoad

    How would I go about doing this?

    Thx!

    Chris
  • cdawson2000
    New Member
    • Nov 2007
    • 3

    #2
    Wow I figured this would be a fairly simple problem. I'm I mistaken? Anyhelp on this question would be greatly appreciated!

    Thank,

    Chris

    Comment

    • rsdev
      New Member
      • Jul 2007
      • 149

      #3
      Originally posted by cdawson2000
      Wow I figured this would be a fairly simple problem. I'm I mistaken? Anyhelp on this question would be greatly appreciated!

      Thank,

      Chris
      Have you tried writing any code? If so, post here and I'll take a look!

      Comment

      • cdawson2000
        New Member
        • Nov 2007
        • 3

        #4
        No I haven't written any code, however, I downloaded the flash source from monstertemplate s.com so the code for the button click actions are already coded. I just wanted to modify the movie with my own enhancements

        I just wanted to know if there was a way in Flash to fire off a button click event programmically. Other I know it is possible with other scripting/programming languages.

        -Chris

        Comment

        • rsdev
          New Member
          • Jul 2007
          • 149

          #5
          Originally posted by cdawson2000
          No I haven't written any code, however, I downloaded the flash source from monstertemplate s.com so the code for the button click actions are already coded. I just wanted to modify the movie with my own enhancements

          I just wanted to know if there was a way in Flash to fire off a button click event programmically. Other I know it is possible with other scripting/programming languages.

          -Chris
          There are many different ways to wire an event to a button. So without seeing the code I wouldn't know which to suggest!

          Comment

          Working...