![]() |
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member | As you have probably noticed i haven't been on CN as much as usual but i am still here! so back on topic I've been making my website by usung tutorials ect and now i have a problem. i need a volume leveler and mute/unmute button i dont know how to code it or anything but if you need anything i can give it to you. tutorial i used Flash Action Script 3 MP3 Player Part 1 now i just need a volume leveler and mute/unmute button so anyone who can help it'd be appreciated!
__________________ ~ƒruity ♪ ♫ ♪looper ♥'s CN~ If you ♥ my post or me Rep+ shows it ~If life gives you lemons, Think before you throw em! http://www.nishyp.com/ Go there now! (my music and stuff) |
| | |
| Sponsored Links | |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2009
Posts: 278
Reputation: 21 ![]() cBay Rating: | You might want to use a premade mp3 player solution. Check FREE Flash MP3 Player | Play music online! On that note, google (as a search engine) has been going downhill lately. Anyway, I've used something like that before. It basically involves editing a text (config) file to properly display song titles and link to the song so it can stream.
__________________ ![]() mjhasbach's Club Bing Botting Service mjhasbach's Xbox 360 and PSP Modding Service Please +rep me if my post or service was helpful |
| | |
| | #3 (permalink) |
| Senior Member | Use the tweenlite class for some nice music effects (TweenLite – A Lightweight, FAST Tweening Engine GreenSock) It's basic. All you need to do is declare the sound file, the start volume, the end volume and the amount of time which the function progresses. Also, apply this to your current code. (Source: http://snipplr.com/view.php?codeview&id=12615) Code: var maxMove:Number =50;
var bounds:Rectangle = new Rectangle(this.volumeSlider.x, this.volumeSlider.y, -maxMove, 0);
var scrolling:Boolean = false;
function startScroll (e:Event):void {
scrolling = true;
this.volumeSlider.startDrag (false,bounds);
}
function stopScroll (e:Event):void {
scrolling = false;
this.volumeSlider.stopDrag ();
}
function enterHandler (e:Event):void {
if (scrolling == true) {
MovieClip(this.root).setVolume(1-((bounds.x-this.volumeSlider.x)/maxMove));
}
}
function setVolume(vol:Number){
var mod:SoundTransform = new SoundTransform();
mod.volume = vol;
mp3Channel.soundTransform = mod; //apply to yout mp3Channel
}
addEventListener (Event.ENTER_FRAME, enterHandler);
this.volumeSlider.addEventListener (MouseEvent.MOUSE_DOWN, startScroll);
stage.addEventListener (MouseEvent.MOUSE_UP, stopScroll);
|
| | |
| | #4 (permalink) |
| Senior Member | i get errors when i copy paste the code (i'm a noob and have low knowledge of AS3 but try) i also need the remaning and total time of tracks. bourk if you can help code this it'd be appreciated and i'll try make it up to you ![]()
__________________ ~ƒruity ♪ ♫ ♪looper ♥'s CN~ If you ♥ my post or me Rep+ shows it ~If life gives you lemons, Think before you throw em! http://www.nishyp.com/ Go there now! (my music and stuff) |
| | |
| | #5 (permalink) |
| Senior Member | Bring up my post that needs attention!
__________________ ~ƒruity ♪ ♫ ♪looper ♥'s CN~ If you ♥ my post or me Rep+ shows it ~If life gives you lemons, Think before you throw em! http://www.nishyp.com/ Go there now! (my music and stuff) |
| | |
| | #6 (permalink) |
| Senior Member Join Date: Oct 2009
Posts: 794
Reputation: 50 ![]() cBay Rating: | I made an mp3 player in Flash about 2 or 3 years ago. I'm not sure how much Actionscript has changed, as I haven't used Flash in a long while, but I could send you the code for mine. I had a volume control and basically all the functions of any other mp3 player.
__________________ Make Money with cashd00d! - http://cashd00d.co.cc |
| | |
| | #7 (permalink) |
| Senior Member | Can anyone help me please? cashd00d PM'd Bourkster PM'd
__________________ ~ƒruity ♪ ♫ ♪looper ♥'s CN~ If you ♥ my post or me Rep+ shows it ~If life gives you lemons, Think before you throw em! http://www.nishyp.com/ Go there now! (my music and stuff) |
| | |
![]() |
| Tags |
| as3, flash |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| usb flash drive | bgalex | Club Bing! | 4 | 09-30-2009 06:43 PM |
| Flash Manipulator v1 | Bomb | Public Bot / Exploit Releases | 12 | 08-15-2009 11:42 AM |
| WTB Flash drives! | warbucks | Buy | 0 | 02-22-2009 04:55 PM |
| FS 8GB Compact Flash | PiP69 | Sell/Trade Forum | 6 | 01-01-2009 03:34 PM |