Creating A Music Controller
I have just two looping music tracks that i want to be able have a simple controller that will let me skip from one track to the next and adjust the volume or mute entirely. Anyone know of a good tutorial on how to do that easily? Thanks!
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-18-2005, 12:49 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Music Controller
I plan to put music on my website and what I want to put is include a little audio player that will allow you to play, stop, pause, and select different kinds of music. How would I do this? An example would be at http://www.2advanced.com/flashindex.htm
Thanks in regards
Music Controller Help
Hi,
I'm trying make a little music controller that plays mp3's. This will be a seperate .swf file that loads onto the main.swf file. My first method was putting this script in the first frame:
bgMusic1 = new Sound();
bgMusic1.loadSound("song1.mp3",false);
bgMusic2 = new Sound();
bgMusic2.loadSound("song2.mp3",false);
bgMusic3 = new Sound();
bgMusic3.loadSound("song3.mp3",false);
and so on with more "bgMusic"...
But it would just take forever to load. What is BEST way to load a bunch of music tracks. Do I load seperate tracks in their own individual frame?
Music Slide Controller
I've read the tutorial about the volume and pan slide controller, and it helps me a lot...
But, now thee problem is : the slider controls all of my movie's sound, not only the music loop, but every sound that contained in my movie, so the button sound is also muted if I mute the slider.
Does anyone know how to control only the music loop ??? Or maybe show me the tutorial, coz, I didn't see any tutor have this kind of problem solving...
Thanks in advance.
dp.
--------------
www.guarddp.tk
Recognize This Flash Music Controller
I have a client that wants this flash music controller on her site and I am not really a flash person and was wondering if anyone recognized it and could comment ton how to go about obtaining one very much like it. Perhaps the same functions but customizable. Look in the bottom right corner and rollover the speaker icon.
www.joahlove.com
Many thanks,
Houston
Creating Controller Clip
Ok heres the scenario:
I create a multi-dimensional associative array to hold my MC names, startx, endx and other stuff later. Now what I am trying to do is dynamically create my controller clip within a for(i in array){ } loop.
What I am trying to get it to do is loop through each entry in the array, creating a controller clip for each one and thus playing the first entry of the array, second etc... heres some sample code:
Code:
var mc = new Array();
mc["web"] = new Array("startx","endx");
mc["web"]["startx"] = 800;
mc["web"]["endx"] = 400;
mc["telephony"] = new Array("startx","endx");
mc["telephony"]["startx"] = 400;
mc["telephony"]["endx"] = 200;
depth=1;
for (i in mc) {
current = i;
trace("OUTSIDE CONTROLLER :" + current);
this.createEmptyMovieClip(myControlClip,++depth);
myControlClip.onEnterFrame = function() {
trace(_root.current);
trace("INSIDE CONTROLLER :" + current);
// I also tried the trace below
// trace("INSIDE CONTROLLER :" + _root.current);
}
}
Now it prints the OUTSIDE controller part with the correct value, but it wont trace the statement that is INSIDE the controller. What am i doing wrong?
Creating A Music Player?
Hi everyone, I am creating a web site for a band, and I am interested in posting up their music so people can listen to it at the site, not just download it. There is a good example of this at http://www.seanjean.com What I want to do is create a little interface that has a little play button, a button to skip tracks, and one to stop. I'm sure there is a tutorial about this somewhere, so if anyone could please point me in a direction to find one thatd be great.
But since I am not asking for help on creating that part of this little task here I would like any help on how to keep file size down while doing this. Say I load 4 songs into this interface that will be its own .swf file. Each mp3 will be about 3.0 MB (a 4 minute song, right?). The file size will just be through the roof in no time. How can I handle this? How do people at sites like seanjohn.com deal with this? Thank you for all of your help in advance.
[F8] Help Creating A Music Player
I have no coding experience at all really. I have created a nice little music player with start pause and NextTrack buttons.
I want to be able to cycle through say 3 or 4 tracks without importing the mp3's (stream them I think its called?) and have the names of the tracks show as well. I assume I would use Dynamic text in some way but I'm not sure. How would I go about doing all of this?
Thanks,
Jake
Creating A Music Player
Hi people.
I have a website and I want to add some music to it. It want to make a player where you can choose from different songs. I also want: play, stop, on/off buttons and a timebar. So you can skip a piece of a song. Can someone help me?
Creating A Music Display?
Hello everybody,
on many sites (also on this one http://www.fresh-in-attack.de/start_en.html) I've seen a LED display (don't even know if this is how it's called) while playing music, which also stops when stop is pressed. Is this just a well done animation or could one also influence the moving of the rectangles to the beat with AS? Does anybody know?
Creating A Music Player
Hi people.
I have a website and I want to add some music to it. It want to make a player where you can choose from different songs. I also want: play, stop, on/off buttons and a timebar. So you can skip a piece of a song. Can someone help me?
Creating A Music Display?
Hello everybody,
on many sites (also on this one http://www.fresh-in-attack.de/start_en.html) I've seen a LED display (don't even know if this is how it's called) while playing music, which also stops when stop is pressed. Is this just a well done animation or could one also influence the moving of the rectangles to the beat with AS? Does anybody know?
Creating Dynamically Filled Music Box
I have created a music movie (version MX 2004) that can stream 6 different songs by one artist. My problem is I have roughly 15 more artists. Rather than create 16 different movies I would like to use just one movie and dynamically populate the buttons with various artist’s CDs. My problem is I know how to dynamically populate a movie with a text file and I know how to stream the mp3 files through a movie clip. But I don’t know how to dynamically stream various artists through on move clip. Below are the different scripts I have used. I just need to figure out how I can combine them, if possible.
Script used to send dynamic text to movie called house.swf
Code:
on (release) {
gotoAndStop(6);
_root.createEmptyMovieClip("house", 2);
house._x = 0;
house._y = 0;
house.loadMovie("house.swf");
_root.theFileToLoad="text/h1Intro.txt";
}
Script used to populate dynamic field in house.swf:
Code:
this.loadVariables(_root.theFileToLoad);
this.onData = function ()
{
ContentText.htmlText = this.scrollText1;
};
Current button script used to stream music. MyText is a variable that displays various messages.
Code:
on(press) {
if (playing==true) {myText="Track One is Playing."}
if (playing!=true) {
playing=true;
soundIsLoaded=1
mySoundObject=new Sound();
mySoundObject.setVolume(100);
//I would like to dynamically replace the mp3 file with the clip of choice
mySoundObject.loadSound("dynamic.mp3",true)
//and dynamically replace the var myText with the name of the song that is playing
myText="Dynamic text of song that is currently playing"
}
_root.mySoundObject.onSoundComplete=function() {
playing=false;
completed=1;
myText="Select Another Tune."
}
}
If anyone can point me in the right diretion or show me how to combine my scripts, you would help me save what little hair I have left.
Thank you in advnace.
Rick
Creating A Music Player In Flash?
Hi
im trying to create a music player in flash but have no clue in how to do it!
i have a basic player structure and all i need to do is add sounds and make it controlable.
I need help on making the play button play a track a stop button which stops the track. And to be able to jump between tracks (next track prev track buttons) I would also like the tracks selectable form a list. All tracks must be imbeded so no help with xml players i want the music to be secure inside the player.
i would also like the player to display the song its playing if pos!
hope you can help
Simon
Creating An Array Of Music Files Help Please.
I am new to actionscript 3.0 and not to sure about the way i would go around this, any information you can give will be greatly appreciated.
I am trying to create an array of short music files. i would then like to create a random number and then play the sound which is in the position of the random number.
At the moment i am trying to just get the sound files to play before i try using the random number. The code is shown below, i know it is not right and that there must be more to add but i am unsure as to what that is so any help is greatly appreciated. the code i have is as follows:
ActionScript Code:
var array:Array = new Array("notes/A1.wav","notes/A#1.wav");
array[0].play();
thankyou for any help you can provide
Darren Rutter.
Creating A "music Loader"?
Hi,
Finally got my site up!! :]
http://www.djsoul.co.uk/
Any feedback welcomed, i want my music to load before my site and to have a % indicator of its progress...can any one suggest the best way to achieve this?
Please bear in mind im a newb
Thx,
Andy.
How To Change Buttons On Music Player Depending On Whether Music Is Playing Or Stoppe
When my music is playing, I want my play button to be blackened in. When the music is stopped, I want my stop button to be blackened but my play button to go back to it's original state.
Right now, when my cursor is over the button, it will change the rollover state. That's easy to do.
How can this be accomplished...do i need multiple layers?
Can I Loop A Specific Section Of Music In Flash After The Music Intro Plays?
Hi! My question involves looping audio in flash. I already know how to make a section of audio in an audio-editing program that loops and make it loop continuosly in Flash. What I would like to do now is take an audio clip that has an intro section and a "body" section and after the intro has played, loop back to the beginning of the "body" section continously. I assume it would involve sending it back to a specific millisecond?
Anyway, can anyone help me out with this one? Or is it even possible?
Thanks,
aswhitehead
How To Make MC Clip Play When Music Starts, Stop MC When Music Stops
Hey,
I've got a audio player on my flash website and I want to have a audio spectrum analyser (those little squares that move up and down randomly) start playing when the user starts playing music and then stop when they stop the music.
Is there a simple way to do this?
Cheers
Max
MC Controller
I have a movie clip being manipulated by some menu buttons. I need the movie to move to different frames when you click on each button. The problem is that the movie has to play in reverse if you are at a frame beyond the target frame. So, I click on section 5, it plays the movie through and stops at the frame for section 5. If I click on section 10, it plays the frames forward between 5 and 10. If I click on 5 again, it plays them backwards back to 5.
How do I script this?
Pop-up Controller
hi everyone
i currently have an html page that opens a pop-up with my .swf embedded in it. this is opened using a javascript function.
aswell as determining the size of the pop-up window etc, the javascript also sets the target for the parent window as 'myWindow' which is used to target back from the .swf so i can load links in the parent window via pressing buttons in the .swf
this is the code i'm using:
code:
on (press) {getURL("http://www.mysite.com", "myWindow");
}
this works fine enough, the links load and everything, but "myWindow" does not come to the front. if i use an href in html, it works exactly how i want it to, but i need it to do the same in flash.
does anyone know if i'm missing something?
thanks in advance.
SWF Controller
I have a flash animation that I want to upload to my html site, and I want to give this animation a controller so users can play and pause, and see the status of the loading movie. I don't care if the controller is just a stock template. This seems like it should be an easy thing to place on the SWF file, but I can't figure out how to do it. Is there a simple way to add a controller to an entire animation? Thanks.
Controller For SWF
Hey all,
I have an animation that contains multiple scenes. I need a controller than will let me control playback, slide back and forth between scences control sound volume.. etc. I would ideally like to use the media controller component that comes with flash. But unfortunately, it works only with FLVs or MP3s.
Can some one point me to a SWF controller?
appreciate your help.
Thanks!
V
SWF Controller
Hi there,
I have to build a swf controller like this one: http://labs.adobe.com/technologies/air/.
The controller needs to control a main swf file which will have nested mc's and sound.
I am not sure where to start.
Has anyone ever done this before, have any suggestions or examples?
Thank-you
Controller Button
i have a main player which load several movies chosen from a menu. When a movie is loaded and i press player a controller button move forward with the movie current frame. It moves backward if the movie is rewinded.
The problem is that i want to drag this controller button and let the movie play depending on the drag direction: if it is right the movie will play as fast as the controller button is dragged, if it is left it will be rewinded.
thank you
Plz HELP In Sound Controller?
Plz help in a sound streaming
I create a Sound controller to control sound but there is a problem that sound which is i am calling this sound file as load movie with sound streaming but the sound on net are not coming in streaming it is coming as a event WHY? i don't know.
In a movie clip of sound controller in first frame:
sounda = new Sound();
sounda.attachSound(_root.sound1);
second frame
pan = 2*drag._x;
vol = 50+drag._y;
sounda.setPan(pan);
sounda.setVolume(vol);
and in a third frame
gotoAndPlay ("soundloop");
THANKS
Mouse Controller
Dear All,
I'm trying to control the sliding effects of an object over a 373 width movie using the mouse!
Currently when the object ends sliding, it will start over again. I want to modify the script to let my object bounce back in the different direction
Does any one know how to do it?
Best Regards,
Georges
//Controller
onClipEvent(enterFrame){
_root.xdist = (_root._xmouse-_root.xcenter)/21;
}
//Object that will be slided
onClipEvent (enterFrame) {
_root.movePiece(this)
}
//Action Code
movieWidth = 373
xcenter = movieWidth/2
function movePiece (target) {
with (target) {
_x += xdist;
if (_x>movieWidth+_width/2) {
_x = -_width/2;
}
if (_x<(0-_width/2)) {
_x = movieWidth+_width/2;
}
}
}
Button Controller
Okay, I need to know this...
Say that we have 1 movie clip in a scene. And in that movie clip, we have 1 button. So, what I wanna know is, how can the button control a simple "gotoAndPlay()" action to perform a gotoAndPlay() action in the main scene...
Please, someone tell me this...
Controller Question....
Obvious newbie question...
I have been reading through the Pet Market flash application source code trying to get a handle on some Flash best practices. I notice they set/reference the "controller" property quite often.
this.chkBox.controller = this; (for example)
I cannot seem to find much documentation on this property and how it is used (including in the Macromedia online help). Does it reference which object will be handling events for a given object? How does it differ from the _parent and/or _root keywords?
Any help would be appreciated. Thanks in advance.
Movie Controller
Does anyone know how to make a scrubber for a movieclip?
I want it to fix itself accordingly to how long the movieclip is.
I am loading a large swf videoclip into a holder mc an i want to controll that mc with a drag bar, so what is the formula to make this happen?
Audio Controller Help
I need to add an audio streamer to stream mp3's out of a directory or somehow at least like they are doing on http://66.70.139.178/main.htm..... Does anyone know how I can do this in a time effecient manor?
Please help.. my site is http://warped.xflavor.com and as you can see on the top right of the page.. there is a box that I am going to import into flash and put the mp3 controller over that, with the song and time left scrolling at the top, the bottom would be a sound wave animation Notice if you click on "sound" or w/e on http://66.70.139.178/main.htm... it expands and lets you skip songs and stuff + the songs load pretty fast!
Thanks
Justin
Sound Controller
I have click sound like in a fortune wheel and when the fortune wheel moves faster the sound plays faster...is it possible to do that or you guys have an example...
i really need it thanks in advance
A Controller For A Webpage
Hi guys , TY for past help on my e-photo album. I am in middle of new project here and well im not sure if this is rite place i can post this question but i have used several Flash MX forum and not been able to get any help , My project that i am working on, well i created an what we will call my TV Remote, It is a 4 button with window on top of those buttons to display button name ( if u would like to see it i posted it here http://www.stitches2remember.com/cbul7210.htm , It is at bottom of page) well i need this object to stay together and be able to be moved around page using the OnDrag command, I have tried creating it as a symbol but i loose adjustability and cannot set the buttons to display proper portion of the page , i found same thing if i was to create it and use it as part of a Loadmovie command , i also have tried to just copy and paste the frames and group them but some reason it looses the buttons ability to dispay in its window, any clue on how i can go about creating this object to do what i am looking for ? also any comments on my artwork on site i mentoned above is also appricated Cbul7210
Controller With Weight..
Hi everyone,
I'm making a flash site with a controller that you move with the cursor to navigate the site. I want it so that the controller appears to have weight so that when you let go of the controller with the cursor the controller moves/slides for a bit until it comes to a stop. The controller is moveable through x and y axis.
Any pointers, tips, advice would be great!
Steven.
Media Controller
I was trying to use the Media Controller that comes with Flash MX 2k4 Pro and I got a song to play but the media controller was flashing between its horizontal and vertical forms ever 10th of a second and hte audio file showed up as a gray box with one corner cut diagonally, This may be a bug, or I may be useinfg the wrong file type. If you can't figure out a way to get around this could you post a link to an audio controller that could auto-play about 4 songs in .mp3 format
EQ Controller Sound
I download the controller at this ad:
http://www.flashkit.com/movies/Sound...dex.php?chk=no
make my trick by changing the design...
My problem is when I made new loops they're loading but I can't see the EQ moving!!
Any help will be really apreciated
thx
Audio Controller
Ok if this has been posted, please just leave the link. I'm trying to create an Audio Controler just liek the on eo f this page: http://www.robinwilliams.com/
They created it using Flash 7 so I know it's possable. Is there a tutirial or can someone let me in on the script to make it?
Thanks!!!
Media Controller
I have no idea hot to build one,I have my website designed and running with a flash movie I made but I can't seem to figure out how to do a Media controller for the background music on the website.Can someone give me detailed instructions or build one for me.I can give you what ever info you need to do such.Please email me at mark_ellis72628@yahoo.com I would greatly appreciate the help and will give all credit where credit is due.
Movieclip Controller
Hi,
hope I can explain this one well.
I am looking for an action on a button that tells a movieclip to play, and when the movieclip ends, tells another movie clip to play.
Something like this:
on(release)
_level0.MC1.play();
if(_level0.MC1==_totalFrames){
_level0.MC2.play();
}
}
Obviously this won't work for a number of reasons, but hopefully gives some insight into what I want to achieve. I will be having different buttons with different actions. Basically I want to use the same movieclip ("MC1"), and follow it with other clips, eg MC2, MC3, MC4, etc, each time a different button is used.
It all has to work in flash 5 as well.
Hopefully someone out there has a solution.
Damosky
Media Controller
ok, I'm trying to figure out how to work the component Media Controller that comes with flash MX 2004 Pro. I'm trying to get it so that it will play a .mp3 file that is in the library.
Volume Controller
My question is very simple. This site http://www.visionautodynamics.com/interface.htm has a volume controller on it, i would like to know who to make it. It is in the right top corner of the webpage.
Media Controller
Is it possible to link a SWF File instead of a FLV file with the media controller.
Volume Controller Help
hi, i'm using the volume controller that comes with mx.
how do i get it to work from left to right, rather than up and down?
i can rotate the movie clip but what do i need to do to the acitonscript to get it to work.
ta.
Video Controller
Hello everyone,
I had enough trying to modify the controller that comes along with the Flash program additional files, and decided to create one of my own (file attached).
well, scripting (as some of you already know) is not my cup of tea.
So after coping the script from the Flash component and understanding (most- of) it, i made the relevant changes (mainly deleting the actions for buttons I'm not using anyway...).
for some reason, the knob is starting off position- in the middle of the bar and not on the left of it...
Can someone P-L-E-A-S-E tell me what's wrong in my file...
Thanks allot
Micfaber
PC Game Controller
Is there anyway to have a PC game controller, control a Flash interface?
MP3 Controller In Flash MX
Hi;
I have a website and I want to put some of my favorite songs in mp3 so my friends can listen the songs by presing and play and stop some controller. Is there any good controller I can use in my website and accomplish this. Also, I can use Flash to develop if that's the case
Thanks
Javier
Movie Controller
Hello,
I want to play a movie on my web page. for this i have imported the movie in flash MX now i will convert it into .swf and place it on my web page. Now i want to make buttons as (Play, Reverse, Forward, Stop, Replay). I have succeeded to make Play, Stop and Replay button but how to make the reverse and forward function. Please tell me some way that when the reverse or forward button is pressed the movie should go 5 frames reverse or forward.
Thanks,
Shakeel Ahmad.
Sound Controller
Hi,
i have done an animation, in first scene there is some basic animation and then the animation stop and play button is blinking when user click on play button the animation goes to next scene where i placed one audio file abt 1 min. i want to add sound cotroller bar to control the audio file, for suppose when i drag the playhead 10 sec ahead sound should also fwd 10 sec ahead.
can anyone pls tell me the code or any link ?
thanx for your time and help.
Regards
Imran
[MX] PhotoShow Controller
Greetings,
Will someone please advise me as to how I can modify the sample PhotoShow Controller that comes with Flash MX to do the following. I would like for the slideshow to start automatically instead of having to press the the autoplay button.
Thanks,
Bernie
[F8] Volume Controller
Hi!
I need to make a volume controller. I'm lost...how do I go about it..help pls..
A slider with below mention values.
0---5---10---15---20---25-30-35-40-45-50-------100
when one drags a slider from 0---to any given numbers it should snap at the
numbers instead of toggling in between numbers.
Pls find fla of the basic slide.
Thanx
Sabs
|