Beginner Question: Show/Hide A Button To Stop/Play Sound
Hello, I would like a movie clip in my site to either stop or play the background sound. This movie clip is visible by default on a frame. When I click the movie clip I would like it to disappear, stop the sound and be replaced by another movie clip to play the sound again.
In the stop sound movie clip I wrote: on (release) { stopAllSounds; stop._visible = false; play._visible = true; } But it does not work...
And what should I write in the play sound MC?
Thank you for your time.
Cheers
FlashKit > Flash Help > Flash MX
Posted on: 04-27-2003, 08:50 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Show/hide(and Play~ And And So~) A MC?
Weel. Here is my problem. I made 2 MC's and 1 button. In the frame that u can see is ony the button and 1 MC(weel, lets call it mcStanding) visible.
Actualy i want to make it so that when i press the button the mcStanding MC gets hiden and a small animation is playd that i made in the other MC(i call it mcAnimation)...
So when i press the button > mcStanding disappears> mcAnimation is played and after the animation is played the mcAnimation disappears and the mcStanding MC appears again... uf, i hope that you can understand what i mean/want to make.
I tryed it with setProperty("_root.mcAnimation", _visible, 1); and so but it does not work so weel. I can make it so that when i press the button the mcStanding MC disappears and the mcAnimation appears, but the problem is to play mcAnimation full and than make it setProperty("_root.mcAnimation", _visible, 0); and the mcStanding visible. I tryed many things like....
1) I added play(); on the first frame of mcAnimation and stop(); setProperty("_root.mcAnimation", _visible, 0); @ the last frame of mcAnimation but it didnt worket. When i pressed the button the animation wasn not played..
eh, i hope that som1 can help me...
Play And Stop Button Sound
hey people how can i make a play and stop button for sound on my flash movie?
I am Using flash 5.
Ps. I have a stop button and a play button.
Play And Stop Button For Sound
hey people how can i make a play and stop button for my sound on my flash movie?
I am Using flash 5.
Ps. I have a stop button and a play button.
Play And Stop Button For Sound
I would like to create 2 simple buttons fot example a round button for playing my sound and a triangle for stopping my sound.creating the buttons and stuff is not the problem but i dont know wich actionscript i should use to get the sound started en stoped when i click on my button?
Play Sound/stop Sound Button
i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.
any help?
thank you very much.
Straming Sound With Play And Stop Button
i have created a stop and play buton which is controling a audio loop on my current website. But how do i get the sound to loop automatically without the user having to press the play button for it to play. whilst still having the option to stop it.
thanks to all
tony
One Button Stop/play Sound Object - MX
I'm using MX and taken some Flashkit tutorials on sound objects, but I can't seem to get one thing to work. I'm trying to create one button that, when clicked, stops a sound object if it's playing and start it when it's not playing. I know how to create separate stop and play buttons, but for this project I need them combined into one button. I can get the sound object to stop, but not to play again. Any help would be much appreciated, thanks and have a great day!!!
Laters....
Script For A Show/hide Button Anyone?
I have a button once pressed it plays an animation to then show a button. But how do i get it to close the animation through action script. i have the animation done already and have that assigned to another button but i would like it to just happen on one button. Hope you understand me.
Thanks.
Using A Button To Show/hide A Symbol
This should be really easy, but I'm totally new to Actionscript. I have no idea what I need to do to make this happen.
I want to have button that unhides a symbol. On that symbol I want a button that you can click to hide that symbol. Or if it's easier, clicking anywhere on the symbol could hide it. How do I set this up? I've looked around and found some code snippets that seem like they could help me, but so far I've had no luck.
Hide/Show Button Issues...
Hello, I have just started doing ActionScript 3.0 a few days ago. I am trying to currently have 3 buttons on the stage. Upon clicking 1 of the buttons, it my hope that it will navigate to the new stage (through animations) and "hide" the button until one of the other buttons are clicked.
The issue/error is a 1078:Label must be a simple identifier.
Here is the 2 lines of code that it is based off of:
hide.target:shirt_bu;
show.target:design_bu;
And here is the code in context of the entire function(s):
//SHIRT BUTTON
shirt_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);
shirt_bu.addEventListener(MouseEvent.CLICK, shirtTo_design);
function shirtTo_design(event:MouseEvent):void
{
trace("working properly");
shirt_bu.removeEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.removeEventListener(MouseEvent.ROLL_OVER, buOut);
shirt_bu.removeEventListener(MouseEvent.CLICK, designTo_shirt);
design_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
design_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);
design_bu.addEventListener(MouseEvent.CLICK, designTo_shirt);
hide.target:shirt_bu;
show.target:design_bu;
}
//DESIGN BUTTON
design_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
design_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);
design_bu.addEventListener(MouseEvent.CLICK, designTo_shirt);
function designTo_shirt(event:MouseEvent):void
{
trace("working properly");
design_bu.removeEventListener(MouseEvent.ROLL_OVER , buOver);
design_bu.removeEventListener(MouseEvent.ROLL_OVER , buOut);
design_bu.removeEventListener(MouseEvent.CLICK, designTo_shirt);
shirt_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);
shirt_bu.addEventListener(MouseEvent.CLICK, shirtTo_design);
hide.target:shirt_bu;
show.target:design_bu;
}
Hope that makes sense. Any help would be greatly appreciated!
'show' And 'hide' Button Not Working
hello everyone! I have a 'show' button which will attach all the movie clips on its own location and i also got 'hide' button which will remove all movie clips.. my problem here is, when i click the button on the first time, it works but on the second time i tried to click it, it didn't work. I mean, i click the 'show' button, it will attach the movieclip. when i click the 'hide' button it will remove all the movieclip but when i try to click it for the second time, it didn't work! can somebody check my code attached? thanks...
Hide/Show A Button Using An If Statement
I don't know actionscript at all and have googled this question but can't find the nitty gritty. I figured it would be an easy question for you guys and gals.
I have a button that I have given the name "EventButton". I have three variables "Var1, Var2, Var3". I only want my button to show up if any of these vars are not blank. Can anyone help me.
Text Show And Hide By A Button...
I'm having problems with a flash movie.
I want to put a bar and the subtitles in it. And toggle it on and off by a button, must be the same.
- The button must toggle the subtitles and the bar on if they are off, and off if they are on.
- The user's choice must remain over the scenes.
- The movie is supposed to start with the bar and the text off.
There's a movie that has it in a button called Creator's Notes:
http://www.newgrounds.com/portal/view/191110
If you decide to help me, please explain it step by step, sice I'm stupid in ActionScripting.
Thanks in advance...
Simple Show / Hide Button
Hi,
I working on an example in which I will have 1 button.
When the scene loads I have a movie clip which I set _visible = false. When you click the button once the hidden movie is shown. When you the the button a 2nd time the now visible movie is hidden & so on. I started out by creating a movie clip symbol & then put a button in it. I initialize the variable "condition" = 0 on the 1st frame of this move cip. I then dragged this movie clip to the main scene & added the following script:
on (press) {
        if (condition == 0) {
        _root.insbox._visible = true
        condition == 10
}}
       
