Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Annoying *click After Sound In A Loop



Hi all,
I'm attempting to use some flash, but as i am not very capable in it i was hoping that there is someone who understands my question i have.

I have a header made in flash for a website.
On some buttons i have a sound loaded by the following script/code:

Code:
var my_sound:Sound = new Sound();
videoos.onRollOver = function() {
my_sound.stop()
my_sound.attachSound("bert.mp3");
my_sound.start(0, 5);

};
videoos.onRollOut = function() {
my_sound.stop();
};
Everything is working fine, no problem at all.
I loop the sound 5 times, but when the sound is ended and starts again, i hear a 'click' sound. Thats very annoying when you hear the sound loop.
IN first place i thought i was in the sound, so i tried to edit the sound file, but there was no 'click' in it at all.
Is there a way to get rid of that click sound, so my loop is playing clean?

For a live hear test you can check this url:

Code:
http://www.vettesh*itouwuh.nl/test/
* Remove the '*' in the above url. The forum doesnt allow these kind of words... sorry.

Thank you very much.

Dave



FlashKit > Flash Help > Actionscript 3.0
Posted on: 10-10-2007, 04:35 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

That Annoying IE Click Thing...
Not sure how I would search for this from the archived threads, so have started a new one, so sorry if I am covering old ground here.

When a user first loads in an HTML document thats has Flash or similar 'interactive' content in IE, there is an annoying thing that requires them to click to activate or use the content before they can interact with it, a really annoying thing if it's for a navigation that loads in everytime you visit a page.

Is there anyway that this can be bypassed?

Have To Click On The Flash To Activate... Annoying
this is going to drive me insane... it's probably something stupid and i just dont know.

here is an example - http://www.slopesbbq.com - you have to click in the flash area first before you can use the navigation. is there a way around this to disable this function?

anybody? :-D

thanks!
seth

Annoying Pause At End Of Sequence Loop
I originally worked on a 12 frame animation in Flash 5 and the animation loop worked perfectly. I then moved the animation to my copy of MX 2004 and noticed a 1 frame pause at the end of each loop. It's destroying the animation. Are there any settings to fix this? I've tried exporting in every format and it exists in all of them, even video.

The animation is a looping movieclip of 12 frames that loops for 48 frames on the main scene. Every 12 frames there is the pause. Even if I use the movieclip in just one frame, it still has the problem. I have checked every clip in the file for an extra frame but even adding 10 frames to them didn't seem to alter the pause at all.

Annoying Html Text Field Problem.. SO SIMPLE Yet So Annoying
this is annoying..
FYI: all other text loaded into text field is fine except for certain scenarios such as:

#1
I have a multi-line html text field
i load an external text file into the text field for its content
the text in the file is simply

Quote:




<img src='xmasflyer.jpg'>





PROBLEM: NOTHING APEARS

#2
I have a multi-line html text field
i load an external text file into the text field for its content
the text in the file is simply

Quote:




<p><img src='xmasflyer.jpg'>





or

Quote:




.<img src='xmasflyer.jpg'>






>NOTICE the elements before the img tag.. it seems flash needs a character or something before the img tag to show the image

PROBLEM: image finally appears (so does the dot).. but it's totally OUT OF LINE and EVEN OUTSIDE OF THE TEXT FIELD...

ya guys got any clues re the above 2 issues???

please help. or at least point me to the right direction..

tea

additional info:
site is here: http://www.latherrinserepeat.co.uk/main.php (click on PARTIES)
im using flash mx 2004

"click To Activate To Use This Control" - How Remove That Annoying Box?
Hello,

When I put my Flash animation into a HTML web site it comes up with a bounding box around it that says 'click to activate to use this control'

Does anybody know how to remove this so when you hover over it it doesnt do it??

MANY THANKS TO ANYBODY WHO CAN HELP!

Annoying "Click To Activate This Feature" Message
OK, so I've created this great (at least the client thinks so) navigation bar with all of these animated buttons that grow and move and interact with the mouse when you roll over the background image. Everything works fine in every browser in on my Mac, but the client's Windows XP machine with IE7 won't do anything until you hold the mouse over one of the hit areas (the hand appears) and click the first time. If you hover a popup message appears that says click to activate this feature.

