ActionScript 3.0 :: Keeping Sound Turned Off When Movie Loops Back To Beginning?

Nov 30, 2010

I'm working on a Flash movie that includes a simple on/off audio player. At the end of the movie it loops back to the beginning and plays again. if the viewer hits the sound off button it will turn the sound off untill the movie loops and then the audio automatically starts again. The viewer would then have to hit play again and then stop to stop it. Is it possible to fix this? I think that I ned to put a piece of code at the beginning of the movie to check if the sound is off or not and then to continue to keep it off if needed?Here is the code for the sound player I am using...

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0;
mySound.load(new URLRequest("GlidingOnAir.mp3"));

[code]....

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Pause Button Goes Back To Beginning Of Movie?

Oct 9, 2010

Actionscript 2.0I have a play and stop button in a movie clip. The actual button works great but does not pause the movie and then resume playback where it left off. Instead the movie goes back to the very beginning and stop/starts there. I need the button to resume playback where the movie was stoppedlike a pause and resume button. The videos load exernally through an FLVPlayback component (myVideo).The code is on the main time line in Actions layer.Here's the code for the button:

_root.StopNGo_mc.onRelease = function() {  if (_root.StopNGo_mc._currentFrame == 1) {  _root.StopNGo_mc.gotoAndStop(2);  _root.myVideo.stop();  } else {  _root.StopNGo_mc.gotoAndStop(1);  _root.myVideo.play();  }}

[code]......

View 3 Replies

Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intack?

May 21, 2010

I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.

I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)

I want to know if my flash header can support the following additional functionality/changes:

1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?

2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.

3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.

4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?

I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features. Not sure I can afford help now because of being laid off and two different scammers taking advantage of me. So I'm going to try to do myself and see if there is any suggestions/support on here that can help. I have Flash CS4.

View 2 Replies

IDE :: Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intact?

May 21, 2010

I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. I want to know if my flash header can support the following additional functionality/changes:

1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?

2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.

3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.

4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?

I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features. Not sure I can afford help now because of being laid off and two different scammers taking advantage of me. So I'm going to try to do myself and see if there is any suggestions/support on here that can help. I have Flash CS4.

View 4 Replies

Professional :: Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intack?

May 21, 2010

I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)I want to know if my flash header can support the following addionalunctionality/changes:1) Currently, it loads everytime a page is selected.  I only want it to load the one time of entering the site because the audio gets annoying.  Set a cookie maybe?2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.

3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features.

View 2 Replies

ActionScript 1/2 :: Fading Background Music - Video Sound Also Turned Off

Sep 20, 2010

I have a flash file with a background music sound object, and I have a video player at a particular section on the timeline. When the playback head goes to the section with the video player, I would like the background music to fade, but of course, I need the volume to be up for the video. The code I have works find to fade the audio, but the problem is that the video's sound also turns off.

This is the code at the beginning of the timeline:
_global.volumeVar = 40; //Stores the current volume.
bgSound = new Sound(this); //This block works finebgSound.attachSound("music");bgSound.start(0,99);
bgSound.setVolume(0);
[Code] .....

Further down the time line, in the video player section, there this code, which works to fade the sound, but seems to turn off the video, too:
nInterval = setInterval(fadeOutSound, _global.volumeVar);

View 5 Replies

Stop Sound From Going Into Next Scene While Keeping Button Sound?

Oct 19, 2010

I'm sure this is a common problem, I tried looking around on the forum for a problem like mine but was unable to find anything. I'm using Flash CS3, Actionscript 2.0, and am making a soundboard. I have two scenes, one that's the title screen, of which has a sound file loaded via the timeline, (I think) set to Event and Loop, and a button which takes you to the next scene and makes a short sound when it's pressed. My second scene has background music as well, also set to Event and Loop.

Problem is that when I press the button, the background music keeps playing into the next scene. I tried using putting stopAllSounds onto the button, but that makes the sound of the button stop as well, and I'd really like to keep it. I've been messing with this for days, and I can't figure it out.

View 3 Replies

Professional :: Compiled Swfs Jump Back To Beginning

Mar 29, 2010

I compiled two swfs into a single exe using a converter. Both swfs have the same 5 tabs for the 5 sections of my presentation. Swf A has all the stuff for the first 4 tabs, Swf B has the stuff for tab 5. When I start the exe & navigate all around in the first 4 tabs & their sub-sections, everything's fine. I can also click on tab 5 & the Swf B stuff starts playing right away & I can navigate all around in there.

BUT... After I've been clicking on the tab 5 stuff, if I click on any of the 4 tabs from Swf A it kicks me all the way back to the intro animation at the start of Swf A. What I need is to have it go to the first frame for each of those tabbed sections. (e.g. frame 5, 38, 93,...) I did gotoMovie & then gotoAndPlay & the frame number, but it sends me back to frame 1 anyway. How do I get it to go to the frame I want? This is in AS 2, by the way...

