Jump to content


replay button and sound problem..


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

#1 pogolink

    Young Padawan

  • Members
  • Pip
  • 3 posts
  • Location:El Salvador

Posted 02 August 2006 - 12:21 AM

hi! all i need you to help me with this..
In Wanakos i have made an INTro..
i finally made the sound button on and off work.. but.. when the Intro finish if i click the replay button the INtro Starts again.. but then again... i cant override the sound from the intro before i click the replay button..
the question..
is there a way.. to click the replay button and.. that the intro sound nice... withouth double-sound..

hope u understand me ... CUz im havin my doubts about it.. :S :P

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 02 August 2006 - 04:10 AM

That happens because you put the sound on the timeline.. which basically should never be done (in my opinion) check a tutorial on this site where you add the sound with Actionscript.

http://www.kirupa.com has a few good ones as also http://www.actionscript.org

#3 bezz

    Young Padawan

  • Members
  • Pip
  • 23 posts
  • Gender:Male
  • Location:Berlin, NJ
  • Interests:Flash, Snowboarding, Paintball, Learning Guitar

Posted 03 August 2006 - 01:53 PM

A simple (and not recommended for large projects) solution would be to just put stopAllSounds(); within the replay code.
Something like this:
on(press){
stopAllSounds();
//some gotoandplay code here
}
Funky soul is right though that audio should be inside some sort of object. An example of a bit more complcated way to load music:
playSong = new Sound();
playSong.setVolume(100);
playSong.loadSound(someSong,true);
playSong.play();

with this you can stop/pause the audio by simply saying playSong.stop();

Also, you can right click Sound(); in the actions panel and View Help. This should bring up tons of guidance.

#4 N4Z.

    Call me Yoda

  • Members
  • PipPipPipPip
  • 3,016 posts
  • Gender:Male
  • Location:127.0.0.1
  • Interests:Designing, Apple Fan Boy, Music Production and Weekends!

Posted 03 August 2006 - 02:05 PM

Also.. convert your text to symbol.. Otherwise the typewriter cursor appears over the text.. Just a little heads up :P

#5 pogolink

    Young Padawan

  • Members
  • Pip
  • 3 posts
  • Location:El Salvador

Posted 03 August 2006 - 03:40 PM

THnxs for the Help.. i think I'm Still a Noob.. :P But im gonna make progress here.. im Watching now.. how to load the file External... with AC.. but i comeup with another question.. if the audio its outside.. the Swf will be lighter, right?.. so? THat means that the loadin' time will be less... and that the audio will start later than the swf?.. or im wrong again??

Also I'm Seein' the typewriter cursor appears over the text.. well the first Text.. But in the Fla theyre alredy Objects.. do i have to Break Apart The Words.. And Make an Object For Each Letter??

#6 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 03 August 2006 - 05:11 PM

yeh the sound will load separetely.
and regarding the text, you just need to un-check the "text is selectable" from the text properties panel





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users