I hope I'm being clear in the description of the problem. On a Mac, open the page and the animations triggered by a mouse over work just fine. On the client's XP machine, you must click somewhere before the animations begin.

Any clues about how I fix this???

Disabling IE/Windows Link-click Sound (the ****ing Click Noise)
I've just got working a part of my site that has the user rolling over parts of one Flash movie which load a text description of the thing that is rolled over into a side flash movie in another frame. To the best of my knowledge there is no way to accomplish purely in Actionscript (making two separate Flash movies communicate), so I have movie #1 send it's variable to a javascript function on the HTML that calls the movie. This Javascript then sends the value to movie #2. Only problem is, though I am not loading a separate html file anywhere in the process, when IE runs the Javascript code it plays that damn link-click noise.

As you can imagine this is annoying i the extreme for a mouse roll-over (200 click noises in a few seconds)
Anyone know how I can disable that noise?
Or maybe to get IE not to recognize the Javascript as a link?

I'm pretty sure there isn't but who knows?

Thanks.

Josh Kostka

Annoying "click To Activate" Feature
I read the fix on this "feature" on the newer versions of IE. The tutorial works great and fixes the problem. However, i am also using the line

<param name='WMode' value='Transparent'>

in my code so that the flash ad appears BEHIND the fireworks-generated drop down menu. Now with the fix for the IE issue, the flash ad again appears in front of the drop down menu. I need a new fix for this, that will solve both issues. Any ideas??

I Would Like My Sound Loop To Continously Loop Without Looping Over Itself When I Repeat My Images.
I have a sound loop moving along with my flash images. When the flash images finish and I send it back to frame 1, my sound doubles. How can I play my sound loop once, but allow my images to continously loop.

Is there away to just run one loop of sound, and let the image aspect continue to loop.

I would like my sound loop to continously loop without looping over itself when I repeat my images.

My Sound Loop Is Repeating Itself Ontop Of Previous Loop
Here is a link to a movie that I am working on:


LINK-
http://blue-title.com/v2/


My client says that when you first start the movie, the loop starts fine but when he clicks on one of the three buttons at the bottom (Home, Florida, Alabama) the initial first loop continues to play and a new loop is beginning to repeat while the first one is still playing.

It works fine for me in Firefox and Safari on a Mac.

Any solutions?

Todd Temple

Loop Sound ( Sound Class Preloader By Moock)
how can i loop the sound if i use the sound class preloader by collin moock?? here its the code :


ActionScript Code:
Sound.prototype.checkLoadProgress = function() {
    var kbLoaded = Math.floor(this.getBytesLoaded()/1024);
    var kbTotal = Math.floor(this.getBytesTotal()/1024);
    var percentDone = isNaN(Math.floor(kbLoaded/kbTotal*100)) ? 0 : Math.floor(kbLoaded/kbTotal*100);
    this.onBytesLoaded(this.getBytesLoaded(), this.getBytesTotal(), kbLoaded, kbTotal, percentDone);
};
Sound.prototype.clearLoadCheck = function() {
    if (this.loaderID) {
        clearInterval(this.loaderID);
    }
};
Sound.prototype.preloadSound = function(url, isStreaming) {
    this.clearLoadCheck();
    this.loaderID = setInterval(this, "checkLoadProgress", 200);
    this.loadSound(url, isStreaming);
};
music = new Sound();
music.onLoad = function(success) {
    this.clearLoadCheck();
    if (success) {
        loadMsg_txt.text = "Done loading.";
    } else {
        loadMsg_txt.text = "Load failed.";
    }
};
music.onBytesLoaded = function(bytesLoaded, bytesTotal, kbLoaded, kbTotal, percentLoaded) {
    loadMsg_txt.text = "Loading: "+kbLoaded+" of "+kbTotal+"
"+percentLoaded+" percent complete.";
};
music.preloadSound("song.mp3", true);



thanks in advance

Mp3 Sound Loop Bad. Wav Loop Good.
I have a soundloop which is a WAV file
and it works just fine when i loop it in flash

But when i convert it to an MP3 file...for osme weird reason theres a little less than 1 second pause when it starts again...you can tell its a loop...not smooth

