A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: I have a forward and backward button how do I get it working?

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    3

    I have a forward and backward button how do I get it working?

    Heres an example of my button script, I just copied the parts for my button. How would I get it to go to the second page of my animation?





    btn_Moon.addEventListener(MouseEvent.CLICK, buttonClickMoon);




    public function buttonClickMoon (e:MouseEvent)
    {

    page1.gotoAndStop("Moon");

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    3
    in my code I did this


    public function buttonClickForward (e:MouseEvent)
    {


    gotoAndStop(2);



    and got my forward button working, but i cant get my backward button working. Also my buttons on my second frame arent working, when I click the button nothing happens.

    Heres my code for my animation on the second frame....

    btn_wind.addEventListener(MouseEvent.CLICK, buttonClickWind);





    public function buttonClickWind (e:MouseEvent)
    {

    page1.gotoAndStop("Wind");



    am I suppose to do anything in the code to tell its on the second frame?

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