--> Visualisations Controlled By Audio ?
Flash MX has loads of support for audiovisual files. Is there any way to have inputs coming direct from audio, to make a graphic equaliser?
If so, could those inputs be hooked up to a load of visuals to create audio controlled visuals??
Cheers,
matt
FlashKit > Flash Help > Flash MX
Posted on: 07-17-2002, 06:44 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Playing Button Controlled Audio
Hello all.
I have spent the day trying to figure out how to get audio to play in a file, and be able to stop/start it with play and stop buttons. I cannot seem to get the actions associated with the buttons to control the audio source.
I've also had trouble loading the audio file, with the dynamic loading text showing the percent loaded.
This is what I have so far...
Frame 1 loading script...
Code:
stop();
audioClip = "files/intro.mp3";
_root.onEnterFrame = function() {
total_bytes = audioClip.getBytesTotal();
loaded_bytes = audioClip.getBytesLoaded();
if (total_bytes > 100) {
dynTxt = Math.Floor(loaded_bytes/total_bytes*100);
if (dynTxt == 100) {
gotoAndPlay(2);
}
}
}
..for the rest of the button controlled stop and start points, I have buttons (each in their own layer), and an actions layer that holds this code on frame 2 (the start of the audio):
Code:
stop_button.onPress = function() {
gotoAndPlay(151);
}
..and this code on the frame directly after the last frame of the audio. This is the frame that I want the movie to play when you click the stop_button.
Code:
play_button.onPress = function() {
gotoAndPlay(2);
}
Sorry for the drawn out explanation, it was the only way I could really state my problem. I can also attach a .zip file if anyone would like to see it.
Thanks for any help.
Brian
Number Of Audio Loops Controlled From External Text File ?
I am trying to set the number of audio loops from an external text file... to be honest I'm at a total loss.... any help would be greatly appreciated
Here's the code:
loadVariables("myfile.txt", this);
mySound = new Sound();
mySound.loadSound("audio.mp3", false);
mySound.start(0, This Part to be read from the external text file);
Thanks in advance.
Paul (UK)
Can Flash Detect Realtime Audio Data? (for Linking Visuals To Audio Velocity, Etc)
I've seen a lot of Oscilloscopes for Flash but they've all been fake - they simply generate random patterns that look convincing, expecially if the sound is erratic and would produce chaotic oscilloscope feedback anyway, but they actually have no connection whatsoever to the sounds that are playing.
I've heard people claim however that real oscilloscopes can actually be made in Flash, and I was wondering if anyone could point me towards some resources for looking into it.
I have a distinct feeling that they are probably misguided or just plain incorrect anyway, but it's still a prospect that interests me a lot.
Much thanks,
pH
Audio Player That Requires Access Codes To Play Audio Files. Possible ?
LINK
I've just uploaded this rough piece of website for an upcoming band. If you click LINK you will see two flash movies. The one on the bottom is the audio player. What they want instead of JUST an audio player, is a player that plays certain "secret" audio files if you enter the correct 6 digit number. So imagine a text field and a submit button next to the < || > controls. I'm still getting to know Flash and I have no idea how to create something like this. Anyone have any advice? Any tutorials out there? Info? and finally...this IS possible right?
Thanks
Audio Player That Requires Access Code To Play Audio Files. Possible ?
http://www.theafternoontears.com/monitor.html
I've just uploaded this rough piece of website for an upcoming band. If you visit the URL above you will see two flash movies. The one on the bottom is the audio player. What they want instead of JUST an audio player, is a player that plays certain "secret" audio files if you enter the correct 6 digit number. So imagine a text field and a submit button next to the < || > controls. I'm still getting to know Flash and I have no idea how to create something like this. Anyone have any advice? Any tutorials out there? Info? and finally...this IS possible right?
Thanks
Help Need An Audio Pause Button Flash 5 That Doesnt Need Audio To Preload
Hi,
I have tried so many audio methods to try and get a pause button that works and allows the audio to start streaming as soon as the movie starts.
I tried this tutorial at macromedia but it needs the sound to fully load or the sound_mc doesnt exist using
with(sound_mc)
http://www.macromedia.com/support/fl...mple_sound.htm
can it be done in flash 5.
my movie just needs to be a pause/play button and a mp3
but sound must stream not preload
mark
MC Controlled By Buttons
hi
in my scene i got 7 buttons that play a headline for each, should disappear when next headline comes in.
every headline is a MC (MovieClip), assigned with instance name (u1, u2,...). this mc is a couple of frames long. on frame one i have a stop action on an empty keyframe. the fadein ani is from frame 2 - frame 21. on frame 21 i have a stop action. from frame 22 till endframe i have my fadeout ani.
in my scene, on each button, i have an action that tells my headline-mc s to play if currentframe == frame21, else stop (i.e.:to tell mc s to play fadein-ani / fadeout-ani).
somehow they don`t fadeout / disappear , makin me crazy
thanx 4 everything
Controlled Pop-up Windows
Can anyone tell me how I can open a url in a new window with its size controlled and without the toolbars?
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, and when you mouse off, it cycles through all the logos. This is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!
Controlled From Ext. File
Can I control the location of a movie clip from a text or xml file?
I know flash can get info from an ext. file but can it be controlled by one?
So in the ext. file u hav some think long the lines of – mc01 = x50 y250
If any can help it would be much appreciated
Cheers
Nav Controlled By Function()
Hi,
I'm trying to control the navigation of my latest site using a function to move the playhead to a specific frame on the main time line. I've followed a tutorial but the blasted thing doesn't work.
Anyone know what I've done wrong? I have 5 pages and have made sure all the buttons have been named correctly and so on.
The script I'm using is...
};
this.buttons.profile_mc.profile_btn.onRelease = function() {
gotoAndStop("profile");
};
this.buttons.products_mc.products_btn.onRelease = function() {
gotoAndStop("products");
};
this.buttons.offers_mc.offers_btn.onRelease = function() {
gotoAndStop("offers");
};
this.buttons.services_mc.services_btn.onRelease = function() {
gotoAndStop("services");
};
this.buttons.contacts_mc.contact_btn.onRelease = function() {
gotoAndStop("contact");
};
Cheers
Steve
Script Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
Playlist Controlled Into Non-playlist Controlled?
Hi,
I have made a mp3 player based upon (but with my own design) this tutorial:
http://www.thegoldenmean.com/techniq...yer_v2_01.html
But as in my original design there is no room (or need) for a visual playlist, I want to get rid of it. I want my player to be completely controllable by these four buttons: prev/stop/play-pause/next, instead of having to double click in the playlist to enable playing of a song.
(Basically the player exists ONLY out of these four buttons, visually).
Is there some kind of standard/procedure/tutorial for turning playlist controlled mp3-players into button-controlled mp3-players?
Does anyone wanna give it a go? All tips would be appreciated as I have unsuccessfully tried it myself for ..many many hours now.
I've attached the .fla as well as a zipfile containing 3 other files (songList.xml.php, arrays.php, id3v2.php) which should be placed in a folder called "tracks" (in that same folder mp3 files should be place in order to test the player)
regards,
M.T.Pilot
(n.b. I used flash MX pro and actionscript 1.0 for this)
EDIT: attachments removed due to inactivity of this thread
Controlled Loop?
I know the most basic command in ActionScripts to keep my
Flash video from looping (stop();). Can I apply that command if I want
to end on a scene used previously in the movie (as in the example in
the
notes)? How does that work such that my movie doesn't stop after the
initial use of that scene and go no further?
Ideally, I would like to use the same scene as an opening and closing
sequence to my movie. However, after the second use, I would like to
have text saying "The End." Is there an if/then statement that defines
if this has played before or something?
Actionscript Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
Keyboard Controlled Xs
I'm just making a quick flash movie with 3 large gray Xs in the center. I want to be able to press the number 1 and then the first X will light up. Then, if the number 1 is pressed again the X will turn back to gray. I would like to be able to do this for X 2 and 3 as well. So all independant. I would also like there to be a buzzer sound when pressed. I'm kinda looking for a judge panel type thing. But any hints as to what I need to do in action script would be great!
Key Controlled Navigation
I want to make an interface that can be controlled by the mouse or by the arrow keys - the only simlat to what I'm trying to achieve is the game Colin McRae.
Lets say I have 3 buttons. If I move my mouse on any of them it gets an mouse over effect.
What I want to do is to combine this with the arrow keys that should be able to jump between the buttons - and the one selected is in the "over" state - to select it I press return.
How on earth is this achieved?
Would be more than grateful on any tips or hints!
Also posted on actionscript.org without any luck.....
Thanks
/sput
Timer Controlled MCs?
I think this is very simple but I can't seem to produce the correct code. I have 5 mc's and I want them to rotate forward with swapDepth every 20 seconds or so. I have the swapDepth working but I need a way to tell the mc's to run there internal animation and swap to the front in timed sequence. (I dont want to use long tweens because obvioulsy that sucks)
Basicly every 2O seconds I would like the mc's to swaps depth to the front and play that mc's animation. Help?
-Agent C4
Vertical Pan Btn Controlled
Hi Team,
I am trying to make a background scroll vertically. The scrolling should be controlled by three buttons. Top, middle, and bottom, also with some easing. I have been trying to make it work with tweens but it seems to complicated. I looked at the following tutorial
http://www.kirupa.com/developer/flas..._image_pan.htm
and have been trying to modify it but with no luck. Does anyone know where I can find a tutorial for doing this please let me know. If you don't know what I am talking about, here is an example of what I am trying to create:
http://www.buscarov.com/
Thank you
BonWhis
Help W. Timeline Controlled Mcs
I've been successful controlling my movie clips from the main timeline however I recently entered a text movie clip into the timeline and I cannot figure out for the life of me how to control the movie from the timeline. I can get it to play, but the movie stops there.
I've been using:
Code:
stop();
_root.gotoAndPlay("framelabel");
but with the text effect where it uses so much AS I dont know what to put to make it continue on to the next frame label when its completed.
Code:
stop();
//
textvar = textvar.split("");
//
this.letter_mc._visible = false;
//
numberOfLetters = 0;
Xsetter = this.letter_mc._x;
thisTimeline = this;
//
buildLetters = function () {
if (numberOfLetters<textvar.length) {
//
duplicateMovieClip(letter_mc, "letter_"+numberOfLetters, numberOfLetters+1);
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.text = textvar[numberOfLetters];
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.autoSize = true;
//
thisTimeline["letter_"+numberOfLetters]._x = Xsetter;
//
Xsetter += thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox._width;
numberOfLetters++;
//
} else {
clearInterval(letterInterval);
}
};
//
letterIntervel = setInterval(buildLetters, 110);
I've defied the pass variable and just freeformed my text in on the MC frame AS. if someone could help me figure out how to make this movie perhaps, onClipEvent.stop and go to the designated frame label I'd really appreciate it. Thanks!
One Button, Two MC's Controlled
I have one MC with the following AS:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = false;
play();
}
_root.about_btn.onRollOut = function() {
rewind = true;
}This works fine. However, I want the button "about_btn" to also control a second MC, but flip the rewind properties, like so:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = true;
}
_root.about_btn.onRollOut = function() {
rewind = false;
play();
}but no such luck with the second MC. Even if I apply the same AS code to the second MC, it still won't work. Thoughts?
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
Microphone Controlled Mc
hi,
I was wondering if it was possible to control mc with a microphone.
Want I want to do is to have a sphere in the center of the scene , and when we whistle to microphone i want the spehere to blur...
Thats it
Thx
LF...
Code For Map Controlled By MC
Last edited by coatimundi : 2003-07-07 at 12:55.
I'm trying to do what this map does so we can map canoe trails we're building here in the swamps of Louisiana.
Can anyone point me to a tutorial for the code?
coati
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
Audio Player/playing Audio Files Externally (mp3)
I've designed the audio player with all of the necessary buttons. I'm trying to play the mp3 files in an consecutive order. I am having trouble stopping or pausing, rewinding and fast-forwarding the mp3 file. I also have a next button and a back button and I don't know how to get them to work either. I have a slider, but can't get it to work either. Please help! I tried to follow the tutorial on flash kit, but wasn't quite understanding it. I would greatly appreciate this if someone could lend their knowledge and support.
Thanks in advance!
PR Gip
Audio Volume Sliders For Multiple Channels Of Audio
I don't even know if this is possible, but I was wondering if there was any way you can set up volume sliders to control multiple channels of audio. For a project I'm working on I am going to have background audio and comentary. I want the user to be able to adjust the volume of both the background audio and the comentary. Is there any was I can make seperate sliders for each of those tracks of audio?
Thanks!
Stopping Audio And Starting Another Audio When Button Clicked
Hello,
I have a multiple slide document, and I want sound to stop when they click the "Next" button, and another audio clip to start. Here is what I have so far:
//audio
x = new Sound();
x.attachSound("Slide1");
x.start(0, 0);
musicplay = true;
forward_btn.onRelease = function() {
gotoAndStop("2");
numbering eq numbering++;
};
So I just want it to play audio clip "Slide2" when they click forward_btn, and I want "Slide1" to stop.
Thanks!
CD With Projector And Audio Track For Conventional Audio CD Player
hey guys,
I'm creating a CD that contains an auto-executable flash profector but, I want the option of putting the CD into a conventional audio CD player and hearing an audio track.
Is this possible, creating an audio and data cd? If so, how?
Thank you very much!
artane
CD With Projector And Audio Track For Conventional Audio CD Player
hey guys,
I'm creating a CD that contains an auto-executable flash profector but, I want the option of putting the CD into a conventional audio CD player and hearing an audio track.
Is this possible, creating an audio and data cd? If so, how?
Thank you very much!
artane
Time Controlled Flash
I am considering designing a screen saver by making a flash file and using SWF Studio to convert to a screensaver. The file is to be a countdown to an important date. I'm new to actionscript and would like advice as to the best way to do this. How do I get the info to change at a pre determined date/time? say a daily screen that says "X days to go !" ...I understand that there is a date object but am unsure how to use this. Any help gratefully received.
Tahnks
Facing Keyboard-controlled MC
I am making a fairly complex turret in my little-known space game that doesn't have a name and can only be seen on my hard-drive.
This turret needs to face the playership, which is a movie clip controlled by the keyboard. Every 2 seconds or so, the turret will fire a bullet at the playership.
Help.
Mouse Controlled Movie
Hey guys
I was wondering if it was possible to make it so that a movie clip moves in accordance with mouse movement. For example, if the mouse moved all the way to the left, then the movie clip would move all the way to the right. And the movie clip location would be constantly updated as the mouse was moving. Thanks everyone
Don
Controlled Chain Reaction?
I am handling a dangerous piece of script here: I would like to create some sort of chain reaction where one Mc gets cloned then these two have two other duplicates and so on.
I am struggling with the fact that my code inherited from one MC to the next causes an uncontrolled cloning frenzy. How can I do this in a controlled way without the code crashing on me?
I noticed that a lot of the duplicates carry the same name. How can I prevent this?
Code:
///onload Movieclip
Movieclip.prototype.createDupe=function(Clip){
i=Math.floor(Math.random()*3);
if(_root.Dupe10==undefined){
var thisDupe = Number(Clip._name.substr(4));
newDupe= thisDupe+Direction[i];
///duplicate and name MC Dupe
duplicateMovieClip(Clip,"Dupe"+ newDupe, newDupe);
///put the new dupe in place
_root["Dupe"+ newDupe]._x = _root.Clip._x+XPosition[i];
_root["Dupe"+ newDupe]._y = _root.Clip._x+YPosition[i];
}else{
break;
}
};
Is anybody out there with a genuine idea?
Loading MC Controlled By A Button
Hi,
How can I load a movieclip using the control of a button
In other words, on release or click, mc(X) should appear on the stage...
please help
thanks
Subnavigation Controlled In HTML
Hi guys,
I'm very bad at actionscripting so I'll ask you guys:
I found a site that controlled its subnavigation via HTML with this code:
EMBED id="flashmovie" src="./swf/nav/diensten_sub.swf?mNav=2&sNav=2&basehref=http://www.usmedia.nl/"
I can see in this code they send variables to the swf diensten_sub.swf (?mNav=2&sNav=2). What does this do exactly, and how? Are they pointing the swf to a certain scene?
I'm creating a side I dont want to make in frames, but when pushing a button it loads a new HTML with the same swf, but the button has to stay highlighted. Usually it reloads the swf and it starts at the beginning...
any ideas on how to do this?
thanks
Masked Layer Can't Be Controlled?
i have a mc which i'm controlling from its parent with clip.gotoAndStop(frameVariable);. it works fine until i add a mask layer to the layer with the mc on it.
don't tell me you can't control mc's if they are masked!!
Button Controlled Animation Help
i've made a simple animation with a ball bouncing, controlled by buttons( one to start, another to stop) but i haven't figured out how to make it so the ball continuously bounces until i press stop. my teacher had showed us to put a stop action at the start of the clip, and the only way that i have found to keep the ball bouncing is to take that stop out, but that makes it so the ball is bouncing when i load the clip. could someone help me out here?
Horizontal Cursor Controlled Nav Bar HELP
i am using a turtorial for a "Horizontal Cursor Controlled Nar bar"
It uses images as buttons that scroll across the screen.. well,
id like to use it as a picture gallery nav... where the thumbnails
scroll and when you click one, it will load the full sized image in
the same window above.
I dont care if it loads the image in the flash movie, or in the
html above the scrolling movie, but i cant think of how to make it
work... i am still very new to this all!
THANKS FOR THE HELP!!!!
jason
Mouse Controlled Navigation
I should have posted this one here the first time around:
--->Click Here
I've been working at it the past couple of days but I couldn't get anywhere. Hope someone here has some idea what I'm talking about.
A Time Controlled Movie
hello, i was wondering, how do you add time to a random .swf movie? i have different .swf appearing each time you hit a refresh button and i was wondering how to add a timer so that the .swf changes every 15 seconds. right now my script looks like this...
randomClips = new Array("d+l A_news.swf", "maashaven B_news.swf", "maashaven A_news.swf", "gipsy A_news.swf", "gipsy B_news.swf", "d+l B_news.swf", "gw A_news.swf", "gw B_news.swf","soundscapes A_news.swf", "soundscapes B_news.swf");
//this is on one line//
//next lines reads this//
function randomBackground() {
randomNumber = random(randomClips.length);
loadMovie(randomClips[randomNumber], "_root.mtClip");
}
randomBackground();
what is the time script and where would it go?
Open In Controlled Window
Hey I need to make a link from a .swf that opens another .swf in a new window.
This window needs to be controlled. If I were to use HTML I would script it with this code.
(<a href="#mansei!" ONCLICK="window.open('hosting/space.htm', 'NewWindow','toolbar=no,location=no,directories=no ,status=no,menubar=no,scrollbars=yes,resizable=no, copyhistory=yes,width=441,height=357')">)
Here the window wouldn't have a toolbar, menubar, and wouldnt be resizeable.
Is it possible to do this in flash?
Thanks.
Controlled Image Transition
This one has got me frustrated, and I'm sure there is probably a simple solution which is even more annoying...
Heres where I am at: I have an interface design that will move up and down to targeted postitions with the click of a button (simple enough), along with that moves a scrolling background that changes the image (through a fading transition) also when you click one of the buttons (again simple stuff). Heres where my problem comes in. At the moment when you click the various buttons the image will change in a set order (i.e. 1-2-3-4) no matter what button you click. My goal is to get the image to change using the same transition effect only the button controls the image it changes too (i.e. push button one, change to image 1; button 3 changes to image 3, etc...).
I've tried using swapdepth functions, however this stops the tween that scrolls the background. Any suggestions and help will be greatly appreciated.
An example of what I have so far to get a better Idea of what I am babbling about can be found here: http://members.cox.net/salvationalizm/main.html
Thanks for your time
-Salvationalizm
Dynamically Controlled Movies
Ok I am trying to make a site that when your on one page and click to go to another a little animation will play and then an entrance animation will play for the next part. My problem is i can figure out how to tell flash to look at were its at in the timeline currently and then load the corresponding exit movie and after that plays the new entrance movie. If I didnt explain this very well here is an example of what i'm talking about.
http://www.whoswestudios.com/flashsite.html
Any help or links to help would be greatly appreciated.
Mouse Controlled Molecules
Hi All!
I was wondering if anyone knows a tutorial/fla I could find to show me how to make a mouse controlled molecular animation????
THANKS ALOT!
Airplane Controlled By Mouse?
Hi all,
I am working on an old school fighter game. I have drawn a basic airplane and converted it to a Movie Clip. I would like to control this movie clips x and y positions based on the movements of the mouse.
I would it so that where ever the mouse pointer goes as long as in the window the airplane will go.
So far I only have it working with the left and right arrow keys. I'd like to forget the arrow keys and go only mouse.
Thank you,
Stea|th
Yposition Of MC Controlled By Button
Man, looked all over the place for code help for this, but couldn't find it. I have a snippet of code I use to change pos, scale, opacity, etc...
This works great when I change frames, but what if I want to control properties of a MC without changing frames? Is there a simliar tween motion snip of code anyone knows that I can put ON the button to control the MC of choice?
To change properties, I have been using this code:
ON THE MC I PLACE SOMETHING LIKE:
onClipEvent (load) {
targ = 83;
}
onClipEvent (enterFrame) {
_y -= (_y-targ)/3;
}
|