View 1 Replies

ActionScript 3.0 :: Click A Button So It Restarts Going Back To The Beginning?

Nov 27, 2009

What code would I need so that once I get to the end of an application, you can click a button so it restarts going back to the beginning?

The button in question is called retryButton

View 6 Replies

ActionScript 2.0 :: Scroller - Reset The Position Of The Thumbnails Back To The Beginning

Apr 3, 2008

I've got 3 pages each with their own portfolio loaded dynamically from an XML file. Everything is working great with the thumbnails i added using the "adding thumbnail" tutorial. There's only one quirk I can't figure out. If you've scrolled to the end of the thumbnails on the first portfolio, the scroller stays in the same place when you go to the next portfolio rather than reloading back at the beginning. I hope that makes sense because it's hard to explain, but the site is [URL] here's the partial code for the thumbnails...

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash At End Of Video, Loop Back To Beginning But Don't Play

Sep 23, 2011

At the end of my SWF video (FLV + XML for closed captions), I want to go back to the beginning of the video, but not replay it...so that when users have finished watching it they have the title page to look at instead of a big black box.

View 1 Replies

ActionScript 2.0 :: Mc - Reloads Back To The Beginning When You Mouse Over The Corner Of The Page?

Mar 7, 2005

I'm working on an ezine, using the pageflip v2.11 from [url].... I can't get it to flip the covers unless they aren't hardcovers. It's killing me. All they do is show the shadow mask flipping, and not the page. I also have trouble with playing an mc, while it is located on the page. It reloads back to the beginning when you mouse over the corner of the page.

View 2 Replies

ActionScript 2.0 :: XML Photo Gallery - Go Back To The Beginning Image & Start All Over Again?

May 18, 2005

I've used kirupa's 'Photo Gallery Using XML and Flash' tutorial & modified to make my gallery, you can view it here: ZedMedia.org by clicking on the photos section in the main page. what i want to do is, instead of reaching the end of all my photos and it stopping, i want it to go back to the beginning image & start all over again. i want the opposite to appen at the start. when the previous_btn is pressed i want it to go to the end of the gallery.

View 3 Replies

Sound At Beginning Of 2 Scenes And Optimizing

Nov 10, 2009

I have created a X-mas card for my company. When the card opens, the 3 circles are buttons to different scenes within Flash. The text in the bottom left is a button to the final scene.

The card can be viewed here: [URL]

1) When I click on the circle button that has the red garland and tree ornaments in it, if you listen close at the very beginning of the scene, a squeek sound plays. I use this squek sound in the hamster wheel movie symbol used in other scenes, but not in this scene. I don't even have the sound in this scene of the Flash project anywhere. I can not figure out where it is coming from.

2) Does anyone have some optimization tips? My project file is huge and a lot of the people we will be sending this out to probably don't have the most up-to-date processers. Should I split each scene into it's own Flash movie that is only loaded when the button for that scene is selected instead of the whole thing loading?

Here is a link to view the .FLA file: [URL]

View 1 Replies

Actionscript 2.0 :: Flv Playback Instance Loops Back To First Frame?

Feb 27, 2010

I am importing a .mov file in Flash, which converts it into an .flv, which works fine and dandy, but playback does NOT stop at the end of the video, but loops back to the first frame and stops there. what to do to get it to stop at the last frame? I am just using the flv instance in a keyframe, not using any code to control it, which is a bit over my knowledge level.

View 1 Replies

ActionScript 3.0 :: Sound - When Press Stop Then Play It Only Plays From The Last Pause And Not The Beginning

Apr 26, 2009

i'm habing abit of problem with this code, its supposed to play pause and stop, the problem being that when i press stop then play it only plays from the last pause and not the beggining how to get it to play from the start after the stop button is pressed

[Code]...

View 1 Replies

Use The Sound Loops For Commercial Uses?

Jul 25, 2011

I'm new here and I'm wondering if I can use the Sound Loops for commercial uses?

View 3 Replies

Make Flash/swf "movie" In Which I Can Scroll Back And Forth Through The Sound Recording?

Dec 5, 2009

so suppose I have a long sound recording as part of a Flash presentation.Can I put on the presentation a scrollbar and start /stop/ pause/ resume buttons as in Media Player or Windows sound recorder that would allow me to scroll to basically jump to any moment in the sound recording? So I guess, I am asking, can such typical sound player functionality be implemented for a Flash presentation in Flash.If there are sample apps that already demonstrate how to write similar code, links

View 1 Replies

ActionScript 2.0 :: Make The Movie Ask For The Users Name At The Beginning And Then Display The Name Later In Movie

Sep 27, 2004

I've been searching high and low for a tutorial for your Flash movie that will show you how to make the movie ask for the users name at the begining and then it'll disply the name later on in the movie.

View 2 Replies

