Jump to content


Photo

Pause Sound In Swishmax?


  • Please log in to reply
9 replies to this topic

#1 gabito2005

gabito2005

    New Member

  • New Members
  • Pip
  • 4 posts

Posted 02 October 2004 - 02:20 AM

Hi friends! B)

I need your help! :(

I not know, pause a sound in SwishMax... :blink:

To stop sound, is impossible resume sound!

Please! HELPME!!! :unsure:

#2 jwr1

jwr1

    Advanced Member

  • Members
  • PipPipPip
  • 2612 posts
  • Location:Canadian in the US

Posted 02 October 2004 - 02:12 PM

Hi gabito2005,

This is not a bug.

There are different ways to do this in Swishmax.

For example:
If you "import" the sound/music as a "Sountrack" within a sprite you can stop, start and Pause (stop without returning to frame 1) the music/sound.

Post this question in the regular Swishmax forum and others will assist you in finding a solution to your particular needs.

Blessings

jwr
Tutorial - Use Action Script to play, pause, stop and cause other things to happen: http://forums.swishz...?showtopic=8983

#3 gabito2005

gabito2005

    New Member

  • New Members
  • Pip
  • 4 posts

Posted 03 October 2004 - 02:45 AM

Hi gabito2005,

This is not a bug.

There are different ways to do this in Swishmax.

For example:
If you "import" the sound/music as a "Sountrack" within a sprite you can stop, start and Pause (stop without returning to frame 1) the music/sound.

Post this question in the regular Swishmax forum and others will assist you in finding a solution to your particular needs.

Blessings

jwr

WHAT?? :huh:

"SoundTrack"?? This word, not it is in the SwishMax...

That I must do, for insert this SoundTrack??

I talk, spanish... I from Argentina. Are you can talk spanish?

Thanks, and helpme!

#4 gabito2005

gabito2005

    New Member

  • New Members
  • Pip
  • 4 posts

Posted 03 October 2004 - 06:30 AM

Ohhhh! Thanks!!

I download SwishMax 2004!!!!

Before tapeworm SwishMax 2003... This version not haven't the option for SoundTrack...

Now, have version 2004... Not more problems!

Very Thanks, JWR!!! :lol:

#5 jwr1

jwr1

    Advanced Member

  • Members
  • PipPipPip
  • 2612 posts
  • Location:Canadian in the US

Posted 03 October 2004 - 08:32 AM

Glad it worked out for you.

If you have any further questions please feel free to post them in the regular (non bug forum) forums at Swishmax.

Blessings

jwr
Tutorial - Use Action Script to play, pause, stop and cause other things to happen: http://forums.swishz...?showtopic=8983

#6 uncleles

uncleles

    New Member

  • New Members
  • Pip
  • 4 posts

Posted 05 March 2005 - 06:09 AM

How do you do this? I read the explanation and English is my native language and I still don't understand how to pause sound. I tried using the action script you propose in your linked post, but I get errors with SwishMax not recognizing what the variable "Sound" is. Any help for a hopelessly clueless non-programmer type would be appreciated. Thanks.

#7 Michael Chrysler

Michael Chrysler

    Advanced Member

  • staff Moderator
  • PipPipPip
  • 4680 posts

Posted 05 March 2005 - 06:38 AM

Fristly you cannot use play sound()

You must have a current version of swishmax.
as noted above

The soundtrach must be in the _root level
(no sprites ergo you might want to consider using
the soundtrack as a loaded movie if you have effects
in your main timeline)

Open swish.
From the INSERT menu select soundtrack
import your soundfile

Now the music will play automatically so long as the movie
plays.

create a button.
On Event
Play()

create another button
On event
stop

The sound track is matched up to the frames
ergo play and stop will play or stop the movie and
hence the soundtrack.

#8 uncleles

uncleles

    New Member

  • New Members
  • Pip
  • 4 posts

Posted 05 March 2005 - 07:04 AM

Thanks, Michael! One follow-up question. This works great if I have one sound that runs throughout the entire scene, but SwishMax will only let me add one soundtrack. What if I want music in the background with narration in a different sound file? How would I pause all sounds then? Again, thanks for the help! Much appreciated!

Les :^)

#9 Michael Chrysler

Michael Chrysler

    Advanced Member

  • staff Moderator
  • PipPipPip
  • 4680 posts

Posted 05 March 2005 - 08:51 AM

Hi,

I hope you have broadband
if you get a dead link to this file please
wait ,,,I don't have broadband and am uploading it now.

http://mikechrysler.com/base.zip

When you first get the zip open swish and export
the swf's to the same folder as the swi's before
doing anything else.

Once that is done
Check out the frame actoin on frame 1 scene1
which calls str.swf to load into level01

If you want to make play and pause easy on yourself
check out str.swi it has simply stop play....

If you want to control str.swf (loaded in level one
check out the event actions I have assigned to
play and pause text objects.

edited to correct url for file

Edited by Michael Chrysler, 05 March 2005 - 09:21 AM.


#10 jwr1

jwr1

    Advanced Member

  • Members
  • PipPipPip
  • 2612 posts
  • Location:Canadian in the US

Posted 05 March 2005 - 01:47 PM

Hi uncleles,

If youwould like to play more than one mp3/music in your movie... then you can use the Action Script method I have outlined in my tutorial.

Actually, you can play up to 8 different sounds/music/mp3 at the same time.... and all this can be done throughout your entire movie from one scene to the other without interuption.

A couple of things to note -- in your posts above.... if you are using the Action Script method -- as outline in the tutorial -- you must (a) have the movie export set to swf6 and (B) test it either in the browswer or stand alone player -- not in Swishmax.

Regarding your pause button-- it's very easy to do. I have attached a demo -- one of the demos with the complete scripting available in the tutorial -- for you to see how this is done.

If you decide to go the Action script method and would like additional help please just post your questions.

Blessings

jwr
Tutorial - Use Action Script to play, pause, stop and cause other things to happen: http://forums.swishz...?showtopic=8983




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users