Jump to content


infinite sound loop


  • You cannot reply to this topic
No replies to this topic

#1 b3rg

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 18 February 2008 - 02:57 PM

Sorry obviously the wrong place to put it.
But i dont see any other section related to swish.

Im hoping the swish and flash scripts are the same so here goes.

Basically i want to create nothing but a small white square that i can tuck away underneath a <div> where it cant be seen, and just continously loops a .wav file i have. Without the use of a start/stop or volume controls. Ive been using the program about 10 minutes and am really frustrated. So far it looks like this.

onFrame (1) {
		
	  play(mysound);
	  mySound = losk();
	  mySound.loadSound("losk.WAV");
	  mySound.start(0, 1);
	  
	}
	onFrame (160)
	{
	
		gotoAndPlay(1);
	}

So as you can see if its right at all. it starts the .wav file at frame1 looping 1 time and the .wav file ends at 160 so i tell it to go back to frame 1 again. Yes i, imported the sound wav. and at one point manged to get it to play but the file sounded corrupted. stopped it and now can get it to play again.

Honestly im too busy working with html/css/graphic design to start worrying about how to use flash/swish for this one little thing right now. If somebody could do me a favor and complete this would help me a whole lot so i dont have to spend all day trying to learn a new program.

I wouldn't even need this if i could get the loop i have in mp3 format without the inevitable silence gaps at the start and end of the file. Or if there was some small flash .wav file player that loops for free.

any insight would be greatly appreciated!




update:
after a few more minutes of tinkering i got it to work again.

  onFrame (1) {
  mySound = new Sound();
  mySound.loadSound("losk.wav");
  mySound.start(0, 1);
}


onFrame (161)
{

	gotoAndPlay(1);
}

but for some reason the loop isnt clean. There is a slight pause when it starts over.
thoughts?

Edited by b3rg, 18 February 2008 - 03:36 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users