ActionScript 3.0 :: Synchronizing The Channel Mixer / Remixer Sounds

Jan 16, 2010

I am building a 10-channel mixer/remixer and I`m having a problem with synchronizing the sounds. When a user clicks on the "Play" button, it calls a method in the main (document) class which runs through a "for" loop and calls a method in each of the channel objects which play their respective sounds. Here is the method in the document class which calls the playTrack() method in each channel object:

[Code]...

View 11 Replies


Similar Posts:


ActionScript 3.0 :: Synchronize Sounds Perfectly To Do A Kind Of Audio Mixer Using Different Sounds?

Feb 7, 2011

I want to synchronize sounds perfectly to do a kind of Audio Mixer, using different sounds. [URL] does it perfectly, I've been researching and researching and I just don't know how to do it! How does [URL] synchonize audio so perfectly? you can even change sounds and the new ones will come on time! How do I do that? Is it just Action Script? or something else?

View 1 Replies

Flash :: Audio - Using One Sound Channel To Play Through An Array Of Sounds

May 26, 2011

I Am wondering if is possible to use one sound channel to play through an array of sounds? Perhaps by using a complete event or other means?

View 1 Replies

Create A Multitrack Audio Mixer?

May 31, 2009

how to create a multitrack audio mixer?

View 2 Replies

ActionScript 3.0 :: Sound Mixer - Mix Several Audio Streams?

Nov 12, 2008

Is it possible to mix several audio streams? I want to play several audio tracks simultaneously, but several factors that are at times, the audio tracks are out of sync, such as latency Sound.play method, the for loop, the spec of users PC, FLash Player version, operating system etc

View 1 Replies

Professional :: Sync Up Audio In 30-track Mixer?

Mar 2, 2010

We are creating a 30-track mixing desk to demonstrate our percussion instruments. Take a look at www.bellpercmixer.com. As you can probably hear, the audio is not properly syncing up.
 
The files should be exactly the same length (8 seconds) but they are mp3s so I don't know if the compression messes the length up as I know it adds the gap between the loop? More than likely, it is my lack of action script skill that has caused this problem... e.g. does each track need to be on a separate layer with a sync-track type thing? Here is an example of the script:

[Code].....

View 1 Replies

Actionscript 3 :: Create Sound Sequencer/mixer In Flash?

Mar 14, 2012

So I want to create sound sequencer in flash with as3.

I guess I would need to use some sort of array with all the sounds, then on enterframe I would check my grid, with ticked boxes and play the sound if it is ticked and playhead is over the particular piece on a grid....

Here's the screenshot of what Im trying to make.

View 1 Replies

Actionscript 2.0 :: Creating A Mixer Interface That Plays Multiple Tracks At The Same Time?

Jun 10, 2009

New to flash and actionscript. Here's what I'm using:

Flash CS4
Actionscript 2

I'm creating a mixer interface that plays multiple tracks at the same time. I can play and stop all tracks, but I'm having a tough time figuring out how to pause/unpause the tracks. I have a [pause_btn] and an [unpause_btn] just don't know the code to get them working.

[Code]...

View 5 Replies

ActionScript 3.0 :: Synchronizing Sound And Animation

Aug 26, 2010

I have an animation of a swinging sign that is accompanied by a squeaking/swinging sound that is loaded externaly.. What I would like to do is go a step further and synchrinize the sound with the swinging sign.I've seen some tutorials about synking imported sound with animation - but is there a way to also synk an external sound?

View 3 Replies

Php :: Synchronizing Web Application State Across Tabs?

Sep 21, 2011

I'm trying to maintain a web applications state across multiple tabs whilst using ActionScript, JavaScript, and PHP. Should I use AJAX to update the database after an item has been purchased etc, or should I prevent the game being loaded if it's already open in a single tab (if so how could I achieve this)?

I'm building a facebook game, when the user buys an item and has many open tabs it doesn't update the state in the other open tabs. The buying of an item is handled by ActionScript, and the storage of that item is dealt with using PHP.

View 1 Replies

ActionScript 3.0 :: Synchronizing MP3 Sound With Animation

Mar 10, 2011

I am a beginner using AS3 and working on an eLearning lesson using a Flash animation as a breathing exercise. The animation works well, but I need to synchronize 2 breathing sounds with the inhale-exhale animation cycles.I can import the inhale.mp3 and exhale.mp3 into the library. But then, I am not sure how to control play so that when the animation's inhale cycle is displaying (circle on stage expands for a time using a variable for duration, in microseconds: _inhaleDuration), the inhale.mp3 plays until the _inhaleDuration completes. After the inhaling animation, the animation cycle has a brief pause (no sound), then the animation displays the circle contracting for the time in the variable, _exhaleDuration, during which time I need the exhale.mp3 to play its breathing sound. Each sound needs to be synchronized to play only as long as the animation inhale or exhale duration.

I've been reading about sound files online and trying to figure out how to control play by duration using these 2 variables (_inhaleDuration, _exhaleDuration) but so far have not found this. So, I'm stuck and hope someone can provide suggestions, sample AS3 script, so I can add this feature to the animation's Tween function, that expands and contracts the circle, so it also has sounds.

View 2 Replies

ActionScript 1/2 :: Synchronizing The Sound With Highlighting Text?

Sep 26, 2009

How could I synchronize the highlighting text mechanism with the audio.

View 3 Replies

ActionScript 3.0 :: Synchronizing Video And Audio Content?

Feb 8, 2011

I have an mp3 audio file with some narration and I also have a bunch of images that should change each other on the screen depending on a cue phrases in audio. My question is what will be the best approach to the task. Is it possible to lay out sound and images in timeline the way it was possible in Director? If so, is there any way to automatically extend audio to the number of frames needed to cover its duration? Or do I need to convert an mp3 audio in some video format (flv) in Soundbooth, add cue points, then import video to Flash (what should be the video settings so the Flash accepts it) and use ActionScript to trigger the "slide show"

View 1 Replies

Flash :: Actionscript - Synchronizing 2 Sound Channels?

Sep 9, 2011

I am using 2 sound channels to play 2 separate, externally loaded mp3 files at the same time. Right now I have the play button tied to a function that starts the first mp3, then the 2nd. The problem is - the 2nd mp3 starts a few milliseconds after the first. Is there a way that I can make sure these 2 start playing at the exact same time?

[Code]...

View 1 Replies

ActionScript 2.0 :: CS3 : Synchronizing Main And Movieclip Timelines?

Apr 28, 2009

With AS2 is it possible to use the current frame postion of the main timeline A to control the position of two mc timelines B,C relative to the current frame postion of mc D?the main and mc timelines have the same No of frames.Inverse control by D of B,C relative to A is also required!

View 1 Replies

Media Server :: Synchronizing RSOs In Whiteboard Application

May 2, 2010

I have prepared a CUSTOM WHITEBOARD. This whiteboard is shared by two clients. They BOTH can draw on the board using TOOLS in the WHITEBOARD PANEL SET of the application. When someone DRAWS I do following actions:
 
1: Capture the WHITEBOARD FULL AREA/CANVAS using jpgEncoder().

2: Then I send this BYTEARRAY to the FMS server as Remote Shared Object.

3: The client then draws that RSO onto the WHITEBOARD.
 
Pretty simple though.
 
BUT, I am having synchronization ISSUES. The issues are as follows:
 
Issue 1: Image updates with no synchronization and seems to be zig-zag/random  when they both draw at a normal speed.

View 2 Replies

Actionscript 3 :: Synchronizing Player's Units In A TD Flash Game?

Aug 18, 2011

I want to develop is a multiplayer TD game, and Im concerned about how to sync the players, I mean, its possible that at some times the map would be crowed with units everywhere.. is that an issue that has to be considered in order to make all players view the same at all times?.

View 1 Replies

ActionScript 2.0 :: Use With Music Is Affecting All Other Sounds - Button Sounds And Background Sound

Apr 16, 2010

I followed the mp3player tutorial (part 3) from [URL] and got it working fine. Only problem is that the setVolume I'm trying to use with my music is affecting all my other sounds - button sounds and background sound. I'm aware of the createEmptyMovieClip/attachSound approach and got it working on my other sounds. But Lee's tutorial-mp3player is using a slight different technique, and so my normal approach doesn't quite work.

[Code]....

View 7 Replies

ActionScript 2.0 :: CS3 Getting Sounds To Start Again After Using Stop All Sounds

Nov 29, 2009

I have a film with 4 scenes in it: Here's a link to the film and as you can see the film does not play the music the second time because of the StopAllSounds function which is probably the wrong code to use. The first scene is just a button with 1 frame, a stop action and a music clip. The second scene is the film. The third scene is the credits fourth scene is a Play again button. I have a Stop all Sounds action on the fourth scene because if I do not use it and I press the Play Again button, the music from the first song keeps playing but also the music from the film starts up again so it starts to play twice. What I want to know is, how do I get the music to stop at the end of the film but start up again once I hit Play Again?

I am using Flash CS3 if that helps and using Actionscript2.

View 2 Replies

Flash :: Synchronizing Sound - Sound Gets Terrible As Time Passes?

Jan 31, 2010

It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below:

package com.objects{

import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;[code]....

The Attack() method gets called from another class that handles all keyboard controls.when it gets called the sound then plays.firesound and firesound2 are almost the same. firesound2 sounds a little off pitch to make it sound more realistic.At first the sound sounds pretty good, not great. but then it gets terrible as time passes.

I made a new .fla project. and I attached the following class to it by it self. so the following is the only code in the entire .fla project and the issue still occurs. I press the spacebar and the sound starts a day late.

package {
import flash.display.MovieClip;
import flash.events.*;[code]......

View 2 Replies

Flex :: How To Add Security To Channel

Jul 7, 2011

I'm using a Amf channel , How to add security to My channel..

View 2 Replies

ActionScript 3.0 :: Alpha Channel An Mc Programmatically?

Mar 24, 2009

How is a movie clip programmatically alpha'd? I've tried everything in my .as script, I run the movie, and nothing happens.

View 4 Replies

Send Live Alpha Channel VP6?

Aug 8, 2011

I need to send a live streaming to Adobe Flash Media Server  encoded with on2 VP6  8 bit alpha channel (chroma key) so all clients see only the speaker with no background.what hardware or software support realtime encode VP6 alpha channel

View 1 Replies

Flex :: How Does A Consumer Know What Channel To Use In A ChannelSet

Jun 20, 2010

If you subcribe a Consumer in Flex, you need to assign a ChannelSet to the Consumer. In my case, I create a ChannelSet and then add a Channel to that ChannelSet.Apparently, the added channel is the current channel of the ChannelSet. But what if I would add two Channels to the ChannelSet? Do I need to set the currentChannel before subcribing?If there are two channels in the ChannelCet, and I trigger the login method on the ChannelSet, will both Channels be authenticated and connected?

View 1 Replies

Flash :: Use A Sound Channel On A Movieclip?

Apr 1, 2011

The only way i can describe this is showing the code I have already then trying to explain what i want to do.Basically, I am creating a soundboard game, where at the bottom of the screen I will have a bar which is a movieclip, and I will be dragging other movieclips onto it and then clicking pay, and using an array and .push they will play in order. I am trying to put the sounds onto the movieclips using code.[code]...

View 2 Replies

ActionScript 2.0 :: Route One Audio Channel To Both?

Feb 21, 2010

I want to have a video with a different language on each channel, to give the viewer the possibility to switch dynamically. That's easily done with setPan, however you end up with the audio playing on only one channel, and that's pretty bad, specially if you watch in headphones. So my question is:

how do you take one channel from an FLV stream and send it to both speakers?

View 0 Replies

Video Encoding For Alpha Channel

Jan 20, 2010

I am experimenting with video using the alpha channel capability of the FlashCS3. I followed the tutorial on the gotoandlearn website on how to create chroma keyed video. I exported an avi video file having removed the background. Ive used Flash video encoder for VP6 and flash player 8 with encode alpha channel ticked. However my swf is not showing the video, just a white blank where it should be. It puts out the audio only.

This is the log file.
FILE SUCCESSFULLY ENCODED
- Source file: C:downloadsflash greenscreenvideoscreentestalpha.avi
- Output file: C:downloadsflash greenscreenvideoscreentestalpha2.flv
- Video codec: On2 VP6
- Alpha channel encoded: yes
- Deinterlace: no
- Frame rate: 25 fps
- Key frame interval: 50 frames
- Video data rate: 40 kbps
- Width: 720 pixels
- Height: 576 pixels
- Audio codec: MPEG Layer III (MP3)
- Audio data rate: 16 kbps (mono)
- FLV duration: 00:00:10
- Encoding time: 00:01:00

View 1 Replies

ActionScript 2.0 :: Get The Alpha Channel Value From External .png?

Jun 7, 2007

i can now getPixel() from a external jpg but what i finallly want to achieve, is getPixel32() the alpha value is always FF(255)

[URL] take a look on this sample~ in this sample the photo is partially transparent, i can see that in photoshop if i put my code in this file, the color picker can tell the alpha changes. that why i still think there is a chance for getting the alpha value from external .png~ just don'y know how to achieve it T_T (i've try transparent png and also alpha channel added png, doesn't work like the sample)

Code:
import flash.display.BitmapData;
import flash.geom.ColorTransform;
import flash.geom.Matrix;

[Code]....

View 2 Replies

IDE :: Alpha Channel And Mouse Events?

Nov 3, 2009

I have some png images which were converted to movieclips and exported. I would like all clicks on the transparent parts of the png to be ignored by a movie clip on a closer layer and have a movie clip under the transparent parts receive the event. Is there a way to do this? When I convert the symbol to a movie clip, the authoring tool automatically puts a bounding box on it so all clicks in the bounding box are detected. I tried searching mouse events and alpha channel stuff on the forum.

View 3 Replies

ActionScript 3.0 :: Play / Pause Sound Channel?

Jan 8, 2010

The pause button in my MP3 player resets the track to the beginning, there is something wrong with my sound channel because when i trace the position it is always zero.[code]...

View 1 Replies







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