ActionScript 2.0 :: Sound Visualizations - Reading Levels Of Loaded MP3
Jan 14, 2005Any way to dynamically read the sound levels of a loaded MP3 to produce dynamic sound visualization in Flash?
View 5 RepliesAny way to dynamically read the sound levels of a loaded MP3 to produce dynamic sound visualization in Flash?
View 5 RepliesDoes anyone know of a way to dynamically read the sound levels of a loaded MP3 to help produce dynamic sound visualization in Flash?
View 5 RepliesI believe that my question here is a little hard, or maybe impossible. But here it goes:
How can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?
I now have my sound clip working in a container swf (level0).. Can I control this sound clip from other levels that have been loaded into level 1 from the container swf?Would it be something like
PHP Code:
_level0.mysound.setVolume(30);
If so, where do I name the music 'mysound'? I have simply dragged the music into the main timeline. Would it be better if I loaded it externally?
Is there a way with actionscript to detect different sound levels / pitches , etc? It wasnt possible with flash mx 2004, and therefore we had to use a program like flashamp.
View 1 RepliesHow can I, in Flash, get the levels of volume (peak levels) of multiple sound frequencys from an audio file, so that flash would recognize them?
View 1 RepliesThe main swf file of my site loads other swf files into it. Nothing hard there!But one of these loaded swf's has a number of buttons and what I need it to do is load aditional swf's into 'levels' of that file (not the main swf).I just can't seem to do it. Everything works fine but the swf's load into the main swf meaning they overlap areas that I don't want them to appear inYou can load into levels within a loaded swf.2) Does each swf have its own levels or do we have to use only one set of levels that are in the main swf.3) And if they do have their own levels, how on earth do I tell it to load into them.My AS is as simple as this;loadMovieNum("quail01.swf", portvar);portvar is a variable.As I say it works fine when testing it within this swf, but as soon as I use the 'main swf', it loads into that files levels.
View 2 Repliesi have a movie that has 3 buttons on it..(and there r 7 of these button containing movies being loaded into my main movie...but this is not important in our case i guess.) anyway, each button loads a movie (they r draggable windows) into my main movie, located in different levels (not targets)..the problem is i want to change the alpha and depths of these draggable movies.eg;when i click on a button i want that draggable movie to come forward and set its alpha to 100 and the other two to 30..i could do this by loading the windows in target locations..but i can't do it when i load them in levels..
View 3 RepliesAs I've searched a lot and couldn't find it I thought of asking it here. Is there any good package or tutorial on Audio Manipulation? With this I'm not talking about play/stop/volume etc, but more on bitrate/speed manipulation etc. Or reading values in the sound (like an EQ does basically).
View 2 RepliesIm a bit confused about the adressing of .swf-files loaded into levels of another .swf-file. The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.
Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress? Can you do that globally (so that relative adressing is used by every .swf)? Can you set it individually, so that adressing is relative only from the specified swf's?
I'm building an application which will have a control to play, pause, step forward & step back through different versions of my visualisation - like the controls on your tape deck, but moving my visualisations through time, instead of that battered old Simon & Garfunkel recording.
I would have thought that my various animations would listen out for a particular event which fires on each 'beat' and tells it the time currently on the time line. My 'play' button then kicks off some code which causes one of these 'beat' events to be fired every second (or 5 seconds, depending on the speed selected). The 'step forward' button would cause a single event to be fired, and so on.
Assuming my design makes sense, I'm not clear how I would generate those events at regular intervals. Alternatively, my design might not make sense or be the most effective one for the job.
I'm trying to learn how to build interactive data visualizations, and I think I want to go the Flash/Flex/ActionScript route instead of using Processing.The problem is, I've never understood what the difference between all three is, so I don't know which one I should be learning.It sounds like Flash is more for designers/non-programmers, Flex is more for programmers, and ActionScript is just the programming language used in Flash and Flex (i.e., Flash and Flex are to Actionscript as the iPhone SDK is to Objective C...?). Is this correct?If so, I'm a programmer, so it sounds like I'd want to go either the Flex or ActionScript route. What's the difference between picking up an ActionScript book vs. picking up a Flex book?
View 2 Repliesgot a problem with a ByteArray visualization that i'm trying to get working. I'm trying to use 2 visualizations on stage, one to represent the left 256 data values, and one to represent the right data values. as opposed to doing a mirror image (which i have tutorials for) I am trying to get 2 separate visualizations on different parts of the stage. this is my code:
function myLeftVisual(e:Event):void {
graphics.clear();
graphics.lineStyle(1, 0xFF0000);
[code]....
Currently, the left visual works fine - but the right visual is still displaying the same sequence as the left. When I pan the audio fully right, both the visualizations go dead - and start working again when I pan central/left.
I have three btns on stage, clicking on each one i want them to load an external mp3.The problem is the previous loaded sound doesn't stop when a new one is loaded so I have all sounds playing at the same time
View 3 RepliesI am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.
View 1 RepliesI am doing an Actionscript 3.0 project which involves introspection. I am wondering if there is a way to get all the classes within a given package structure.
[Code]....
I have buttons with sound attached in over state and that works just fine, but this means that you are going to hear sounds only when you move cursor over button, how can i make some background sound to play from the moment flash is loaded, even when buttons are inactive, my background image looks like some electrical equipment and and i want to make it sound realistic (sound clip must to be set to loop) and must to start at the moment flash is loaded?
View 3 RepliesIs this possible? I've loaded an external swf into my movie - the swf stays on stage but loses focus throughout a users interaction.When it loses focus, I need the sounds within it to stop.It was mentioned that I should cast my swf as a movie clip but when I try I get errors.
View 4 Repliesi am loading an swf and i want to turn its sound off. Unfortunately i do not have access to the swf's .fla file. so i am looking for a way that i can turn off the sound from the file that i am loading it into.
View 1 RepliesI have an application, that has a movieclip in it. I'm creating a loader, loading another SWF and appending it to that movieclip. This is working perfectly fine. However, in the child SWF, there are a couple sound clips in the library that fire at certain times. If you play the child SWF by itself, the sound clips fire just fine. When loaded into the movieclip, nothing is playing.
View 4 RepliesMy english is not too stron, but i'll try to explain my problem...I've got 2 swf's, first is main, second is loaded to he first(flv player) throught the command "loadMovie("player.swf", myPlayer)".In the second swf there are such code:
vol.onRelease = function() {
vol.bar._width = _root.myPlayer.vol._xmouse;
sound.setVolume(_root.myPlayer.vol._xmouse/vol._width * 100);
[code].....
I have a youtube movie loaded (with a loader) on one page which plays with sound. however when i leave the page the loader is removed but the sound continues to play.
how could i mute this?
i have tried several things such as using a SoundMixer or soundTransform, placing the loader in a movieclip and changing the volume of the movieclip
is there no simple code for muting a loader? even removing it or unloading it does nothing.
How could I get a sound from loaded video by Action script?
View 1 Repliesi have loaded one swf in current file. the loaded swf contains a video with sound. now on clicking another button of current file say "next" I want to load another swf which i did but the sound of previous swf is not stoping
View 2 RepliesI have buttons with sound attached in over state and that works just fine, but this means that you are going to hear sounds only when you move cursor over button, how can i make some background sound to play from the moment flash is loaded, even when buttons are inactive, my background image looks like some electrical equipment and and i want to make it sound realistic (sound clip must to be set to loop) and must to start at the moment flash is loaded?
View 1 RepliesI don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete code: This is on my 1st frame:
[AS]
bg_music = new Sound(_root);
bg_music.loadSound("music.mp3", true);
bg_music.stop();
[/AS]
This is on my sound controller clip, shows the progress of the music playing and stuff:
[AS]
onClipEvent (enterFrame) {
var musicloaded = _root.bg_music.getBytesLoaded();
var musictotal = _root.bg_music.getBytesTotal();
var lprogress = Math.round((musicloaded / musictotal) * 100);
var musicttime = _root.bg_music.duration;
[Code] .....
I tried with "loop" too, but the sound just plays once.
I have a button on my main scene which creates the varaiable "soundoff", then if one of the placed swf's when loaded detect the variable it stops all sounds,
if(soundoff == true){
stopAllSounds();
This works fine but does not target sounds placed in movieclips in the loaded swf's timeline. I've tried targeting them with the _root. command and using linkage but I can only stop the sound in the main timeline level.
was wondering if is there any way to stop sound (stream sound put on a frame as it have to be sync to an animation) from a loaded swf.I know SoundMixer but I don't want to stop sound from my main swf, that have the possibilities to load external flv.
View 2 RepliesI'm very new to flash codes and I try to develop program that works on CD I made main swf that load external swf . In main swf that is a button in the main list that lead to goto other frame load the external swf in uiload The problem when I go back to main list that external swf sound wont stop I tried this code
[Code]....
I don't know why, but my sound dosn't loop, even though I set it to loop, here is the complete [code]...
View 1 Replies