Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Flex mp3 stream player

Posted on 2011-09-29
Medium Priority
Last Modified: 2012-05-12
hi all, I'm looking for a flex code for a simple mp3 stream player with buffering options + play volume options..

anyone has code to share with?

PS: I'm not looking for SWF file, I'm looking for the source code..
Question by:ram_0218
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
LVL 29

Accepted Solution

dgofman earned 2000 total points
ID: 36816311
LVL 17

Author Comment

ID: 36816854
looks like the UI is missing.. can you help
LVL 29

Expert Comment

ID: 36816951
You can create your custom UI by using Flex components
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 17

Author Comment

ID: 36817308
I tested and yes it seems to work pretty good.. but for the UI, is it possible to have basic UI like this:

i know it's pretty simple but can you give MXML or action script? I just put Play and Pause labels and played them which is working good..
LVL 29

Expert Comment

ID: 36817333
I don't know what skin would you like search on Google

"Player Flex Skin" and you can download at least 10 open sources
LVL 17

Author Comment

ID: 36818009
just the basic audio streamer, like this one (mini)?
LVL 29

Expert Comment

ID: 36818706
I cannot understand why sometime our experts so lazy...

<s:Application name="Spark_VideoPlayer_playPauseButton_enabled_test"
			   xmlns:mx="library://" creationComplete="buffering()">

			private var _interval:Number;
			private var _value:uint = 0;

			protected function buffering():void{
				var interval:Number;
				track.percentWidth = 0;
				function buffering():void{
					if(track.percentWidth == 100)
				interval = setInterval(buffering, 50);

			protected function play(evt:Event):void{
				if(playPauseButton.selected == true)
					_interval = setInterval(test, 50);

			private function test():void{
				if(_value == 100){
					_value = 0;
					playPauseButton.selected = false;
					scrubBar.value = ++_value;
	<s:Group left="0" right="0" height="25">
		<!-- background -->
		<s:Rect left="0" right="0" top="0" bottom="0">
				<s:LinearGradient rotation="90">
					<s:GradientEntry color="0xFFFFFF"/>
					<s:GradientEntry color="0xDCDCDC"/>
		<s:ToggleButton id="playPauseButton" left="0" bottom="0" selected="false"
						focusIn="" focusOut="" 
		<!-- The skin pat that defines the video timeline -->
		<s:Button id="track" left="40" top="6" right="10" width="0" height="11"
				  skinClass="spark.skins.spark.mediaClasses.normal.ScrubBarTrackSkin" />
		<s:ScrubBar id="scrubBar" left="40" top="6" right="10" width="100%" 
					liveDragging="true" value="0" maximum="100"
					skinClass="spark.skins.spark.mediaClasses.fullScreen.ScrubBarSkin" />


Open in new window

LVL 17

Author Comment

ID: 36907377
thanks and yes you're right, too lazy :-)

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question