Cheating Network
 
 

Go Back   Cheating Network > Offtopic Lounge > Computers
Reload this Page Flash AS3 Help!



Computers

This is a discussion about Flash AS3 Help! within the Computers section, where you will



Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2009, 04:23 AM   #1 (permalink)
Senior Member
 
fruity_looper's Avatar
 
Join Date: Oct 2008
Posts: 2,549
Reputation: 265
fruity_looper is a jewel in the roughfruity_looper is a jewel in the roughfruity_looper is a jewel in the rough

cBay Rating:

Wordsmith Sentinel 

Send a message via AIM to fruity_looper Send a message via Yahoo to fruity_looper
Default Flash AS3 Help!

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)
fruity_looper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 10-22-2009, 04:40 AM   #2 (permalink)
Senior Member
 
mjhasbach's Avatar
 
Join Date: Jul 2009
Posts: 278
Reputation: 21
mjhasbach is on a distinguished road

cBay Rating:
Default

You might want to use a premade mp3 player solution.

Check these this links out:
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 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2009, 05:23 AM   #3 (permalink)
Senior Member
 
Bourkster's Avatar
 
Join Date: Apr 2008
Posts: 1,774
Reputation: 148
Bourkster will become famous soon enoughBourkster will become famous soon enough

cBay Rating:

Scribe 

Default

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);
Bourkster is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-23-2009, 05:24 AM   #4 (permalink)
Senior Member
 
fruity_looper's Avatar
 
Join Date: Oct 2008
Posts: 2,549
Reputation: 265
fruity_looper is a jewel in the roughfruity_looper is a jewel in the roughfruity_looper is a jewel in the rough

cBay Rating:

Wordsmith Sentinel 

Send a message via AIM to fruity_looper Send a message via Yahoo to fruity_looper
Default

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)
fruity_looper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-29-2009, 12:54 AM   #5 (permalink)
Senior Member
 
fruity_looper's Avatar
 
Join Date: Oct 2008
Posts: 2,549
Reputation: 265
fruity_looper is a jewel in the roughfruity_looper is a jewel in the roughfruity_looper is a jewel in the rough

cBay Rating:

Wordsmith Sentinel 

Send a message via AIM to fruity_looper Send a message via Yahoo to fruity_looper
Default

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)
fruity_looper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-29-2009, 01:43 AM   #6 (permalink)
Senior Member
 
cashd00d's Avatar
 
Join Date: Oct 2009
Posts: 794
Reputation: 50
cashd00d will become famous soon enough

cBay Rating:
Default

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.
cashd00d is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-30-2009, 08:37 PM   #7 (permalink)
Senior Member
 
fruity_looper's Avatar
 
Join Date: Oct 2008
Posts: 2,549
Reputation: 265
fruity_looper is a jewel in the roughfruity_looper is a jewel in the roughfruity_looper is a jewel in the rough

cBay Rating:

Wordsmith Sentinel 

Send a message via AIM to fruity_looper Send a message via Yahoo to fruity_looper
Default

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)
fruity_looper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
as3, flash


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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




Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.