Be a Supporter!

OMG

  • 439 Views
  • 8 Replies
New Topic Respond to this Topic
AlmightyHans
AlmightyHans
  • Member since: Aug. 6, 2004
  • Offline.
Forum Stats
Moderator
Level 11
Filmmaker
OMG 2005-09-19 15:43:51 Reply

i need to know a few action scripting help.

1st of all, what code do i use if i want to make a button that when you click it will send you to a newgrounds submission.

2nd, i need to know wat code to use to make a replay button

that is all...please, no flashkit, i already looked and if you find it yourself that would be nice, but by anychance does anyone know these codes?


BBS Signature
liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to OMG 2005-09-19 15:48:01 Reply

At 9/19/05 03:43 PM, almightyhans wrote: i need to know a few action scripting help.

1st of all, what code do i use if i want to make a button that when you click it will send you to a newgrounds submission.

on(release){
getURL("newgrounds submission URL", "_blank");
}

2nd, i need to know wat code to use to make a replay button

on(release){
function replay(){
_root.gotoAndPlay(1);
}
replay();
//code by -liam-, don't use without crediting me or I'll hack your mum.
}

by anychance does anyone know these codes?

Yeah.


Sup, bitches :)

BBS Signature
Nemo
Nemo
  • Member since: Jun. 13, 2003
  • Offline.
Forum Stats
Member
Level 34
Game Developer
Response to OMG 2005-09-19 15:48:15 Reply

At 9/19/05 03:43 PM, almightyhans wrote: i need to know a few action scripting help.

1st of all, what code do i use if i want to make a button that when you click it will send you to a newgrounds submission.

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

2nd, i need to know wat code to use to make a replay button

on(press){gotoAndPlay(1);}
Just change the 1 to the first frame of the movie or use a frame label.


BBS Signature
AlmightyHans
AlmightyHans
  • Member since: Aug. 6, 2004
  • Offline.
Forum Stats
Moderator
Level 11
Filmmaker
Response to OMG 2005-09-19 15:50:46 Reply

THANX! you guys names will be in the cartoon kee an eye out for it, it might be out in a week or so.


BBS Signature
Paranoia
Paranoia
  • Member since: Apr. 22, 2005
  • Offline.
Forum Stats
Member
Level 35
Game Developer
Response to OMG 2005-09-19 15:52:28 Reply

At 9/19/05 03:48 PM, -liam- wrote:
At 9/19/05 03:43 PM, almightyhans wrote: i need to know a few action scripting help.
2nd, i need to know wat code to use to make a replay button
on(release){
function replay(){
_root.gotoAndPlay(1);
}
replay();
//code by -liam-, don't use without crediting me or I'll hack your mum.
}

My code is teh better:

on(release){
_root.gotoAndPlay(numberOfFrameYouWantToRe
playFrom);
}

That took a while to work at so put me in your credits k?

And your authors comments. Actually if you use this I am officially co-animator.


BBS Signature
liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to OMG 2005-09-19 16:07:08 Reply

At 9/19/05 03:52 PM, -Paranoia- wrote: on(release){
_root.gotoAndPlay(numberOfFrameYouWantToRe
playFrom);
}

Don't use that code, it will crash Internet Explorer and Firefox.


Sup, bitches :)

BBS Signature
iggy101
iggy101
  • Member since: Aug. 15, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to OMG 2005-09-19 16:09:16 Reply

...lol your retarded, the only reason you helped was to get in credits. you should help to help, not to get somthing in return

liam
liam
  • Member since: Dec. 11, 2004
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Response to OMG 2005-09-19 16:17:40 Reply

At 9/19/05 04:09 PM, iggy101 wrote: ...lol your retarded, the only reason you helped was to get in credits. you should help to help, not to get somthing in return

lol @ you.

I helped him because I do that, it's my job. I put the quote in as a joke. I really don't care if I get mentioned in the credits because all I did was give him an easy code. I did it the hard way too, there was no reason to use a function but I like using them (they r s0 sxc).


Sup, bitches :)

BBS Signature
asianxpunk
asianxpunk
  • Member since: Dec. 13, 2004
  • Offline.
Forum Stats
Member
Level 03
Blank Slate
Response to OMG 2005-09-19 17:21:09 Reply

At 9/19/05 03:52 PM, -Paranoia- wrote:
That took a while to work at so put me in your credits k?

haha, it took you a while to do a gotoAndPlay script...