Be a Supporter!

Need a certain button code.

  • 501 Views
  • 14 Replies
New Topic Respond to this Topic
Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Need a certain button code. 2006-05-22 18:35:41 Reply

i need to know the code for a button that jumps scenes. Im making a soundboard with multiple people's voices on it, all on a seperate scene for each 1. Say for example, i want to get from the into screne, to the "Doug" scene, how can I do that?

So if any1 can help it would be appreciated, thanks. If my question gets answered soon, u can expect to see it soon here.

Arthur_Swordswinger

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Need a certain button code. 2006-05-22 18:37:20 Reply

on(press){
gotoAndStop("Doug", 1);
}

N.B. That'll only work if the Scene is called Doug. Just replace Doug with the name of your Scene.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 18:40:35 Reply

wow, i refrashed the page and there was already a reply, lol wow fast. anyhow thanks man that helps a lot!

Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 19:15:27 Reply

hrmm... didn't work, can some1 explain how to apply it please, im still somewhat new to flash, but im not a noob.

Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 19:19:01 Reply

it was a button already, and i pasted that code into the actions panel, but when i tested the movie, the button did nothing

Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 19:22:33 Reply

yes

Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 19:46:47 Reply

is any1 here able to let some suport/advice?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Need a certain button code. 2006-05-22 19:51:15 Reply

At 5/22/06 07:46 PM, Arthur_Swordswinger wrote: is any1 here able to let some suport/advice?

Hmm provided you put that in a button, and the Scene is called Doug (and not doug-flash is CaSe SeNsAtIvE) it should work fine.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 20:00:10 Reply

oh, ok, let me try that then

UknownXL
UknownXL
  • Member since: May. 22, 2005
  • Offline.
Forum Stats
Member
Level 14
Blank Slate
Response to Need a certain button code. 2006-05-22 20:02:26 Reply

Are you sure its on the button?
Is there any errors in the action panel.

Try this.

on(release){
this.gotoAndPlay("Doug");
}

Arthur-Swordswinger
Arthur-Swordswinger
  • Member since: Jun. 8, 2004
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Need a certain button code. 2006-05-22 20:16:08 Reply

no, its fine now i got it working. Turns out my coding wasn't in the same case as the tittles of my scenes.

All i need now is how to link a webpage now. any help?

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to Need a certain button code. 2006-05-22 20:20:13 Reply

At 5/22/06 08:16 PM, Arthur_Swordswinger wrote: All i need now is how to link a webpage now. any help?

on(press){
getURL("http://www.yousite.com", "_blank");
}


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature