ActionScript 2.0 :: Any Way To Sync Two Sound Events To Play Simultaneously?

Jun 16, 2004

Is there a way to synchronize 2 sound events to play simultaneously? It's vital that they begin at the exact same time (aren't started asyncronously).

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Syncronize 2 Sound Events To Play Simultaneously?

Jun 16, 2004

Is there a way to syncronize 2 sound events to play simultaneously? It's vital that they begin at the exact same time (aren't started asyncronously).

View 2 Replies

ActionScript 3.0 :: Use A 'master' Sound Instance ,that Can Play Multiple Times Simultaneously?

Jul 27, 2010

Imagine this scenario:The application is a Game, where the enemy characters can 'attack' the player, and each time they attack the 'Attack.mp3 file is played from the libraryNow my question is, if I have to create a new instance of the MP3 file in the memory, each time playing it, or can i use a 'master' Sound instance ,that I can play multiple times simultaneously.(similarly I can use one 'enemy.jpg' bitmapdata, that I can then copy to the screen with copyPixels, and only having it in the memory just once )IE if i have 50 'Enemy' characters running around the game

View 1 Replies

ActionScript 3.0 :: Button That Play Sound When Clicked And Be Controlled With Events?

Nov 8, 2011

I'm a flash beginner and I've been having alot of trouble figuring out how to make a button which can be controlled with the keyboard as well as the mouse and plays a sound when clicked but when the button is released the sound instantly stops. What I'm going for is a piano application, I made the button, I know how to create keyboard events with listeners and make the different button states up and down but I don't know how to control the button with the keyboard and play sound when the button is clicked but stop the sound when the button is released.

Also I'd like to have it where the space bar will cancel whatever makes the sound stop so it just rings out until the sound clip ends. Can someone explain to me how to do this, remember I'm a beginner so please explain everything.

View 6 Replies

Professional :: 2 Events Fired Simultaneously?

Aug 5, 2010

I have 2 buttons.There is a MOUSE_OUT event for button 1 and a MOUSE_OVER event button 2.The buttons are right next to each other.Each event leads to a different frame.When the mouse moves from button 1 to button 2, both events get fired, first MOUSE_OUT and then MOUSE_OVER - but the MOUSE_OVER event cuts off the MOUSE_OUT event and doesn't give it a chance to fully execute. To be more clear, for each event, a function is called which has "gotoAndPlay(x)"(x is some different frame number for each)The gotoAndPlay() will go to lets say frame 437 and play exactly 2 frames.But when MOUSE_OVER is fired and it calls my function, it calls the gotoAndPlay() BUT it doesn't get to play the 2 frames.It gets cut off because the MOUSE_OUT gets fired which calls a function which then calls gotoAndPlay() and plays a different 2 frames. How can I allow the first 2 frames to fully play and then the last 2 frames?

View 3 Replies

Flex :: Multiple Simultaneously MultiTouchGesture Events In Flash (AIR)

Dec 3, 2010

I have created an AIR application that makes use of Flash' build in capability of taking multi touch gestures (TransformGestureEvent.GESTURE_ZOOM & TransformGestureEvent.GESTURE_ROTATE)

It works fine on my Mac using the computers trackpad. It also works fine on a Windows 7 machine with a touchscreen attached.

But I can only modify one object at a time. Is that a limitation in Flash or is it possible to modify more objects at the same time and that way possible to make a multi-user multi-touch application?

View 2 Replies

ActionScript 3.0 :: Events / Execution Order - How To Sync

Aug 27, 2009

Scenario: I have a simple external class with one function that takes about 2sec to execute. It gets some data and put it into a global variable (using a special class for this). From the first frame on the timeline I call this function, and then right after I trace the global variable.

Problem: The trace is actually executed before the function in the external class has finished executing, so the output of the trace is undefined.

View 8 Replies

IDE :: Sound Going Out Of Sync?

Jul 13, 2009

I have an animation and sound running along the timeline. And step forward and step back buttons. The sound is set to stream to keep the animation and sound in sync with each other. This works fine when played from the start all the way to the end. But if the step forward or step back button is pressed, the animation will fall around 5-10 fames out of sync with the sound. And will remain like this until the end.

How can this be fixed so the sound and aniamtion won't fall out of sync.

View 1 Replies

Professional :: Sound Out Of Sync (CS4)?

Mar 17, 2011

I have made an animation. I have a layer where I put sounds that execute on certain frames. No script are involved. When I play the movie inside Flash, everything looks good and sounds are syncing. When I make a preview of the movie, some of the sounds are out of sync. I have no idea why, it's the first time I get this kind of problem. All sounds are set to event, but I have tried with stream as well and get the same result.

View 1 Replies

Lip Sync To Sound In Flash Movie

Jan 29, 2010

I have a sound in my flash movie and I'm trying to lip sync to it but for some reason when I try to move that red thing across the frames to play the sound across it so I can go to each syllable so I can work the lips to it. But when I run the red thing across the frames there is no sound going through the speakers. When I ctrl-enter and play the swf I hear the sound what should I do?

View 2 Replies

Professional :: How To Lip Sync And See Sound Wave Better

Jan 16, 2011

I'm working on an animation where some guys sings and in order to make that look good, i need some good lip syncing. Since this is not short clips, but a whole song on 2-3 minutes, it's very hard for me to make the lip sync perfect because I have to replay from the beginning in order to hear the music. So question one is: Are there a way that I can play the movie in the middle and still hear the music? And so the second question is that I can barely see the sound waves in the Music layer, even though there's lots of music. Here's a picture of how big the sound waves are: And that's in the middle of the song! The problem is not that the music is too low, because it's quite high. So question number two is: Are there a way that I can make the soundwaves bigger in the music layer without affecting the music itself?

View 1 Replies

ActionScript 3.0 :: Sync A Sound To Frames?

Jun 17, 2009

In Flash, when I use a sound, I can set its type to Play, Stream, etc., right? "Play" just plays the sound directly, while "Stream" makes it adhere to the frames.

Purely in Actionscript, is there any way to make a Sound object behave the same as the "Stream" type? That is, make it sync to the actual framerate of the application, instead of just making it play regardless of the frames? I need this because I'm designing a game where the audio needs to be consistent and repeatable.

I know that the default behavior of Sound objects is the standard "Play" type, because if I have something like this[code]...

View 0 Replies

ActionScript 2.0 :: Sync Sound With Buttons?

Sep 1, 2006

i need to play a sound with voices in order to play an interactive animation, but i must have an stop or pause option (a button) that pause both, the movieclip and the sound track, and when pressing again the "pause" button, the movieclip has to continue with the sound track at the same place it stoped. I�m getting a headache trying to figure how to stop a sound in a specific moment and then play at the same place it stoped, and not from begining...

View 1 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 3.0 :: Play FLVs Simultaneously Within Swf?

Mar 14, 2012

I am creating a flash "video jockey" station. I have 9 videos that are different parts of a song. Each video is loaded upon the loading of the swf with a volume of 0 . When the buttons given are pressed, they unmute and expose the video. I have it set to a 36 second loop. I have coded in a rewind for each video. When I export it for html, the rewind and play no longer matches up. I feel like there may be a simpler way to code what I am doing, and a way to say that all videos should match up based on their location within their 36 second play time. I have included the actionscript3 I have written for two of the videos. Imagine this with 9 total videos and background music all having the same rewind function.

stop();
import fl.video.*;
var pb:FLVPlayback = new FLVPlayback();
pb.source="videoOne_2.flv";

[Code]....

View 6 Replies

Sound Doesn't Sync Properly In 24fps

Dec 12, 2009

im having a problem with sound in the animation. I noticed that sound doesnt sync properly in 24 fps.The sound actually does sync properly when the sound is an event, but when the sound is set to stream, it actually doesnt play properly, and i need my animation to have streaming sound especially for the internet. So for example, if i added a sound effect to start on frame 30, when i play the animation in swf, the sound effect actually starts playing at the wrong frame, in this case, the sound plays before frame 30. So in this case, the sound plays too early, and therefore the sound effect doesnt match with the animation itself. I wanted my animation to be at 24 fps, so i assume theres something that i have to do to get sound to sync properly with the animation at 24 fps.