CS3 :: Creating A Crossfading Between Sound Loops

Jun 25, 2008

I am trying to make a sound crossfading between the loops (an example would be: same as in a "Winamp" media player you toggle the Crossfading function in a Modern Skin and select a duration of it). Say I got a loop of 10 seconds, altho it is not perfect as its cut of the song without a proper editing tool. Any way I could accomplish it by using the ActionScript?

View 2 Replies

Buttons And Wav Sound Loops (almost Made It)?

Dec 9, 2010

I've been trying to make a sound-loop player for quite some time now (i'm new to as3) and i'm pretty close to do it but still Ok, i've made six letters converted them into buttons and i want them to play a different wav sound loop each one whenever i click on them and to stop the sound when i click again.This works fine for the first button but not for the rest of them because i dont know where to insert the similar code for the rest of the buttons.

import flash.media.Sound;
var sound:Sound = new The_Rloop5();
var soundControl: SoundChannel = new SoundChannel();

[code].....

View 8 Replies

ActionScript 2.0 :: Controlling Sound Loops?

Oct 1, 2002

I am trying to create a movie that has 3 different background sound loops for the user to choose from as well as an on/off button.I followed one of the Kirupa tutorials which enabled me to create 3 different buttons that linked to the 3 sound loops in my library. The problem is that I don't know the actionscript required to stop whatever clip is playing and play the newly selected background sound chosen by the user.Also I am trying to have one of the loops playing when the movie starts as a default, and also to have a mute button

View 1 Replies

ActionScript 2.0 :: Perfect Sound Loops In Flash?

Apr 28, 2006

i'm using the loadSound command to bring in an external mp3 and although the file itself is a perfect loop, flash doesn't seem to like playing it back as such using the s.start (0, 5) tag. any suggestions on how to get perfect loops?

View 3 Replies

ActionScript 2.0 :: Fading Out A Sound Object After 2 Loops

Dec 10, 2006

I'm trying to figure out how I can fade out a sound object after it has looped twice. Right now the sound fades 5 seconds before the end of the first loop (since the fade code is based on the duration of the sound clip).Seems like there needs to be a way to count when the duration has been reached two times and then the fade code is executed. Note: the linkage identifier of the sound clip is "mainPageLoop".[code]...

View 1 Replies

Actionscript 3 :: Loops - Good Sound Classes/Libraries ?

Feb 11, 2011

Can anyone recommend good sound classes or libraries (open-source) for Actionscript 3.0?

View 2 Replies

ActionScript 3.0 :: Using Arrays / Loops To Control Sound Playback?

Jan 28, 2012

Attached I have a small .fla that basically does the following:

1. A button is clicked (calling the playSound function)
2. The sound is then played, also a small instance of the button is called from the AS library and placed within a sprite that is within a movie clip at the bottom. The event listener is also removed from the main button so it can only be called once.
3. When the small instance of the button is pressed (within the sprite) it stops the sound, removes the icon and re enables the buttons event listener.

It all works fine, and it is worth mentioning I am still new to Flash but getting to understand it more. I plan on having 20 buttons on the screen, and surely theres an easier way then having 20 functions, all more or less doing the same thing!

View 14 Replies

ActionScript 3.0 :: Flash - Using Arrays/loops To Control Sound Playback?

May 22, 2010

1. a button is clicked (calling the playSound function)2. the sound is then played, also a small instance of the button is called from the AS library and placed within a sprite that is within a movie clip at the bottom. The event listener is also removed from the main button so it can only be called once.3. when the small instance of the button is pressed (within the sprite) it stops the sound, removes the icon and re enables the buttons event listener.It all works fine, and it is worth mentioning i am still new to Flash but getting to understand it more (after a little bit of light hearted abuse from a few members ). What i am struggling to understand is how to 'streamline' my code. I plan on having 20 buttons on the screen, and surely theres an easier way then having 20 functions, all more or less doing the same thing!

View 3 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

View 1 Replies

ActionScript 2.0 :: Line Becomes Alpha From Very Beginning Of Movie

Oct 22, 2002

I have one line that is going down 500 pixels with the instance called 'vertical'. I also have a line set next to it with aplha = 0. When the vertical line going down reaches 300 pixels, I want the line which is set to 0 to set the alpha = 100. The code I am trying does not work.. Here is what I am putting in
onClipEvent (enterFrame) {
if (vertical._height = 300) {
this._alpha = 100}
}
Seems simple enough, but the line becomes 100% alpha from the very beginning of the movie. Do I have to do anything with _root or what?

View 4 Replies

Create Smooth Transition From End Of Movie Clip To Beginning Of It?

Apr 8, 2012

I have a motion tween that is 180 frames in length. When the tween ends on the last frame and returns to the first frame to replay there is a slight jump in the tween. Is there anyway to stop the tween from jumping from last frame to the first?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved