MacJams.com - Forums: overall volume question:: 10 posts - Last post: Dec 25, 2008Then when I convert, the mp3 comes out loud. Hope this helps. Use the master volume fader to bring the level up to just below the red http://www.macjams.com/forum/viewtopic.php?forum=18;showtopic=151246HOME | hello, im working on a mp3 player based off of Kirupas mp3 tutorial thing...
Now wut im trying to do is wen i start my page, i want the music to be playing automatically ..and i want the Volume scroll bar to be in the middle of the Volume slider (if possible)....
Here is the code which is in the PLAY button
on (release) {
if (_root.mySlider.complete == 1) {
_root.mySlider.mySound.start(0,99);
}
}
-------------------
and here is the STOP button
on (release) {
_root.mySlider.mySound.stop();
}
--------------
and here is my Myslider vid clip (instance of my slider )
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("http://www.angelfire.com/planet/xtudioexam/thisIsWar.mp3", false);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) { If mp3s be the food of love PLEASE play on | LongTail Video :: 5 postsI want to have mp3 audio playing in the background of an html page. I also have a JS volume control in the body of the html page: http://www.longtailvideo.com/support/forum/Setup-Problems/13791/If-mp3s-be-the-food-of-love-PLEASE-play-on-HOME | Volume Normalisation please? – Last.fm for iPhone and iPod Touch :: Volume Normalisation please? Last.FM Radio has a nasty habit of being too quiet . For example: I use mp3gain for adjusting the volume of all of my mp3's. http://www.lastfm.es/group/Last.fm+for+iPhone+and+iPod+Touch/forum/103852/_/474106HOME |
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = "";
}
mySound.setVolume(_root.volume); MP3/WAV volume - Tech Support Guy Forums:: 7 posts - Last post: Dec 16, 2006are there any programs that can increase the volume of mp3 or wav files? sometimes on my mp3 they aren't loud enough but if i can increase http://forums.techguy.org/all-other-software/527192-mp3-wav-volume.htmlHOME |
}
------------------------
and here is my Slider code
this.ratio = 0;
dragger.onPress = function() {
this.startDrag(true,0,0,line._width,0);
this.onEnterFrame = function() {
ratio = Math.round(this._x*100/line._width);
_root.volume = ratio;
};
};
dragger.onRelease = dragger.onreleaseOutside=stopDrag;
.....
file is too large to include the FLA....sorry....but its basically the same code as
http://www.kirupa.com/developer/mx/volume_slider.htm
...please help if can! :(
i basically just want the music to start wen the page is loaded and for the volume to be halfway (50%)
Thank you,
Amy
Hi Amy,
I had a little poke around for you...
You'll need to place the dagger at x = 75.00 (half way along the slider).
currently there is no volume added when you press play!
so add the default volume to the play button like so
on (release) {
if (_root.mySlider.complete == 1) {
_root.mySlider.mySound.start(0, 99);
_root.volume = 50;
}
}Also... cause I was having a mess around you can add _root.volume to the buffering text
to add a text display of the volume :) like so...
in the mySlider action
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = _root.volume;
}I think thats it
now, I'm not that strong with flash... (you could (should?) have figured all the above out yourself).. but.. you might want to try putting all the actionscript into it's own layer... this will mean changing the "this" terms to reflect their owners but will help you understand the code better... and is a neater way of doing this. Also add comments as you go so that when you come back later you'll know what your looking at... (obviously copy the fla first ;))
Good luck
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market
|