TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Flash sound... problems (sigh)

Page: 1 Reply
Jan 22nd 2003#86978 Report
Member since: Jan 19th 2003
Posts: 6
I really hope someone can help me out with this. I have my site up so you can see what I am talking about also.

http://www.systempill.com

In the top right corner after you enter the site you will see an
on/off button with a music icon beside it. Please click this button and you will notice the sound starts playing.

However, after about 10 seconds also which is howlong my loop is the music stops.

My questions is how do i get my sound to loop via the sound controls.

Additional info:
I imported sound into lib.
I used linkage . export action script . name "track1"
i setup button and code

similar to :

on (release) {
song = new Sound();
song.attachSound("track1");
song.start();
_root.speaker.play();

blah blah.. (sigh)

thanks ahead for any help
AstroBoy
Reply with Quote Reply
Jan 22nd 2003#87018 Report
Member since: Nov 26th 2001
Posts: 2586
There is a property box (not on the sound in the library) on the timeline where you can control how many times you want to loop it. traditionally you give it some huge amount (like 999) if you want it to loop indefinitely.

If you are using the attach sound function then you might need to script it so it loops on condition that the stop button has not been hit, or the page hasnt changed, etc. (not sure yet exactly how to do that =\) But that might be a "while" loop condition.
Reply with Quote Reply
Jan 22nd 2003#87043 Report
Member since: Jan 19th 2003
Posts: 6
I'm lost.

If I attach the sound to mc or timeline I loose the ability to control.

If I attach movie via actionscript, linkage I cannot get sound to loop

anyone?
Reply with Quote Reply
Jan 22nd 2003#87054 Report
Member since: Nov 26th 2001
Posts: 2586
Try this:

song.start([SecondOffset, loop]);
_root.speaker.play(0, 999);

Plug those attributes instead of what you have.
Second offset is just how many seconds an offest from the time you hit the button to when the sound plays.
Reply with Quote Reply
Jan 22nd 2003#87057 Report
Member since: Jan 19th 2003
Posts: 6
Thanks Marble for the help,

I found another method via a movie clip.

sites working thanks.

http://www.systempill.com

Now I just wish I had a better music loop to put up
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum