ActionScript 2.0 :: Sound Is Played Twice Overlapping Eachother?

Jan 20, 2005

Im using MediaPlayback-component to load MP3-files into and play them.

I use this code to call it:

myMediaPlay.setMedia("SOUND.mp3", "MP3");
myMediaPlay.play(0);

Problem is that the sound is played twice overlapping eachother (some of the mp3 is played first,interrupted, and then restarted again to finish fully).

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Prevent Any Two Objects From Overlapping Each Other Each Time Randomly Played?

May 23, 2005

how to prevent any two objects from overlapping each other each time they are randomly played?

i make them randomly appear using the code below but some of them appear on top of the other.

onClipEvent(load) {
_x=Math.floor(Math.random()*271)+120;
_y=Math.floor(Math.random()*265)+120;
}

View 5 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 2.0 :: Seconds The Sound In Sound Have Played?

Jan 24, 2003

Ive attached sound in to mySound variable. How to get how many seconds the sound in mySound have played?

View 1 Replies

ActionScript 3.0 :: Play A Sound File And Show The Progress Of The Sound File Being Played

Mar 16, 2009

I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.

View 3 Replies

ActionScript 3.0 :: Sound Played With Each Response?

May 2, 2011

I have a multiple choice quiz that needs to have a sound played with each response. So if the user selects the correct response, they get the ding sound. If the user selects the incorrect answer they get a buzzer sound.

[Code]...

View 1 Replies

ActionScript 3.0 :: How To Stop Overlapping Sound

Apr 4, 2011

I wanted to know how to write As3 so that the sound that I place on a timeline doesn't overlap? Or is it best off the timeline? I've tried putting each song into it's own place on the timeline but there are labels and when a new song plays, the old one continues. If I just have one song on the entire timeline, whenever I move across different labels, the song overlaps.

View 4 Replies

ActionScript 3.0 :: Stopping Sound From Overlapping?

Aug 31, 2009

How can I control sound in flash so that:

1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap?

2) the music doesn't overlap when going back to the homepage where the music first started playing??

I'm currently using the code below but the music overlaps when I press the play button more than once while the music is playing and when I go back to the page where the music started playing...

Code:
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0; // pause button
mySound.load(new URLRequest("that_tune.mp3"));

[code]....

View 2 Replies

ActionScript 3.0 :: How To Stop Sound From Overlapping

Aug 31, 2009

How can I control sound in flash so that:
1) the music starts when the user clicks on a play button but when they click on the play button again while the music is playing, the music DOESN'T overlap??
2) the music doesn't overlap when going back to the homepage where the music first started playing??
I'm currently using the code below but the music overlaps when I press the play button more than once while the music is playing and when I go back to the page where the music started playing...:o

Code:
var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var lastPosition:Number = 0; // pause button
mySound.load(new URLRequest("that_tune.mp3"));
//mySound.play();
[Code] .....

View 4 Replies

IDE :: Overlapping Sound Vs. Andio Not In Sync?

Dec 30, 2011

I am aving a problem managing the sound in my application. Here is the situation.I have ten frames in the main timeline and on each frame is a movieclip, inside of which i need to put sound (Each movieclip plays a different sound). Currently I load the sound dynamicly from library and everything works fine - the application plays sounds according to the current frame.

Problem is that each of the movieclips contains also an animation (two characters talking) and I need the animation to be synchronized with the sound. And since I am loading the sounds via actionscript, it has no sync and when the framerate drops on slower computers, the animation lasts longer then audio. To solve this, I tried to put the sounds directly into each timelines of the movieclips and set the "Sync" property to "Stream", but the result is, that when I call the gotoAndStop(5); method, all the sounds placed in movieclips in the previous frames (frames 1 to 4) play as well and all the sounds are playing at the same time.

View 1 Replies

ActionScript 2.0 :: Stop Sound From Overlapping?

Feb 10, 2005

ok im trying to make the sound on the scene stop when the scene stops.because it keeps on going through even when the scene itself stops...i have an on and off buttin but i need it to stop when the scene stops on start over instead of overlapping when the scene is played again...

View 1 Replies

ActionScript 3.0 :: Get Sound Played From Stage Without Instance Name?

May 24, 2011

I have an MC with a lot of frames on stage and it has sound clips attached to each frame.

I need to stop the sound being played when I move on to another frame on runtime, thus, I need to access the sound object which has no instance name. Right now the sounds overlap since none of them stops and after a while all we hear is jibba jabba.

View 1 Replies

ActionScript 3.0 :: Sound Played On Keyboard Event?

Apr 24, 2011

I'm creating kind of a pseudo RPG menu, and I just have the animation go to a different frame when you press an arrow key, backspace, or enter. I also have a couple of sound effects I wanted to play depending on what you press, but I am having no luck at all getting it to work, and everywhere I look online has very different instructions on how to go about it. Here's what I have just without any sound at all:

[Code]....

And then just different numbers based on what frame I'm on. As I said, I don't really know what I'm doing; a lot of this code was given to me. :/ So I know it's a lot to ask, but if I could get a very detailed explanation of what to do, If the sound could play before it switches frames, that would be best.

View 2 Replies

ActionScript 2.0 :: Move Clip - Stop After Sound Has Played Once

Jul 31, 2008

I am trying to play a sound clip using actionscript 2 the code I am using is attached to a button and the code I used is the following.

[Code]...

My problem is that the sound clip loops and I do not want it to do so. I have other animations going on on the stage. I tried to place the stop(); command but I do not seem to be able to make it stop after my sound has played once.

View 2 Replies

ActionScript 1/2 :: Make The Sound Start Up Depending On When The Movie Was Played?

Apr 20, 2010

I am just a rookie in Flash, and came across a problem. I'm trying to create a flash movie that will display time like a TV ident does. I've successfully set it up to get the correct time and play a "tik-tok" sound as each second passes. However, it is to have some background music, and I can't get it to start when I need it - for instance, if the time is 18:00:00 it should start at 00 seconds, it time is 18:00:21 it should start at 21 seconds etc. This is the script I used for ticking:

[Code]...

What should I use for the complex situation as described above? My only guess is that I should sync it to the frames in the background video (behind the clock, running at 24 FPS), but I haven't got a clue how to set that up as well. Can someone please help? If necessary I can upload the .fla file.

View 3 Replies

ActionScript 3.0 :: Overlapping Sound - Home Button - Get The Music To Loop?

Dec 16, 2009

Everytime I click on my home Logo the music overlaps and plays again. How can I stop this? and... How can I get the music to loop? (I've tried the mySound.play(0,10000); code but it didn't work)

[Code]....

View 3 Replies

ActionScript 2.0 :: Linking Music Player To Website - No Sound Heard Or Played

Jul 24, 2008

i am having some problems linking my mp3 player swf file to my website. It looks like it loads fine, and the buttons work and change the track of the song, but there is no sound heard or played. Here is the code i used to do this:

[CODE].....

As i said before, the player loads up and shows up on the website with no errorsand the buttons work (going to next or previous song as well as the pause and play buttons pausing and playing the music properly), but no sound can be heard. (this is being test on the latest version of firefox).

View 6 Replies

ActionScript 2.0 :: Sound Switching - Allows A User To Select If They Want Voice Overs Played Or The Standard Beep Beep (fashy Sounds)

Apr 4, 2008

im wanting to create a simple feature in my flash ap that allows a user to select if they want voice overs played or the standard beep beep (fashy sounds) i have three buttons (onBtn, offBtn and rollMe). does anyone know how i could do somting like... if onBtn is selected then.. on rollover 'rollMe' mySound1.start(); else if offBtn is selected then... on rollover 'rollMe' mySound2.start();

View 6 Replies

ActionScript 3.0 :: Flash - Sound Overlapping Problem In Flash?

Oct 15, 2011

I'm a beginner with this whole As3 lango and running into a couple of road blocks.I designed a flash site with a total of four pages. I have background music playing when at the homepage and continues to play when browsing the other three pages, but when I navigate back to the homepage the background music replays and overlaps itself. Is there a way I can stop the background from repeating itself every time I navigate back to the home page?

View 11 Replies

ActionScript 2.0 :: Objects Gravitate To Eachother?

Feb 25, 2012

I'm trying to eventually reach an end result in which you control an object with your mouse (which has worked so far) and other objects on the stage gravitate towards you as you move near them, just like they would in real life with physics and whatnot in space. Basically at the moment I'm just trying it with a single object gravitating towards an object anchored to the cursor. It is sort of working, but not really, when the x and y positions of object2 get near those of object1 it breaks and flips everywhere.

Here is my code thus far:

ActionScript Code:
onEnterFrame = function (){
Mouse.hide();
startDrag(atom,true);

[code]....

note the ax and ay variables could be avoided entirely probably and you could just do atom2._x -= 1 / dx; but i had created them when experimenting earlier and left them.It is very important that the object accelerates as it gets closer to the cursor, and that it is hardly affected when it is far away (again just like it would be in space).

View 0 Replies

ActionScript 1/2 :: Making Enemies Collide With Eachother?

Jun 8, 2007

I've got a function here that spawns an enemy for me and I'm calling it in a loop every few seconds or so that it creates a new enemy every second. This all works great.What I want to do though, is to make the enemies collide with each other. How would I go about doing this? I've tried using hitTestm but it detects that each enemy is hitting itself which is always.I've attached my code.

View 2 Replies

ActionScript 2.0 :: Two Buttons Keep Canceling Themselves Out If I Place Them On Top Of Eachother?

Aug 26, 2004

at the end of this tutorial it talks about adding links to the buttons created. I did what it said to do but the two buttons keep canceling themselves out if I place them on top of eachother.

View 1 Replies

ActionScript 2.0 :: Make MC's Unabe To Pass Eachother

Aug 4, 2006

I have 2 objects, a bouncing ball and a barrier. How do i make it so that the ball may not pass the barrier? It seems that no matter what I do, there are circumstances in which the ball does pass the barrier.

View 14 Replies

IDE :: Xml Gallery With All The Pictures Visible And Stacked On Top Eachother?

Jul 13, 2009

I want a xml gallery with all the pictures visible and stacked on top eachother. And i also want to make every picture buttons s you can click on a picture and go to the html page with a big picture. is this possible and can someone help me with the code?

View 1 Replies

ActionScript 2.0 :: CS3 Collision - Make The Balls Bounce Off Eachother

Oct 11, 2009

I have a MC (a ball) with this AS on it:

[Code]...

This bounces the ball off each 'wall'. how to add more balls (using actionscript - ie not copying and pasting on the stage) and to make the balls bounce off eachother too?

View 1 Replies

ActionScript 3.0 :: Collision Detection, Stopping Objects From Going Through Eachother?

Jan 16, 2011

I'm running a HitTestPoint to detect when two of my mc's collide, but I don't want them to be able to go right through each other. Someone suggested I find the x,y coords of the moving object when the collision occurs, then update that mc's coords to this x,y each time a collision occurs. I've been Googling but came up empty. Below is my code

private function __checkHit($evt:Event):void {
if (this.coin_mc.hitTestObject(target)) {
if (!hitting) {[code].....

View 2 Replies

ActionScript 2.0 :: Make Bouncing Balls Bounce Off Eachother?

Oct 19, 2004

I have a number of random balls bouncing around the stage. What I am having difficulty with is making them bounce off each other when they run into each other. The balls bounce off the walls just fine, but I can't seem to figure out the hitTest thing.

View 3 Replies

ActionScript 2.0 :: Create HitTest Function That When Two Mcs From MovieC Array Hits Eachother

Mar 30, 2010

I want ask u how can i create hitTest function that when two mcs from movieC array hits eachother they can change their colour. Both of them.

View 3 Replies







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