A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Button = Action question....

  1. #1
    Junior Member
    Join Date
    Nov 2001
    Posts
    7
    Ok, what i would like to do is to make an action in the "hit" so that when the user press the button it would go to let say "Scene 2, frame1" but is not letting me put any action in the button it self....how can i do it?

    thanks

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Posts
    28

    Button

    In Flash 4 you could put frame actions inside the button but Flash 5 wont let you. What you need to do is to place an instance of the button on the stage then select it and open the actions panel. Put this code in there:

    on (press) {
    gotoAndPlay ("Scene 2", 1);
    }

    Alternatively you can place a movie clip within the button at the "hit" frame then attach code to the movie clip.

    Hope this helps you out. Contact me via email@digitallamb.com if you need more help

  3. #3
    Junior Member
    Join Date
    Nov 2001
    Posts
    7

    thanks

    thanks a lot for your help.

  4. #4
    Junior Member
    Join Date
    Nov 2001
    Posts
    7

    didnt work :(

    i did what u told me and it keep going from scene1 to scene2 back and forward dont know what am i doing wrong.

  5. #5
    Junior Member
    Join Date
    Nov 2001
    Posts
    7

    never mind i got it :)

    all i need it to do was put stop in front of your code, 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