-
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");
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|