on (press) {
        if (condition == 10) {
        _root.insbox._visible = false
        condtion = 0
}}
When you click the button the 1st time the movie clips becomes visible. When you click a 2nd time becomes invisible. Then it won't work again from there.
Any suggestions?
Thank you.
Tim
Show/hide Movie Clip Using One Button
I require with regards to the following:
using one button can you alter the alpha setting of a movie clip to 0 and using the same button change the movie clips setting to 100 using actionscript alone.
All help much appreciated
How To Make A Button Show And Hide Text
I am trying to make a button that makes a portion of the text dissapear and hide. When it hides I want it to be replaces with another text.
Its going to read Show/Hide.
The scene is 4004, and basically I have audio of a narrator reading, buttons to forward and to go backwards etc.. The text on the right hand side needs to disappear and another text needs to come on without effecting the audio.
To project
I think the above link should work.
Also, can you tell me if there is somethign I should fix in the design.
Thanks!. This is my second flash project, and I want to make sure I do it right.
Button Action = Show/ Hide Layer
Hey everyone,
It has been a time that I used Flash and I am only 22.. I am studying in Barcelona now and made a map of the city with the cultural stuff on it. I also want to incorporate the Metro, good restaurants and **** like that.
How do I show a layer (i.e. the metro layer) when someone on the site hits the Metro button...
The .fla and so are on http://www.bclk.nl/jeepee/Flashkit/
Thanks for the help...
[F8] How Can I Hide An Object And Show It By Clicking A Button ?
hello..
I really need help ..
here is my problem ..
there is three buttons hidden in Scene 1 .. and there is an input box
if you input the name of any button it become visible .. ok
this button lead to another Scene .. but when you return to the main Scene
"Scene 1" it become invisible again
my question is how can I make the button once showed never go invisible again ??
thank you.
[F8] How Can I Hide An Object And Show It By Clicking A Button ?
hello..
I really need help ..
here is my problem ..
there is three buttons hidden in Scene 1 .. and there is an input box
if you input the name of any button it become visible .. ok
this button lead to another Scene .. but when you return to the main Scene
"Scene 1" it become invisible again
my question is how can I make the button once showed never go invisible again ??
thank you.
[F8] Button In MC Slideshow To Show Hide Image
I just finished a semester in Flash and am new to action script. I feel new to flash so I don't know if I should post here or action script.
This is the deal:
I'm using flash 8 and I have a slideshow. The thumbnails are the slideshow that loop continuously and I have a play/pause button. They are also a movie clip and each individual thumnail picture is a button. When each thumnail button is clicked I want a larger image of the graphic to show in the top right corner. I have a screen shot posted at:
www.freewebs.com/alexandra4jc
so you can get an idea. When I tried to upload the flash file it was too big for a free website. The thumbnails on the left move forward as a slide and then the one in front fades before showing up in the back.
So, I can't figure out how to hide the larger images unless the thumnail version is clicked on and then they will show up on the stage. Since the thumbnail buttons are in the slideshow movie clip I need to also apply the show/hide images in the same mc. So, what is the code to hide the larger image until it's thumnail button is clicked and how to I get that particular image to pop up on the stage once it's clicked. I gave the button an instance name and tried to give the large image an instance name but it's not allowing me to do that. So I named the frame thinking that once I applied an action to the button I can direct it to the named frame.
Can anyone help me?
Thanks.
Button As A Hide/show Hotspot Operation
I am having problems getting the Show/Hide Hotspot button to act as a on/off button. I can get them to turn on, but once turned on I can not get the button to work in reverse (hiding the hotspot). Can anyone help me out???
I can email the fla to anyone that needs to see it.
Hide And Show Dynamic Text Box On Button Released
I have 2 buttons called "sound_on" and "sound_off". When these are clicked a sound either stops or starts.
Here is the actionscript code attached to each button:
sound_on
PHP Code:
on (release){
x.stop();
x.start(0,0);
}
sound_off
PHP Code:
on (release){
x.stop();
}
varible "x" is my sound.
I want to add code to hide the dynamic text box when "sound_on" is pressed and to show the dynamic text box when "sound_off" is pressed. The name of my dynamic text box is "my_text"
I have tried this:
PHP Code:
on (release){
x.stop();
x.start(0,0);
my_text._visible = false;
}
}
but does not seem to work.
Any help would be great
Show And Hide Content On Stage With Button Action
hi...
I created a button to show and hide some content on stage. The button works well, but there's a problem...when i click on the button to show the content and i move to another section of the timeline the content hides again, and i just want it to hide when the button is clicked again :-(
Here's my code:
Attach Code
//inicial values++++++++++++++++++++++++++++++++
btAcess = 0;
_root.acessibilidade._alpha = 0;
//this inicial value is on the first frame of the timeline
//button script++++++++++++++++++++++++++++++++
on(release, keyPress "a")
{
if(btAcess == 0){
_root.acessibilidade._alpha = 100;
btAcess = 1;
} else{
_root.acessibilidade._alpha = 0;
btAcess = 0;
}
}
//+++++++++++++++++++++++++++++++++++++++
Show/hide Dynamic Text Box On Button Release
I have 2 buttons called "sound_on" and "sound_off". When these are clicked a sound either stops or starts.
Here is the actionscript code attached to each button:
sound_on
Code:
on (release){
x.stop();
x.start(0,0);
}
sound_off
Code:
on (release){
x.stop();
}
varible "x" is my sound.
I want to add code to hide the dynamic text box when "sound_on" is pressed and to show the dynamic text box when "sound_off" is pressed. The name of my dynamic text box is "my_text"
I have tried this:
Code:
on (release){
x.stop();
x.start(0,0);
my_text._visible = false;
}
}
but does not seem to work.
Any help would be great
Real Simple - Show/hide MC When A User Clicks A Button
hi- real simple...
i just want to make a button that when a user clicks it it either hides or shows a MC. here is my code, but it doesn't work:
on (release) {
if (_root.grid._visible == false) {
setProperty ("_root.grid", _visible, "1");
}
if (_root.grid._visible == true) {
setProperty ("_root.grid", _visible, "0");
}
}
can anyone tell me what i did wrong? thanks!
Flash Button Hide/show A DIV-Layer On A Html Page?
Hi All!
Trying to get a drop down hide/show div on a html page triggered by a button in flash.
so by default that div is hidden on html and when u click on flash button,it will show a hide button inside div tag
(Intro: Very very Little experience in dynamic flash)
I found this code, but i'm not sure it's what I need, and it's not working...
Flash file>button on stage>script:
Code: ( actionscript )
on (release) {
import flash.external.ExternalInterface;
ExternalInterface.call("hideDiv", "operator");
}
And the code in the html file:
Code: ( javascript )
<html>
<head>
<title>page title</title>
<script type="text/javascript">
function hideDiv(id)
{
document.getElementById(id).style.display = 'none';
}
</script>
</head>
<body>
<div id="operator">
<input type = button value = button>
</div>
</body>
</html>
Does anyone have a better (working) way of getting a flash button to talk to the html page to *togggle* a hidden div?
Any ideas would be muchly appreciated!
Thankyou so much in advance!
On Press Play Sound On Release Stop Sound
I have a button that is inside a movie clip 'forward'.
When you press the button it plays another movie clip 'time' forwards
on (press) {
forward = "1";
}
on (release, rollOut, dragOut) {
forward = "0";
}
on the button and:
if (forward eq "1") {
tellTarget ("/time") {
nextFrame();
}
}
on the first frame of the 'forward' movie
I would like sound to happen when you press the button and stop when you realease the button
but I not sure how any help would be gratefully excepted
Attach Sound, Play Sound & Stop Sound.
Hey there,
I was wondering if any of you could help me please.
I want to play a song which I have named "rundmc" The file extension is ".mp3"
I want a button to play this mp3 which I read you need to attach that sound, then play it and I want to a button to stop that sound, or preferably the play button to change into a stop button.
I've read the help files, but none of it works and I've changed the linkage for the mp3 to export for action script, but nothing works!!!
Please help,
NK.
If I Stop The Sound I Want To Play It From Where Is Stop :)
hi all
i want a button if i cilck on it the sound will stop and another button if i click on it the sound will continue from where it is stoped is it possible in flash or not
and the sound where is the best place i place it ( movie clip - main frame - action ????
thanks
if any one can give me an open file to be clear or the code
Play/stop A Sound
okay i really need help.. ill attach a sound file.. if someone could plleeasee make an .fla file where a button is set to play and stop some given sound... like an on/off switch.. i would attach my .fla file but its more than 2 mb.. so i really need help.. thnx!!
Sound Play Stop ?
hello all, i have 4 mp3s
i am working in a scrollbar and i just want a simple play and stop button for each one..maybe loaded from an external file...
how i can do that ? any help ?
Mp3 Sound - Play And Stop
I made to player with only the buttons play and stop, I tried to make that button toggle, but I did not works, then I made two buttons, when I click in play it shows a button and hides the other and vice versa, he functions normal, my problem is the following one:
When finishes the music the button not return for stop button, it continues showing to the animation of the play button , How can I make when to finish the music the button comes back to the state where it was.
AS
code:
var mp3Musica:Sound = new Sound ();
//
tocar_mc._visible = true;
parar_mc._visible = false;
//tocar música
tocar_mc.onPress = function () {
tocar_mc._visible = false;
parar_mc._visible = true;
mp3Musica.onLoad = function (sucesso:Boolean) {
if (sucesso) {
mp3Musica.start ();
}
};
// carregar música
mp3Musica.loadSound (_root.musica, true);
};
//parar musica
parar_mc.onPress = function () {
tocar_mc._visible = true;
parar_mc._visible = false;
mp3Musica.onLoad = function (sucesso:Boolean) {
if (sucesso) {
mp3Musica.stop ();
}
};
mp3Musica.loadSound (_root.musica, true);
};
//cor fundo botao
new Color (tocar_mc.fundo1_mc).setRGB (parseInt (cf, 16));
new Color (parar_mc.fundo2_mc).setRGB (parseInt (cf, 16));
Sorry about my English
[CS3] Stop All Sound And Play Next
ok so what i have is a flash based web site on a guitar, my nav bar is the neck of a guitar and the chords are the buttons.
the buttons are movie clips with an animation, i have scripted each movie clip so it stops at frame 1, on rollover play until certain frame, on release play rest of movie clip, script is this:
-------------------------------------------------------------------
var buttonAction:String = "stop";
this.onEnterFrame = function(){
if(buttonAction == "stop"){
stop();
}
if(buttonAction == "roll over" && this._currentframe < 35){
play();
}
if(buttonAction == "roll over" && this._currentframe == 35){
stop();
}
}
this.onRollOver = function(){
buttonAction = "roll over";
}
this.onRollOut = function(){
buttonAction = "return";
play();
}
this.onRelease = function(){
_parent._parent.gotoAndStop("Home");
}
-------------------------------------------------------------------
Script works fine i'd prefer not to change it.
what i want is to play a sound on frame 5 but when i roll over a different button it stops all other sounds from playing then plays the sound in that movie clip.
this is for an assignment due tomorrow so any quick help would be greatly appreciated!
(if i didn't explain enough please let me know)
[CS3] [AS2] Sound Stop And Play
I'm making a game; frame 1 is the main menu and also contains music... Now on the main menu has buttons like "options," "controls," etc.. Now once I click on one of them it goes to another keyframe; and on that keyframe is also a back button to the menu; once you go back to the menu the music is played twice... I want to make sure that dosen't happen. I tried some codes such as stopAllSounds but everything I tried didn't seem to work for this simple problem; so I'm looking for a workaround for this...
Thank you for taking your time to read this...
Mp3 Sound - Play And Stop
I made to player with only the buttons play and stop, I tried to make that button toggle, but I did not works, then I made two buttons, when I click in play it shows a button and hides the other and vice versa, he functions normal, my problem is the following one:
When finishes the music the button not return for stop button, it continues showing to the animation of the play button , How can I make when to finish the music the button comes back to the state where it was.
AS
ActionScript Code:
var mp3Musica:Sound = new Sound ();
//
tocar_mc._visible = true;
parar_mc._visible = false;
//tocar música
tocar_mc.onPress = function () {
tocar_mc._visible = false;
parar_mc._visible = true;
mp3Musica.onLoad = function (sucesso:Boolean) {
if (sucesso) {
mp3Musica.start ();
}
};
// carregar música
mp3Musica.loadSound (_root.musica, true);
};
//parar musica
parar_mc.onPress = function () {
tocar_mc._visible = true;
parar_mc._visible = false;
mp3Musica.onLoad = function (sucesso:Boolean) {
if (sucesso) {
mp3Musica.stop ();
}
};
mp3Musica.loadSound (_root.musica, true);
};
//cor fundo botao
new Color (tocar_mc.fundo1_mc).setRGB (parseInt (cf, 16));
new Color (parar_mc.fundo2_mc).setRGB (parseInt (cf, 16));
Sorry about my English
Mp3 Sound - Play And Stop
I made to player with only the buttons play and stop, I tried to make that button toggle, but I did not works, then I made two buttons, when I click in play it shows a button and hides the other and vice versa, he functions normal, my problem is the following one:
When finishes the music the button not return for stop button, it continues showing to the animation of the play button , How can I make when to finish the music the button comes back to the state where it was.
AS
ActionScript Code:
var mp3Musica:Sound = new Sound ();//tocar_mc._visible = true;parar_mc._visible = false;//tocar músicatocar_mc.onPress = function () { tocar_mc._visible = false; parar_mc._visible = true; mp3Musica.onLoad = function (sucesso:Boolean) { if (sucesso) { mp3Musica.start (); } }; // carregar música mp3Musica.loadSound (_root.musica, true);};//parar musicaparar_mc.onPress = function () { tocar_mc._visible = true; parar_mc._visible = false; mp3Musica.onLoad = function (sucesso:Boolean) { if (sucesso) { mp3Musica.stop (); } }; mp3Musica.loadSound (_root.musica, true);};//cor fundo botaonew Color (tocar_mc.fundo1_mc).setRGB (parseInt (cf, 16));new Color (parar_mc.fundo2_mc).setRGB (parseInt (cf, 16));
Sorry about my English
( Urgent) My MC Can Stop N Play, But How To Keep My Sound Going?
Hi, ppl...regarding the MC which i ask for your help last time, it works..but is there any way to keep the sound going?
cos once i stop the clip, the sound stop n it cant play anymore..Pls help me...thanx..
i need to hand up tis clip today, so ur help will be a very big deal to me...Thanx!
Sound Play And Stop Problems
I've run into an audio problem and I will do my best to explain it. What I have is 1 scene, which contains 2 layers. One layer has my main movie clip and the other has a stop(); command. Inside my main movie clip I have boxes opening with 401k investment descriptions and audio reading them off. At the end of all the descriptions I have 3 buttons that on (rollOver) gotoAndPlay a specified frame and rolls down a submenu containing buttons. If you click one of the submenu buttons it takes you back to the beginning of that button's investment description. My goal is to get the audio to NOT PLAY AT ALL once the timeline has reached the 3 main buttons. When you click one of the submenu button's and it takes you back to where it opens a window, displays the definitions text, and then an exit definition button I want to have the audio totaly dead. And when they click the exit definition button it's told to jump to a certain frame where it clears the defintion text from the window, rolls the window back up and cleared and then jumps to the frame where the 3 button's are. I cannot attach the file because it's 23mb's, obviously file size was not important with this project LOL so... If anyone has a fast connection dsl or higher I can send the .fla to you through MSN Messenger. Or, if you want to take a crack at adjusting my code without having the "many" audio files I could remove all the audio files, which would allow me to attach it. I could even give the frames frame labels where each audio file starts. But I'm not going to do all that unless I have to My MSN addy is andrewj2883@hotmail.com
Thanks,
Stea|th
Sound Play Stop Problem
hello all, i have a small problem
i have an audio player loading 4 separate songs but
they are 4 different PLAY and STOP but
if you listen to the tracks all the way through until they stop themselves, the play button doesn't work again, until you click stop, even if the track has stopped.
any help ?
[F8] Stop/play Sound Behaviors
I want to create three interactive music buttons on a Flash8 website. I tried following the instructions in the help files about controling sound playback using behaviors. I was able to create "play" and "stop" buttons for the three mp3's I want people to be able to play, but only the first one works. All three live in the same keyframe, on the same layer, link to mp3's in the file's library and reference each mp3 as an instance in order to play and stop. Why will only one set of buttons work?
[MX] Sound Stop Then Play Problem
it doesn't start playing angain
Code:
onClipEvent (enterFrame) {
stopAllSounds();
}
on (keyPress "<Space>") {
_root.snd.start(0, 10);
play();
}
Control Sound: Stop And Play
I know that this forum has several posts on this. I've read them, two book chapters, and numerous websites. I have, no lie, 12 versions now and nothing actually works. Everything comes close, but no cigar.
for example, if i have separate play and stop buttons, if you keep clicking on play, you get dozens of your audio at once. In another code, you have to click on the play button twice to get the audio started. in another case, the audio plays once, finishes and then clicking on play never plays it back again.
Sometimes I feel like i've walked into the middle of a movie. A post will say create a toggle button then use this code. But it doesn't say if there's any code itn the toggle button, whatever.
I know this is possible. And I guess I'm a dolt. Can anyone help me. thank you
Play And Stop With Sound In Flash?
Hey guys I am new to to flash I can only create basics animations and stuff but I have been reading books and trying to create a play and stop file using flash but I can't so I found this site which I think is great!!!....and if any of you can help me I would appreciate it so much....by the way I am Matias Bulox from Argentina.
Ok I guess I have explained my problem....I'll wait for somebody to response.
Check my 2 sites
http://www.clearealty.com
http://www.books-softwares-online.com
I am still working on both of them but I need your help!!! please.
Bye and have a nice day!!!
and Merry Christmas for everybody !!!!!
Matias Bulox
Sound Stop/play Buttons
Hi - I am trying to make a background loop which will play automatically when a page loads and to display a stop button which will stop the music when clicked.
I managed to do this much, however, when the stop button is clicked, I would like to display a play button which will start the music again when clicked. I could not figure out how to do this. I've read several tutorials, but some of them seem outdated and others did not seem to work.
Can anyone give me some advice or direct me to a tutorial which would explain how to do this correctly?
Here is the FLA so far: http://www.seniorspin.com/MyMusic.fla
Thanks, Elizabeth
PLAY Sound And STOP Sound
I have no clue how to play and stop sound. I tried everything but I guess I am doing it wrong!
basically...... the name of the clip i want to play is
sound1
i have a little play button and a little stop button
i need the code so that it will play sound1 when clicked on
and the stop button i just put stop all sounds so i guess that should take care of it..but if that is wrong then please let me know, lol
thanks
xox marqi
How To Stop N Play Back Sound At The Same Time
im doin my flash project...n i failed to stop da sound...i try usin da stopAllSound it worked but i wanted to play another sound at da same time....i mean at the scene without playin da first sound...mail me???????? or reply to me as soon as possible....
Streaming Sound Stop/play Problem
Dear all,
I am a flash "advanced beginner' and what I intend to do is this: make a simple streaming mp3 player that loads mp3 file, plays it automatically, but when user changes page (or refreshes) I want to resume playing the song from the very last position before the page has been refreshed (to mimic somehow the continuous play).
Communication works fine through cookies, no problem there. The only problem that I don't understand is when I try to play the sound from specified (read from cookie) position, i.e.: sound.start(fromPosition) - I explain:
I understand that when using streaming sound, it starts to play from the beginning automatically after sufficient portion is downloaded. I thought that I could overcome this by stopping the sound just after loadSound command and then again start it from given position, but this doesn't respond:
myTunes = new Sound();
myTunes.loadSound(somesong, true);
myTunes.stop();
myTunes.start(fromPosition);
song only stops immediately after page refreshes, but doesn't start again..
I have also the play/pause button and there it works (playing from the paused position)
I would be very happy for any suggestions, thanks much..
cheers..
T.
|