Professional :: Building A Music Player / Efficiency?

Mar 8, 2012

I'm creating a music player to be on my website and so far I have it set up as such: The player is contained in a movieclip with a 'song progress bar', a pause and a play button.The songs are played by clicking the song title in a list in the main stage (not contained in the player movie clip), which sends the music player to the frame in which the song starts.
 
My audio is set as event audio so that the play and pause buttons can be coded as play(); and stop(): respectively which will stop the main player movie clip thus yeilding the progress bar from moving further and the song from playing.
 
This works just fine, except for the following:
 
- When I select event as my audio type the quality reduces dramatically Having the audio files in my library and not obtained from some outside source (i.e on my website's server) causes the .fla file to be much larger as well as the .swf Being as my project is at 24 FPS and each song is represented in as many frames as it takesto play the song out, my music player at present has only 3 songs 'in it', and my frames in the movie clip are approaching 20,000 (this is VERY tedious to work with) 
 
I'm sure there is a more efficient way of doing things, but my knowledge is limited. I'd imagine I can do something along the lines of loading .mp3's off of my website into the frame and the play pause buttons will enact more elaborate scripts that not only stop the progress bar but also stop the music from playing temporarily, or something like this. But I have no idea how to implement it

View 2 Replies


Similar Posts:


Java :: Building Music Visualizer Using Fractal Patterns

Jan 30, 2011

I am interested in building a music visualiser using fractal patterns for my final year project. I have googled quite a lot on it and I know a bit about fractals, however I was wondering what software would be used to 'animate' the graphics. I know Java has a drawing API (AWT and Swing) - but probably no the best for the animation factor - on the other hand there is also Flash that has new capabilities within as3 to produce such an effect but if this app was to traverse into mobile development, Flash wouldn't be a great choice.

View 1 Replies

ActionScript 3.0 :: Building An MP3 Player?

Sep 25, 2009

I have the below actionscript almost working for playing mp3s. This isn't dynamic or anything. Just links to songs (from buttons) that should null each other out when clicked on. The first song loads fine. However, the second song will not load. I must be missing something. Or maybe I took the wrong approach? Any help would be great.

[Code]...

View 2 Replies

ActionScript 1/2 :: Building A Custom Flv Player?

Aug 24, 2009

I'm currently building a custom flv player and need some help.  Maybe I'm missing something, I'm not sure.  The main problem is that the FLV doesn't load/play, which most likely causes the secondary problems, such as the bufferClip always visible and no way to test the video and audio scrubbers.

[Code]...

View 9 Replies

ActionScript 3.0 :: Building A SWF Player That Loads Other SWF Files Into It?

Jan 18, 2010

I am building an AS3 SWF player that loads other SWF files into it, both AS2 and AS3 files will be loaded (one at a time). In the case that it is an AS3 file then the main player SWF can directly call functions and variables inside the loaded AS3 file. Now to handle AS2 files I am using 2 Local Connection channels, one for the player to send info to the loaded SWF and one for the loaded SWF to send info to the player SWF.

Now i never have more than 1 SWF loaded into the player at a time and before i load the next SWF into the player i use..

[Code]...

View 1 Replies

ActionScript 3.0 :: Building A SWF Player Which Loads External SWF's?

Oct 3, 2010

I am building a SWF player which loads external SWF's.

Rite Now. I could call the external SWF using URLRequest.

but I am getting 2 problems

1. How to run the SWF with the frame rate of the actual SWF movie. If, I increase the frame rate manually, some movies become a lot faster and some are pretty slow.

2. I have set a layer of 450px by 333px. How do I scale the external SWF with showall property to fit in the layer.

View 5 Replies

ActionScript 3.0 :: Compile SWF - Building Different Flash Player Versions

Jan 15, 2012

Can we compile a SWF for (let's say) Flash Player 11, but still let people with older Flash Player versions run the SWF? E.g. if they have the latest version of Flash Player we will take advantage of the features in that player (eg H264 encoding of video) but if they have an older player we will just use older features (in this case VP6 encoding).

I've tried compiling for the latest version, FP11.0, but when you run this in older Flash Players it complains that libraries aren't available, even though that part of the code is not executed as its placed within a conditional statement which checks the version of the Flash Player. Surely we don't need to compile a SWF for each different Flash Player and have a condition in the HTML page which decides which movie to load?

View 6 Replies

ActionScript 3.0 :: Building An AS3 Media Player And Get TypeError: Error #1009

Sep 13, 2007

I'm building an AS3 media player and I am having trouble loading an external movie. I keep getting the error: TypeError: Error #1009: Cannot access a property or method of a null object reference at CookBookPlayer$iinit()Here is my script for the main Loader class:

Code:
package {
import flash.display.*;
import flash.net.URLRequest;

[code]....

View 9 Replies

Actionscript 3 :: Building Flash Video Player With Amazon Cloudfront To Stream MP4?

Aug 2, 2010

So I have a working Flash player using Cloudfront, AS3, NetConnection & NetStream. Works with a FLV, but I need it to work with MP4s. It connects to the stream, and outputs the following:

NetConnection.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
NetStream.Buffer.Full

My presumption is that it is working when looking at these messages, however it doesn't show the video or play any audio.

View 1 Replies

Non-XML Music Player For Web Site?

Apr 22, 2011

I'm a relatively experienced Web developer, but this is my first foray into playing (streaming) music. All of the music players I've run across either load MP3s from an XML file (which exposes the MP3s' URLs) or have code embedded in them that loads URL-accessible audio files. Due to copyright issues, this is not acceptable for my client's content.So, I'm looking for one of two things...(1) A music player that already exists that either plays music embedded into the FLA itself -or- can read the files from a non-public area on the file system, or(2) Sample code that generally approximates what I'm describing, from which I'll try to construct my own player.

View 3 Replies

IDE :: Add Music Player On Website?

Sep 16, 2009

I'm doing a site in JOOMLA and i want to add music to the site. For example if the user stop the music i want the music player to be able to stop the music and not reload the song if the user go to the next page. If the user dont stop the player, i want the song to keep playing if user go to the next page.in which way i can do this? i heard about adding some kind of cookie script to the flash player.

View 1 Replies

Using The 'for' Loop For Efficiency?

Jun 17, 2009

I've got a long list of code which I think can be made far more shorter by using a 'for' loop, however, I'm not entirely sure how to go about this? Here's the code I have at the moment

if(event.target.hitTestObject(zone0_mc) && zoneFull[0] == false && event.target._ballPlaced[event.target.name.substring(4,5)] == false) event.target.x

[code].....

View 2 Replies

ActionScript 2.0 :: CS3 Simple Music Player

Jan 21, 2009

I want to add a really simple music player to my flash website.Basically all i want is one of my tracks to start when the page loads.Then a simple 'sound on/off'.

View 6 Replies

Flash Music Player For My Website?

Apr 23, 2009

I want to build a custom MP3 player for my website.even explain just to get me started?

View 3 Replies

Script Music Player With Progress Bar?

May 25, 2010

I am creating a little JavaScript music player that sits on the bottom of the page, a lot like streampad. But streampad uses a flash progress bar for the song and JavaScript for everything else and I am having a hard time finding anyone who does this with JavaScript alone.

View 4 Replies

ActionScript3 :: Create An XML Music Player?

Dec 20, 2011

I am new to AS3, and I am trying to make an XML music player. For reasons unknown, the music player that I have coded (GUI was made an placed on the stage, so coding for those are not included.) will not display text or play the music. The code I have so far is:

var my_songs:XMLList;
var my_total:Number;
var my_sound:Sound;[code]....

View 1 Replies

ActionScript 3.0 :: Get A Music Player That Uses XML To Work?

Jul 12, 2009

I am trying to get a music player that uses XML to work but have not had any luck.

Here is my actionscript:

ActionScript Code:
var my_songs:XMLList;
var my_total:Number;

[code].....

I have also tried to load everything to my server but it still doesn't work.

View 2 Replies

ActionScript 2.0 :: Create A Music Player?

Dec 4, 2009

I wanted to create an interesting music player that would show an animation that would basically open like a door, then show you buttons for each song to be played. I made the music play by creating the buttons with the music in the "Down" frame of the button. This worked great, it played my music and played music when you pressed another button. However the problem lies with having music playing and clicking on another button. Both songs play at the same time.

To fix it I looked around to find a command that would stop all music playing when any button was clicked so that when music was playing, and you clicked a button for another song, the previous song would stop playing, and play the next song. However all the commands I tried gave me errors, or they made the button unable to start the song.

View 1 Replies

ActionScript 2.0 :: Next Track In Music Player?

Apr 10, 2006

I'm trying to build a music player that has multiple songs it can play. It should be fairly simple with next and previous buttons. I'm trying to get it to load a song based on an array I have created. Everything works fine with only one track but I'm unsure how to add more tracks. This is what I've done so far:

Code:
stop();
// --------------------------<load and loop sound>-------------------------- \
this.createTextField("status_txt", this.getNextHighestDepth(), 72,630,100,22);

[code]....

View 1 Replies

ActionScript 2.0 :: Make A Music Player?

Jan 10, 2007

I want to make a music player, when you select a label, a music starts to play. But i need to do this by a dynamic text variable, because the player and the list is in different movieclips. Erm...give me an example script of when i click the label, the text changes, and for the player, check if the text is something.

View 2 Replies

ActionScript 2.0 :: OnEnterFrame Efficiency?

Dec 16, 2009

Say I have 100 MC's (movie clips) in my scene that are spreading out in _x and _y. On every frame I need to check each of those MC's for a hitTest (or anything really). Would it be more programatically efficient to:A) Create a single array to hold all the MC's and do a for...loop to check all of themorB) When each MC is created create an onEnterFrame to check only itself (x100)?Hope this makes sense. This is an argument between me and my partner as to which will be the less processor intensive. My theory is that there would be no difference but I've read no documentation for it

View 3 Replies

ActionScript 3.0 :: Slow And Sometime Unresponsive Music Player

Oct 8, 2009

I just made a little site with CS3 where songs are supposed to stream and well the music player takes forever to load. Each song is supposed to be dynamically called by the actionscript but it looks like each song is being downloaded all at once when the page opens.

View 2 Replies

ActionScript 3.0 :: Music Player Error Message

Jul 30, 2009

I am basically creating a Music Player using Flash CS4, iam loading the tracks & all info from a text file & ID3 tags.the code works fine in Flash CS3, but spits out this error in CS4[code]...

View 6 Replies

ActionScript 1/2 :: Music Player For Flash Banner

Apr 5, 2011

I'm creating a website for a local band and in this site is an animated banner with a music player incorporated on it. The banner has been made in Flash using AS2.I'm having a bit of a problem at the moment figuring out a way to get my 'Next' and 'Previous' buttons working, so that once they are clicked the user can toggle through different songs, and be able to play and stop each song as they require.

View 1 Replies

Html :: Embed A Music Player On Email?

Sep 28, 2010

I'm creating html to send by email, and i want to put a music player like SoundCloud, I recieve an email who include that.

<object height="81" width="100%"> <param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F1627309%3Fsecret_token%3Ds-B1hMj&

[Code]....

View 2 Replies

Flash :: Music - Player Embed In Html?

Dec 24, 2010

i need a flash player (to embed in a html file) that can play external files mp3 through xml and just a simple play and pause buttons... i've been searching in google but it just shows up players with a big playlists and too much buttons for my work

View 2 Replies

Flash :: ReverbNation Music/playlist Player?

Jun 20, 2011

Anyone have any idea about how works the player ReverbNation? When I'm browsing the website, the player don't stop. It's still playing the song without pause o cut. And nor have frame/iframes.

View 2 Replies

Setting Up Flash Music Player As Opengraph Tag?

Jan 5, 2012

I have a flash music player at ith a Facebook like button.I've set OpenGraph meta tags in order to specify the url of the flashobject :

<meta property="og:video:type" content="application/x-shockwave-
flash" />
<meta property="og:video" content="http://www.etiennechampollion.com/

[code]........

View 1 Replies

ActionScript 3.0 :: Load External Music Player?

Jan 22, 2009

I have been browsing the web for HOURS looking for help with this subject. I created a flash based website and I need to load my myspace and snocap music player into my flash project. Both players are flash based....I'm certain there is some form of actionscript I can use I just don't know what it is and I am getting frustrated! [url]...

View 2 Replies

ActionScript 2.0 :: Music Player - Dynamic Playlists?

Feb 26, 2010

does anyone know a Flash Mp3 Player where I can add and delete songs dynamically from a playlist like in simfy.de ? I made one in JS but it is not very stable and does not have a nice design [url]... . All Players I've found, load playlists from xml files.

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved