The McLeodGaming forums were permanently closed on April 30th, 2020. You are currently viewing a read-only archive.
View unanswered posts | View active topics It is currently Fri May 15, 2020 5:40 am

Forum rules


IMPORTANT

This Forum is for Flash related questions ONLY! Do not ask questions about spriting, Game Maker, Photoshop, or anything else not related to Flash.



 [ 11 posts ] 
[Resolved] Buttons won't work 
Author Message
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
I can't get my buttons to go the the frame I want it to go! I don't whats wrong (it might my code since I'm a noob). Can anybody give the code? I'm using Flash Pro. 8 and Actionscript 2.0(and I already use the gotoStop method).
Image
Click here to level up my card!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sat Mar 28, 2009 7:46 pm
WWW
User avatar

Joined: Tue Aug 12, 2008 2:07 pm
Posts: 39
one way that you can do the code is
give the frames you want to go to like call frame 2 "second"
then put something like this in a button

Code:
on(release) {
   if (Key.isDown(Key.SPACE)) {
      gotoAndStop("second");
   }
}


(you can name the frames what ever you want)
(you can also change the button you want to use to others this can help http://forums.mcleodgaming.com/viewtopic.php?f=10&t=376&start=0&st=0&sk=t&sd=a)

Edited by X2I: Added CODE tags around the actionscript

_________________
get free wii points here!


Mon Mar 30, 2009 5:40 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Thanks! I'll try that out today.
Image
Click here to level up my card!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Tue Mar 31, 2009 4:45 pm
WWW
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
It didn't work. If i wasn't specific, i meant buttons you click on.
Image
Click here to level up my card!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Sat Apr 04, 2009 10:29 pm
WWW

Joined: Mon Aug 11, 2008 11:33 am
Posts: 22
Try this code.Put the code into the button actionscript. I dont have flash open so maybe there are typos.

Code:
on(release) {
  gotoAndStop(frame number);
}


Last edited by x2i on Sun Apr 05, 2009 2:23 pm, edited 1 time in total.

Fixed coding errors and formatting



Sun Apr 05, 2009 12:45 pm
User avatar

Joined: Tue Aug 12, 2008 2:07 pm
Posts: 39
sora12 wrote:
It didn't work. If i wasn't specific, i meant buttons you click on.

the code that i gave you was for the space button
to make a button that you can click on is:

Code:
on(release) {
        gotoAndStop(put a frame number here);
}

_________________
get free wii points here!


Sun Apr 05, 2009 4:18 pm
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Thank you! It finally work! :D I was getting pretty annoyed not knowing how to make a simple button go to the right frame. :facepalm:
Image
Click here to level up my card!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Tue Apr 14, 2009 3:44 pm
WWW
User avatar

Joined: Mon Aug 11, 2008 6:56 am
Posts: 469
Location: not so superhappy fun fun land....
jgillotti1352 wrote:
sora12 wrote:
It didn't work. If i wasn't specific, i meant buttons you click on.

the code that i gave you was for the space button
to make a button that you can click on is:

Code:
on(release) {
        gotoAndStop(put a frame number here);
}

not to be rude, but that code you gave him was to click on it AND press space.
your new one is right though.
I just said this just for the record. no offense

_________________
Image

ashante08 wrote:
We argue, we try to understand each of our problems, we argue some more, rinse and repeat


Thu Apr 23, 2009 6:24 pm
User avatar

Joined: Tue Aug 12, 2008 2:07 pm
Posts: 39
johnnyg5646 wrote:
jgillotti1352 wrote:
sora12 wrote:
It didn't work. If i wasn't specific, i meant buttons you click on.

the code that i gave you was for the space button
to make a button that you can click on is:

Code:
on(release) {
        gotoAndStop(put a frame number here);
}

not to be rude, but that code you gave him was to click on it AND press space.
your new one is right though.
I just said this just for the record. no offense

yeah i know when i tested it out i found that out also so i had to change it

_________________
get free wii points here!


Sat Apr 25, 2009 7:03 pm
User avatar

Joined: Wed Apr 29, 2009 11:28 pm
Posts: 323
Location: Nowhere, Antarctica
Gender: Anime Girl
Skype: Evilagram
Come on, a noob like you HAS to have the code prompt enabled. It's RIGHT there.

Code:
on(keyPress "<Left>"){
   youAreAlreadyDead("ATATATATATATATAT!");
}

_________________
Image

Style [Stayl] (n) - One's unique and personal method of defacing a perfectly good piece of paper.

READ THIS: http://ipgd.freehostia.com/copypasta.html


Thu Apr 30, 2009 12:25 am
User avatar

Joined: Fri Mar 27, 2009 8:55 pm
Posts: 282
Location: Why do you want to know you perv!
Gender: Male
Skype: lomeli1241
Currently Playing: Kingdom Hearts Re:Coded (JP)
Okay, you guys can stop posting now. You solved my problem a lllooonnnggg time ago. I'm requesting a :lock: so you won't waste your, I dunno, time?!

_________________
Image
Image
Give cred 2 Doromac
Mes Amis: show
BICURIOUS GEORGE
daniel
King Master X12
Neo_Fire_Sonic
Racerx52
Sora
Tycron
Tyli
User Avatar
yoh
Envoyez-moi un message pour être mon ami! Ha! That's French 4 Pm to be Friends


Mon Jun 15, 2009 5:22 pm
WWW
Display posts from previous:  Sort by  
 [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.