View 2 Replies

Professional :: Playing Sound In Timeline (For Lip Sync)

May 16, 2010

I've run into a bit of a problem using Adobe's CS3 flash program in terms of lip syncing... I can place the sound files in the timeline at whichever point I like and so forth, but I have no way to play them in such a way where I can adequately make lip syncs. It's hard to explain, but in flash MX I would merely click the timeline, drag the cursor along it, and it would play the sounds as it did the frames, one piece at a time. That way I could tell where the consonants were and therefore where to change my characters' lips. This is not the same as simply hitting "enter" and letting the sound play in its entirety.

View 4 Replies

ActionScript 3.0 :: Make Sound Sync With My Controls?

May 18, 2011

I've made a slide show with three pieces of audio that are set up to play with certain images.So you can imagine when the video is paused but the sound continues playing everything gets a bit messed up.

I have each audio on a different layer and none of them overlap, just fade in/out to one another.[code]...

View 1 Replies

ActionScript 3.0 :: Five MovieClips In Main Timeline - Sound Sync

Sep 26, 2008

Is it possible to add 5 movieClip in the main timeline, and add for each movieClip a Sound object at frame 5, so that when I play the main timeline, all sound are played simultaneously. Because if I store all Sound object in array, and I do for example (see attach code). That's correct ? Because the play method of Sound class have may latency.

View 1 Replies

ActionScript 3.0 :: Play Two Videos Simultaneously And Load Progressive

Dec 22, 2009

I am busy with a project where two videos have to play on top of each other. One video is really small and the other rather large (more than 20 MB). Because the large video has to be aligned in the center of the screen and the small video has to have a fixed position, the videos must be played separated.

Because of the large filesize I cannot embed the videos in the swf. It will become too large. Therefore the video's must be loaded in progressive mode. But because the smaller video will be loaded much earlier, the video's will not play in sync.

View 2 Replies

ActionScript 3.0 :: Play 2 FLVPlayback In Sync?

Sep 15, 2010

I didn't find any solution in the past discussions, I want to sync two FLVPlayback in the stage.Now I quickly solved with a Countdown of about 10sec;one can choose a project from a ComboBox and the two FLV play when the countdown reaches 1. That's not the right way as they never play in sync the first time..
 
I think a BufferingBar can do the job, detecting the end of the buffer. but I don't know the code to add...
 
This is the code I use with the Countdown: 
 
