Forums → Programming Forum → Workign With Buttons
- 2 Replies
As some of you may know, I'm trying to learn Flash and Action Script right now and I'm currently working with buttons.
I've been following tutorials on newgrounds and Have learned how to use buttons to when you click them take you to different pages and to play or stop the animation.
I've come to trouble though. I've been tryign a simple button right now. On frame 1 I have my button that says "click me" and on frame 2 I have the word "YAY!"
I scripted the button to when it is clicked it takes you to frame 2. But when I try to edit the actionscript for Frame 1 to stop the animation when it reaches that frame, It also changes the button's script to stop on this page as well.
Can someone please tell me what I'm doing wrogn and How I should go about fixing this problem.
Thanks in advance to those who help me.
Can you please supply the code you are using? It would make it a lot more easier to figure out your problem.
Make sure you have a stop() on frame one. Then the button should have gotoAndStop(2) nested in a on(Release).
You must be logged in to post a reply!
We strive to deliver the best gaming experiences... on the internet and on your mobile phone. Play thousands of free online games for kids, get access to free mmorpg games, online rpg games, fun online flash games, and more.
We offer free flash games in many different genres: online shooting games, online puzzle games, online war games, free online car games, free online hidden object games and dozens more.
This is the best place on the web to play online games for free... play on Armor Games! No matter what game style you prefer, we've got it here.
Gaming websites, passionate bloggers, and quirky streamers are welcome to share or review our games. If you need game keys, art, trailers, screenshots or more check out our press kit website.
Game developer? Visit developers.armorgames.com to request AG developer status, find documentation on our APIs, and get access to our development environment. Let's make sweet, sweet games together.
Looking for a publishing partner that can help your app rocket to success? Contact the mobile team to learn more about how we can help!