But in WAV format its fine.
Its weird..ive used two different softwares to convert my wav file.
ive used Creative Wave Studio, Ive used a dedicated third party MP3-WAV convertor.

same results...the mp3 has bad looping.

any ideas?

On Click Movclp Plays 2 End Of Loop B4 Going On
Hi there,
I have a movie clip of some people playing ping pong (continuous rally), there is a button in the frame. I also have another movie clip of one of the players playing the shot that wins the game, in frame 2 (the player hits the ball over the net and it clips the edge of the table, the other player just doesn't get there in time).
If both clips are played once, one after each other the transition is seamless.
Now that I have established what I've got, here is what I'd ideally like to achieve. When the button in the 1st frame is clicked the 1st loop ends before proceeding on to the next frame, I'd like the rally loop to play over an over until this click and not be limited by loop numbers if you know what I mean, also I don't want to break the rally sequence to jump to the win sequence.
Look forward tohearing from anyone soon,
Matt

Is It Possible To Stop The Right-click Loop Function?
Hey,

When my website loads up after the preloader is complete it keeps repeating the animation. If I right-click on it and untick the loop function its fine... is there any way of making the site load up without the loop fuction enabled???

The site is at www.wight-image.co.uk

Any help would be so helpful as this site is a college assigment which is to be completed this week.

Thanks,

Tom

tom99@zoom.co.uk

There's No Infinite Loop... (click To Read More)
I'm building a English Phonetics site for one of my clients. One of the exercises consists of distinguishing between "lot", "not", and "rot" as Asian people often confuse them. Well, here is the code for setting up the random word list (an array consists of randomly arrange numbers - 1, 2, or 3, and there will not be more than 3 same words together.):

ActionScript Code:
//setup word list
for (var i:Number = 1; i <= game.numWords; i++)
{
    var hasTooManyRepeats:Boolean = true;
    var numRepeats:Number = 0;
    var temp:Number;
    while(hasTooManyRepeats == true)
    {
        hasTooManyRepeats = false;
        temp = Math.floor(myLibrary.randomRange(1, game.numAnswerChoices + 1));
        for (var j:Number = 1; j <= MAXREPETITION; j++)
        {
            if (temp == myWordList[i - j])
            {
                numRepeats = numRepeats + 1;
            }
        }
        if (numRepeats >= MAXREPETITION)
        {
            hasTooManyRepeats = true;
        }
    }
    myWordList[i] = temp;
}

All of the variables are valid...
You don't see any infinite loop, do you? Me neither, and this code sometimes works, and sometimes doesn't. Also, every time a "script is running slow" popup appear, and I click abort, the radio button for sound selection (male, female, or both) is messed up and the game is unplayable.

this one is the one that's messed up:
http://www.masterphonetics.com/prote..._protected.swf

this one crashes less often because there are 4 answer options:
http://www.masterphonetics.com/prote..._protected.swf

this one is ok, but it uses a different randomizing script:
http://www.masterphonetics.com/prote..._protected.swf

Also, don't care about the database error at the end; because you are not logged in, your score cannot be saved.

...................
so
1. can anybody find out why my code became an infinte loop?
2. does anybody know how to write a code to assign random numbers between 1 ~ 3 to an array and make sure there are no more than 3 repetitions together? Right now I was trying to to it for my code, but it clearly failed when there are too few answer choices.

Movie In A Button Loop While I Click
How to I stop the movie to loop again once I click on the button?
Help needed.
Thks everybody

Adding On Button Click Action From Within A Loop?
Hello, I am quite new to as3 and I really cannot figure out how to do this.

This script i made loads all of my images really nicely into my scrollpane
Then when i click on the image it returns:
undefined
[object Loader]

For every image, it has a unique materialID (from my database), so i want to make a textbox this value when i click on an image.

But the eventhandler does not seem to know which image it has clicked! I really don't understand why not, I thought it would store the current value of evt.target.data["Material"+i] when clicked

But it just returns [object Loader], instead of the value of evt.target.data["Material"+i] ("12345", for example)

Is it possible to pass a unique value for each image i load to the clickhandler function? so when i click on an image, the textbox on the scence changes to the name of that image..

Please give any advise..


Code:
var myLoader:URLLoader = new URLLoader()
myLoader.dataFormat = URLLoaderDataFormat.VARIABLES
myLoader.load(new URLRequest("http://www.mydomain.com/materials.php"))
myLoader.addEventListener(Event.COMPLETE, onDataLoad)
myLoader.addEventListener(IOErrorEvent.IO_ERROR, onIOError)
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError)
myLoader.addEventListener(HTTPStatusEvent.HTTP_STATUS, onHTTPStatus)

var holder:Sprite = new Sprite();
var p:Array = new Array();
var hor = -100
var ver = 10
var rows = 0
var howmanyloaded = 0
var lasttoload = 0

function onDataLoad(evt:Event){

var thestage = 0.2
var count = evt.target.data.count
lasttoload = count - 2
trace(lasttoload)
var imagetoload = Math.round(lasttoload * thestage)

for(var i:uint=0; i<evt.target.data.count; i++){

p[i] = new Loader();
p[i].load(new URLRequest("http://www.mydomain.com/products/pics/"+evt.target.data["Material"+i]+".jpg"));
//trace(evt.target.data["Material"+i])
//preloading stuff, will work on fixing later today
//p[i].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
//p[i].contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
holder.addChild(p[i]);

p[i].addEventListener(MouseEvent.CLICK, clickHandler)

//my genius way to avoid having to do the maths. haha
if(rows==4){
rows = 0
hor = -100
ver = ver + 110
} else {
hor = hor + 110
rows++
//ver = ver + 0
}
p[i].x = hor
p[i].y = ver

function clickHandler(event:MouseEvent):void {
trace(evt.target.data["Material"+i]);
trace(event.target);
}


}
}

//error callbacks
function onIOError(evt:IOErrorEvent){
trace("IOError: "+evt.text)
}
function onHTTPStatus(evt:HTTPStatusEvent){
//trace("HTTPStatus: "+evt.status)
}
function onSecurityError(evt:SecurityErrorEvent){
trace("SecurityError: "+evt.text)
}

////i have just temporarily added a timer here, because the scrollpane does not scroll unless i add the mc when it's already filled
//will have to tie this into the preloading, attach mc to pane when it is done preloading.
var timer:Timer = new Timer(7000, 1);
timer.addEventListener(
TimerEvent.TIMER,
function(evt:TimerEvent):void {
pane.source = holder;
trace("attached")
}
);
timer.start();

Synchronizing My Sound With My Sound Loop..how?
Hey everyone,

I have created a flash movie with 2 scenes and i have added my sound loop to it in the first scene. the sound loop is long enough to cover both my scenes, but when i play it is never synchronized with the sound.  when i export the movie and listen to it i try to see where it ends and expand or reduce my animation to fit it but it never really works.

what's worst is when i take it to another computer and try it, it is all off even worse!  is there a way to synchronize my animation and sound?  i'm sure it will be easier if i had one scene cuz i could see (better) where the sound loop ends but can i do it with two scenes.

also i have made my movie using flash mx but is there i can make it compatible with a flash 4 plugin?

thanks in advance.
-Shu

Sound On Click?
alright this is a dumb question but im still getting into flash.
im useing mx 2004

how do i make a button play a sound in the libary once clicked?

i have this..

ts_hte.onPress = function() {


but i dunno what to put in there to make it play a sound in the libary.



anyhelp would be great!

As3 Sound On Click Help
Im working on an intro page where you click the enter button and go to the main page. Does any one know the code to add sound. So far I have this to just get to the main page:


stop()
enter.addEventListener(
MouseEvent.MOUSE_UP,
function(evt:MouseEvent):void {
gotoAndPlay(30);
}
);

thanks

Please Help :[ Sound Problems And Click Here
I imported a song into flash, and i noticed that when it is on stream, the result of the swf is bad quality, and it is all staticy. However, when it is on event, it is much better quality, with no static. But the file is extremely big when on event. How do i get it on stream, but good quality?
I tried just changing the export settings to MP3, best quality, but it didnt seem to make a difference.

Sound On Click Buttons
Hi, I'm pretty new to actionscript 3.0 and I haven't touched flash since about 2004 so trying to learn all the script has been pretty challenging. One thing I can not find a tutorial for anywhere is using AS 3.0 to script a button to play a sound on a click event. Basically I have some buttons set up, which use a movieclip to animate and play sound from the timeline when they are in a rollover state. But now I need to make them play a sound when they are clicked... how do I accomplish this?

Mouse Click Sound
Hello, I am trying to create a simple flash game which involves shooting. I have scoured the internet for a couple of days to try to find a way to make a gun sound when the mouse button is clicked, but to no avail. Could someone please point me in the right direction. I am using Flash CS3. Thanks for your time, Dave.

How Do I Play A Sound On Click?
how do i play a sound on press?
on(press){
sound code?¿?
}

Random Sound On Click
Anyone know how to make a sound (picked at random from a selection in the library) play when a button is clicked?

Add A Click Sound To Mc Instance
I looked in the tutos and forums...but none can answer exactly to my ( simple??) question.
The buttons of my menus are mc with instance names. I want to play a click sound on each of them on rollover..
Can sbdy help me ?

How Do I Play A Sound On Click?
how do i play a sound on press?
on(press){
sound code?¿?
}

Director 'on Click' Sound
Hi

Does anyone know the lingo code (if lingo is necessary) to add a 'click' sound to a button in director so that when it is clicked, it makes a sound?

Thanks.

Mak

Adding Sound With A Click
how would I add sound when you click a button?

On Click, Sound Fade
Hi,

I am making a presentation in which i want to change the sound when i go to diffrent section but the problem is i want this transition to be smooth like the current sound should fade out on click and the other one should fade in.


Pls help me in this!!!!!!!!!!!!!!!!!!!!!!!


tarvinder

On Click, Sound Fade
Hi,

I am making a presentation in which i want to change the sound when i go to diffrent section but the problem is i want this transition to be smooth like the current sound should fade out on click and the other one should fade in.


Pls help me in this!!!!!!!!!!!!!!!!!!!!!!!


tarvinder

How To Turn Off The Click Sound Of My Buttons?
There is no music in my swf. Only the buttons make some noise when clicked. I'd like to make a button the user can turn off all these click sounds with. Is it possible???

Please help me!
J.

Restarting A Sound By Click Of A Button
Hi,
I have my sound file in my library. and i have placed it in one layer. Now i have two buttons to stop and start a movie. When i click the stop button my movie and sound both stops. I use the followng code
on (release) {
tellTarget ("bq") { //bq is the movie clip
stop();
stopAllSounds();
}
stop();
}

on (release) {
tellTarget ("bq") {
play();
}
tellTarget ("music") { //I dont know how to specify the
//target for the music file.this gives
//error.I even gave it a linkage in the lib
//but that also did not worked
play();
}
play();
}

can anybody plaese help. I jsut want to know how to restart the sound.

using flashMX

Button Click Sound In Html?
hi... when i make a button in flash it doesnt make a sound (unless i tell it to) when i play the swf... but when i publish it to html, i get one of those button click noises(even when i have assigned a sound.start() on button release...they both play)... how do i get rid of this annoying button click noise?

If You Want A Button To Make A Click Sound...
if i want my buttons to make a click sound when you rollover it, do i attach a sound effect (for instance, one of the click sounds from flashkit) to the button somehow? i'd apreciate the actionscript for this or any tips on how i go about doing this. thanks!!!

Need Idea For One-click Sound Control
I am planning on making a speaker button for my site, where on the first click the background music would stop and the icon would change to a certain shape, on the second click all sound effects will stop (mute all sound?), and button would change to another shape, and on final click everything will be back on again.

I am thinking about using a variable to keep track of the stage of the button, so like on each click do a +1 to the value, and if the var is over 2 then change the var back to 0. Do you think this will work? And I am thinking about putting the background music in it's own movieclip. Not too sure how to go about with the sounf fx on buttons and stuff though...

Mouse Click Sound Throughout Scene
This is most likely another stupid question- but I can't find the answer in my book.

How can you make a sound event every time the mouse click occurs?

Any and all help appreciated- Thanks!

More Than One Sound Playing On The Click Of A Button.
Here's what I need help with:

I have a picture of Rodney Dangerfield in an SWF I'm making, and I have many funny sound clips of him. I'd like it so that whenever you click on Rodney, a random sound clip will play. (Or more than 1 sound clip to play on each click of it, in any order, or randomly) (Say I have 1.mp3, 2.mp3, 3.mp3, 4.mp3, and so on.. I'd like it so that whenever you click on Rodney, one of the sounds will play, but not just the same one over and over, different ones on every click. I hope I explained this good enough, and I hope you smart people can help me.

Thanks so much in advance!

The .fla is here, and if anyone can get it to work and re-upload it as a zip or rar here, it would be great.

Mmm, donuts.

wtf? Mr. T?

Sound Fade Out On Button Click
First of all, how do you make a music on/off button and how do you make it fade in and out when you press on or off?

-ben

Click Clack - Sound Effects SWF
If I want to set up a sound-effects SWF with a bunch of clicks, bongs, buzzes, etc, what's the best way to do this?

I tried importing a bunch of .aif's into a FLA library, but when I compile into a SWF, the sounds have not been included...

Note: My external mp3 compressor produces files with a minimum size of 2,048 bytes, -- even if the source sound is smaller, so using external sounds is a problem...

Loading A Swf. With IE (browser) Click Sound
Hi, i am a newbie here and i was wondering how can i load a aboutme.swf file from my home.swf and having it to click with the IE browser progress bar with out changing by Domain name. I have seen other websites do it and i have tried to do it but i can't. please help!

Play Sound On Button Click
Hi im trying to get a sound clip of about 1 minute to play when you click a button.
is there some basic action script for this? and does the code go on the button or on the main timeline?

thanks!

Adding Sound On Mouseover Then Click?
Hi!

Right, I have a website that I'm creating and at the moment, the buttons have an effect on them that slides to reveal the 'up' state. I want to add a sound to the button when a user mouses over the button and then also when they click it. Can anyone help!?? A virtual beer is here if anyone can sort this for me!!

Cheers all!

[CS3] Click JPG, Play Hidden SWF Sound - HOW?
Hello. I've Googled this but was only able to come up with tutorials for really old versions of Flash, and some of the things mentioned in the tutorial don't match up with CS3.

Anyway, all I want to do is have a user click a JPG or transparent PNG file and play a sound. The easiest way to do this and ensure browser compatibility is to do it via Flash and javascript. I would like to have a way to embed multiple sounds in the same SWF file, so depending which image the user clicks it plays a different sound. Can this be done? I know Yahoo does something like this on their web site. If you click the "!" mark on Yahoo.com the guy yodels. That's what I would like to accomplish.

Does anyone know of a step by step tutorial for Flash CS3 that covers this? I'm a total noob with Flash and don't even know where to begin. Thanks very much for your help.

How Do You Play A Sound On A Left Click
I was wondering how do you play a sound when you left-click on the 'stage' when the SWf is playing?

Someone Please Kill That Bloody IE Click Sound
I know how to disable this sound on any given computer, but what I want to know is if there is any way to disable it programatically. Is there possibly a javascript or vbscript option to not use the IE click sound?

I think this is a Windows default sound that comes with XP. Any time you click a link in IE, this sound plays. The problem is that I use getURL to call Javascript functions, and this click sound plays every time. It's annoying as hell.

Anyone know how to block this Microsoft foolery?

(I considered using fscommand instead, but I read that it doesnt work in IE on Macs)

Button That Plays A Different Sound After Each Click
I'm self taught and so far have been able to build what i need from tutorials.
I can't find a tutorial for this, and my understanding of actual coding is somewhat limited.
Working in Flash 7, AS 2. I want to create a button that plays a different sound when clicked.
This would require some code that will count the button clicks and play the assigned sound.
I think this would be done by assigning a variable to the button, and then each click would be var+1, then a var=2 play "sound2". Var=3 play"3" etc..

I have no idea how to script this.
Any help would be great.

Thanks

Sound Attached To Any Click Of The Mouse
Hi everybody,

I have a movie that already contains many buttons and movieclips behaving as buttons.

Now i would like to use a sound (click) from the library that would play when the user clicks any button or movieclip as well.

Do I have to go through all the instances, or there is a script to associate the sound to a "click" event?

If that is possible, would is work at all levels and loaded movies?

Thank you very much for your help.

Copyright © 2005-08 www.BigResource.com, All rights reserved