cb.addEventListener(Event.CHANGE, changeHandler);function changeHandler(event:Event):void {   if(ComboBox(event.target).selectedItem.data != "")

[Code]...

View 15 Replies

Professional :: Play Multiple FLVs Simultaneously Using Single Control Bar?

Jul 30, 2010

How can I  add a single control bar to control 2 external FLVs inserted in FLA document so that when scrolled, both FLVs move simultaneously?Is there a better PPT to Video Converter out there than Moyea that I can purchase or even a freeware? Original documents One FLV is a PowerPoint presentation with videos in some slides, converted into FLV using trial version of Moyea PPT to Video ConverterAnother one is an AVI converted into FLV using Super
 
I saw a similar question posted on Aug 15, 2007 ([URL].. but the "Look Here" link that describes the solution is not available (removed by Adobe for security reasons).

View 19 Replies

Professional :: Play Multiple Videos Simultaneously With A Single Control Bar?

Aug 17, 2010

I have 4 live f4vs that I'm using with interactive server 3.5.  Thus they are running in dvr.  I'm trying to find a way to control all 4 videos so that when you go back on one video all 4 videos go back to the same time.  This is very important with camera 4 as it is the only one with sound.I have tried putting all 4 videos in one swf file and I have tried putting each video as its own swf. 

View 11 Replies

ActionScript 2.0 :: CS5 - Make Beat And Music Play In Sync?

May 26, 2011

I have two different .wav loops. One is just the tune, and one is the beat. And when they play together right on each other in sync, it sounds great.I have a button on the stage. I want it so that the tune is playing by itself at first, but when hovering over the button, the beat comes in. And when hovering off the button, the beat disappears. The problem is, I don't know how to keep them in sync. The beat and tune get all off when I make it so that on hover it plays the beat.

View 1 Replies

Media Server :: Play Multiple Videos In Sync?

Jul 20, 2011

I need to build a website which shows multiple instruments in a band, being played in sync.  Each camera/video block is a different instrument, and played together, they constitute an entire band.  I have been searching high and low for ways to do this, and it definitely appears that HTML5 is out.  It looks like standard FLV progressive download is out, too, because it's impossible to get 4-8 videos to sync perfectly.
 
I see on the FMS page that it has some abilities in synching.  How would one (conceptually) go about making a webpage where say 4-8 videos begin to buffer, then when ready, play in sync?  And they would also need to, when the location is changed, all sync to that location and rebuffer. 
 
The objective is so that the user can mute/solo each video's audio, to remove an instrument(s) from the "mix" at any time.An alternative way of doing this, I think, would be to just put the 4-8 videos together in video editing, and encode this into one video, but have each video's audio track be a separate audio channel.  If FMS can do multichannel audio on one video, this might work, if it could mix them in/out individually, as the user requires.

View 13 Replies

ActionScript 2.0 :: Load 2 Swfs And Play In Sync On Webpage?

Feb 10, 2009

I have two swfs on a web page but need them to start playing at the same time. Problem is that one file size is bigger than the other, so one loads before the other and starts playing earlier.

Is there any code that can make a movie wait until the other one has loaded, then start playing in sync?

View 1 Replies

Actionscript :: Play Multiple Tracks In Sync Flash Builder?

Aug 6, 2011

I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.

It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the same time. this is example of something similiar to my project[url]... They must be controlled by changing volume (0 means off).

View 1 Replies

ActionScript 3.0 :: Stream And Play Back Concurrently While Staying In Sync (concurrent Playback - Buffering Percentage)?

Nov 15, 2010

I have two identical-length videos that I need to stream and play back concurrently while staying in sync. The best I can do so far is keep them about a second apart, but I'm wondering if there's a way to force them to actually stay in perfect sync? Oh yeah: I'm using AS3. (Ideally, I'd just have a series of JPGs instead of the second video and load the relevant image via cuePoint, but that aspect is out of my control.)

Second, what's the best/ideal method of knowing what I can only think of as "percent buffered"? These videos I'm loading are hosted on a Flash Media Server (which I don't have control over or access to, short of loading files from it), and while bytesLoaded/Total works for progressive stuff, I know it doesn't work for streamed stuff. Full disclosure: I know very little about working with serving video in Flash (obvious, I'm sure)(I'm not using the FLVPlayback component.)

View 3 Replies

Make A Movie With Multiple Scenes - Streaming Sound And Scenes Sync

Jul 3, 2009

whenever I set my sound to stream and continue to make a movie with multiple scenes. The audio and video get disgustingly out of sync sometimes even off by 30 seconds. I just started an animation its only 10 seconds long with two scenes and the AV is already off by about 5 seconds. Ive worked around this by avoiding scenes altogether but i really don't want to have another 5000 frame scene. I discovered this problem in Flash MX and Im quite annoyed that it still has't been fixed 3 years later!

View 1 Replies

ActionScript 3.0 :: Av Video Manip - Play Simultaneously With Video

Mar 24, 2010

I have 1 flv with only 12 seconds of audio. another flv that is 10 seconds with only video another flv that is 2 seconds with only video Lets assume both video files are as long as my audio file. Which actionscript commands should I look further into to: 1. play audio simultaneously with video 2. play the 2 second video smoothly/seamlessly after the 10 second video is over as if it were a 12 second vide 3. if my audio or video were mp3/wma instead of flv would I run into trouble 4. I imagine a flash media server would be mandatory if my videos were other formats like avi/mpg and had to encode on the fly

View 1 Replies







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