Forum Topic: Stop a frame but keep music looping

(217 views • 7 replies)

This topic is 1 page long.

<< < > >>
None

Bomee

Reply To Post Reply & Quote

Posted at: 8/1/06 09:28 AM

Bomee FAB LEVEL 09

Sign-Up: 01/06/06

Posts: 26

I am making a no-sex and no-violence dating sim (but the girls are still hot) XD

i need to have buttons that lead to the next frame, like play or continue, but on those frames, the music stops looping

does anyone know the actionscript to stop a frame but keep the music looping?

thanks in advance


None

CronoMan

Reply To Post Reply & Quote

Posted at: 8/1/06 09:47 AM

CronoMan EVIL LEVEL 06

Sign-Up: 07/19/04

Posts: 2,727

At 8/1/06 09:28 AM, Bomee wrote: does anyone know the actionscript to stop a frame but keep the music looping?

Yes, I think someone in the flash forum knows

thanks in advance

No problem

"no sound in ass"


None

Momo-the-Monkey

Reply To Post Reply & Quote

Posted at: 8/1/06 09:49 AM

Momo-the-Monkey EVIL LEVEL 30

Sign-Up: 10/15/05

Posts: 3,096

this would go in the Flash Forum

on (release){
stop();
}

on (release){
gotoAndStop(FRAME NAME);
}

on (release){
StopAllSounds();
}

You should see Gir's Soundboard...
{ PHP: Main | | Java: Main }
Every Villian Is Lemons

BBS Signature

None

Momo-the-Monkey

Reply To Post Reply & Quote

Posted at: 8/1/06 09:50 AM

Momo-the-Monkey EVIL LEVEL 30

Sign-Up: 10/15/05

Posts: 3,096

sorry for the double post....but this is what you want....

on (release) {
nextFrame();
}

on (relese){
play();
}

on (release){
gotoAndPlay(FRAME-YOU-WANT-TO-PLAY);
}

You should see Gir's Soundboard...
{ PHP: Main | | Java: Main }
Every Villian Is Lemons

BBS Signature

None

Bomee

Reply To Post Reply & Quote

Posted at: 8/1/06 10:03 AM

Bomee FAB LEVEL 09

Sign-Up: 01/06/06

Posts: 26

sorry bout the wrong place to put the post

but can u elaborate on the scripts you provided? where exactly do i put the scripts, in the frame or the button itself?

thank you so much!


None

DannyIsOnFire

Reply To Post Reply & Quote

Posted at: 8/1/06 10:19 AM

DannyIsOnFire DARK LEVEL 16

Sign-Up: 04/14/05

Posts: 6,393

At 8/1/06 10:03 AM, Bomee wrote: sorry bout the wrong place to put the post

but can u elaborate on the scripts you provided? where exactly do i put the scripts, in the frame or the button itself?

thank you so much!

Quite obviously on the buttons, as its starts with On Release.
If it was On Clip Event, it would be on the frame.

Just think about it... On Release would make no sense being in the frame, as theres nothing to click :P
Simple =)

BBS Signature

None

Bomee

Reply To Post Reply & Quote

Posted at: 8/1/06 10:31 AM

Bomee FAB LEVEL 09

Sign-Up: 01/06/06

Posts: 26

problem is, with that code and the one i was using, the music stops looping on the frame

i want the music to continue even with that code... ?


Questioning

FlurpMonkey

Reply To Post Reply & Quote

Posted at: 8/3/06 01:13 PM

FlurpMonkey LIGHT LEVEL 07

Sign-Up: 02/02/06

Posts: 271

Well thats weird because I'm making a flash called The Square, The Round, and The Ugly and I have no such problem. I only have flash 8, actionscript 2, and my sound is in wave format. I just apply this code directly to the frame on which the animation should stop: stop()

Real simple.


All times are Eastern Standard Time (GMT -5) | Current Time: 09:01 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!