ActionScript 3.0 :: Setting Up An Array Of Songs For An MP3 Player?

Oct 7, 2009

I'm having issues with this array I setup for a MP3 player I am creating. First I'm trying to plug in the array in the URL Request, not sure if I need a for loop. Also in my onComplete Function below, I want once one song is finished in the Array, the next item in the array plays or if there are no more items left it goes back to the first item in the array. Not sure if I am setting this up properly

var songArray:Array=["song1", "song2", "song3", "song4", "song5", "song6"];
var songReq:URLRequest = new URLRequest("mp3_files/song" + songArray + ".mp3");
var song:Sound = new Sound();var channel:SoundChannel;var pausePosition:int = 0; // var

[code].......

View 2 Replies


Similar Posts:


ActionScript 2.0 :: (mx2004) - Setting Up The Mp3 Player To Display The Songs Names

Apr 8, 2004

I recently made an mp3 player that reads off of a text file so that users may cycle through a selection of songs. I'm trying to extend it a bit by setting up the mp3 player to display the songs names an their duration (5:45) I'm pretty confident this is possible and I've tried a number of things and read a number of threads and tutorials but I'm still stumped.

[Code]....

View 2 Replies

Professional :: Flash Air 2.0 MP3 Player Using XML To Load Songs?

Mar 1, 2011

I found this nifty code (here) for an MP3 player that uses XML/URLRequest to load the songs in.I'm trying to implement this code on my own application, and I've run into a couple of errors.I've got the XML loaded into the application, and it's showing up in a List component.But it's not letting me to play songs from it quite yet.This is the error I'm getting:

Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.at BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla::wholeplayer_12/frame3()[BACKUPmusikkavspiller_mariuskristian_eksamenRIA_fla.wholeplayer_12::frame3:6][code3].......

I've read something about IOErrorHandlers, but I'm not quite sure how to use them, where to put them and what to read from them..If needed I'll paste my full code. The original code is from here <-, as posted above.

View 1 Replies

ActionScript 3.0 :: Loading Songs Into Flash Mp3 Player?

Jun 8, 2011

I have a music community website, visitors can sign up, upload mp3 files, their files get uploaded into their own folder named '$id' in the php code, (if they are the 10th member to sign up, their folder would be named 10, and so on)
 
I have a prebuilt flash player that I want to playback the mp3 files just for that member when their profile is being viewed, I have some code in the mp3 upload script that automatically writes an xml file to their folder containing their song data, with Andrei1's help, I got that part working using flashvars, now the problem I am having is that I can't get the songs to play back, the data is there but no music.
 
as I said I am using a prebuilt flash player that is using a static call to a directory, so should I use flashvars again to load the mp3 files into the player? and I also need help figuring out what to change in the actionscript.here is the object embed src for the html:
  
<param name="movie" value="flplayer1a.swf">
<embed src="flplayer1a.swf" FlashVars="xml=<?php echo "members/$id/playlist.xml" ?>"></embed>
<param name="FlashVars" value="xml=<?php echo "members/$id/playlist.xml" ?>">
 
and here is the actionscript code for the playback on frame 1
  
stop();
var myFormat:TextFormat = new TextFormat();
myFormat.color = "0xFFFFFF";

[code]....

View 24 Replies

ActionScript 3.0 :: Play Songs In Flash Player?

Jul 18, 2011

I have a flash player which can play the songs stored on the Local Server, under "mp3" directory.

I would like to modify this player, so that i can play the songs stored on the remote server, through an API.

Following is the code of the player [code]...

View 4 Replies

ActionScript 2.0 :: Showing All Songs In Player Using Scrolling Options

Feb 5, 2010

I am new to flash and I am finding a way to use the scrollbar functions to scroll the song names,
Video source. [URL]

View 3 Replies

ActionScript 2.0 :: Make A Player With Multiple Tracks And Songs

Jan 4, 2004

where on this site or another site can I find a good in dept tutorial or tutorials on control over music and sound IE loading, playing, and so on. I know the basics but im trying to make a player with multiple tracks and songs that are too big to just place in the flash movie

View 8 Replies

ActionScript 2.0 :: Create A Streaming MP3 Player With Multiple Songs?

Dec 1, 2004

How do you create a streaming MP3 Player with multiple songs? My dilema is not getting the song to play but how do you create it so that no matter which song its on it will go to the very next one? like if it is song 3 go to 4. Because that would be a variable that would constantly change.

View 1 Replies

ActionScript 2.0 :: Make A Fade Volume Between Songs To Songs?

Jan 27, 2009

i want to make a fade volume between songs to songs...this is the function i have made... what's wrong?

Code:
fade.onEnterFrame = function() {
new_volume = 0;[code].....

View 9 Replies

ActionScript 3.0 :: Making Mp3 Player Play Random Songs Upon Load

Aug 16, 2010

Im new to the AS3 game but I need some help with something. I have built a pretty good website mp3 player but it plays the songs in order. I want the the mp3 player to play a different song everytime it loads.[code]

View 2 Replies

Create A Music Player Where One Can Upload Songs From Any Computer On The Web And Play Them Back

May 31, 2011

I'm looking to create a music player where one can upload songs from any computer on the web and play them back... is this possible and if so how would I go about creating it?

View 1 Replies

ActionScript 2.0 :: Music Player - Create Four Different Sound Objects Since Later Songs Are Loading While The First Are Playing?

Apr 21, 2004

I've been messing with this for almost six hours now and am at the end of my wits. I need a flash mp3 player that follows the following guidelines:

*all encased within its own movie clip
*loads four different songs, one after the other (event)
*each song displays its own loader
*user scrolls through song selection and plays available (loaded) ones
*first song plays when loaded and continues to the others

any tips on where to go with this? do I create four different sound objects since later songs are loading while the first are playing?

View 5 Replies

ActionScript 1/2 :: Player Locates Songs In The Folder "my_mp3s"?

Feb 1, 2011

I'm not sure if this is  the right spot for this question but i   want to edit an xml flash player  so that it creates the playlist with   the name i want and not the  default. Can some please tell me how to  edit this so that when the player locates songs in the folder "my_mp3s" it creates an xml playlist named "mymusic.xml" instead of the default "audioplaylist.xml".  I tried  to edit the actions script of the player and  overwrite the  changes but  it still doesnt work,

[Code]...

View 7 Replies

Actionscript 2.0 :: Mp3 Player - Keep The Mute State Unchanged When The Songs Are Playing Until The Mute Button Is Pressed Again

Feb 3, 2009

I've downloaded the the Flash mp3 Player. I did some minor modifications to it and it works well. The only problem I have is that when the mute button is pressed, the current song is mute(s.setVolume(0)), but when the next song comes up, the mute button is not in mute state(Volume not set to 0). I want to keep the mute state unchanged when the songs are playing untill the mute button is pressed again.

View 6 Replies

ActionScript 2.0 :: Setting Array Values To Variables In Another Array

Dec 11, 2007

I have some variables created on the main timeline and a mc called options which will be where those variables can be manipulated. A way I've tried to this is by creating a first array(array1) and populating it will all the variable names found on the main timeline, and another array(array2) containing the values of the variables the user has changed(which are displayed on some dynamic text fields). To make these changes, an "apply" button is pressed which will set the values found in array2 to the variables in array1.[code]How would you do this so that var1, var2... are updated properly according to the values found in array2?And because array2 contains strings(read from dynamic textfields), how do you deal with that since var1 and var2 are numbers?

View 6 Replies

Professional :: Setting Up Simple Flash Mp3 Player?

Jun 13, 2010

I have a html page with some links to mp3 songs.I would like to set things up so that when user clicks a mp3 link, a small flash mp3 player (embedded in the page) starts playing with that songs. The user could click on another song that would replace the last one at any time and have basic controls.
 
- flash mp3 player - need 1 that has start / stop and volume buttons (simple)
 
BTW: I set this type of thing up in the past with a frameset - top had quicktime player embedded - and bottom song links went to top frame - all was fine but kind of bulky.... looking for something a bit slicker...Also would like to do the same for flash / quicktime videos, Also if there's something free or close to free that is a jukebox type where the song list is part of flash,

View 2 Replies

Flash :: Setting Proxy Settings For Player?

Jan 9, 2011

I asked Google. But there is no working answer for it. I checked "right click -> global setings" and found no proxy setting in [URL].. Can anyone know how to configure proxy settings for flash player?

View 1 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 2.0 :: MP3 Player - Song Position Not Setting To Zero

Apr 2, 2010

I am create a flash mp3 player. In that I am displaying the song.position(time completed played). The song.position is not setting to zero, when a new song is played. It is continuing with the previous song. For example, if the previous song time is 30 seconds. the song.position is started from zero and comes to 30 seconds. After that song is completed and a again a new song is started, the song.position is starting as 30 seconds and gets increasing. It is not setting to zero at the start of the second song. I even set the song.position=0, when the previous song is completed.

View 1 Replies

Flash Player Setting - Allow Button To Access Client Web Cam

Aug 8, 2010

I am building a flash app that will asks the client to access their web camera. Users on Windows (Firefox, Safari, Chrome browsers) are able to click the allow button. However, users on Linux/Mac (Firefox, Safari, Chrome) either need to click several times until they can click allow, or they can't click at all. [URL]

View 1 Replies

Actionscript 3 :: Flash Audio Player Volume Setting?

Sep 18, 2011

i am creating a audio flash player and i want to set the volume of the sound to 0 and then again to 60. Means i want to toggle between these values on a single button click.

View 1 Replies

ActionScript 3.0 :: Setting Source Of FLV Player As Variable - Error Report

Jan 19, 2010

I have an FLV player on the stage. I'm setting the source (flvplayer.source) as a variable. When the proper file is in the right location it plays perfectly. I'm trying to set up an error report that is generated when the source FLV isn't there. So far I have:

import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
import flash.events.IOErrorEvent;
flvPlayer.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
function ioErrorHandler(event:IOErrorEvent):void{
trace("error");};

This doesn't work for some reason. The ioErrorHandler function is never run.

View 9 Replies

ActionScript 3.0 :: Adding Volume Control To Player And Setting Default Value

Apr 20, 2011

How to insert the volume control for this player and set a default value.
//Declaracion de variablesvar duracion:Number=10000000000000;
var flv:String='../../../'+unescape(_root.flvFile);
//trace(flv);//var flv='video.flv';//aviso.text=flv;
//trace(flv);
var conexion:NetConnection = new NetConnection();
[Code].....

View 1 Replies

Javascript :: Flash Video Player That Supports Setting Cookies?

Sep 10, 2011

I've tried JWPlayer from my app (C#). It works well, but I can't seem to find cookie support. I need to send a cookie or else the server will return 403 Forbidden. Is there any commercial flash player with cookie support (or I'm missing something in JWPlayer's doc)

View 1 Replies

IDE :: Setting Array Value Or If No Value, Make It 0 ?

Mar 14, 2009

I have an array which is filled up when someone clicks on a button.

something like this:

Code:
var ThumbArray:Array = new Array();
//on click, adds new value like this
ThumbArray[ThumbArray.length] = [productid.text, viewID.text, price.text]

I limit it to a maximum of 14 values.I now need to know a good way to set a variable equal to the value of a row of the array - but if there is no value then it becomes "0"

So this is my code so far

Code:

theVariables.varMat1 = ThumbArray[0][1];
theVariables.varMat2 = ThumbArray[1][1];
theVariables.varMat3 = ThumbArray[2][1];
theVariables.varMat4 = ThumbArray[3][1];

[code]....

View 2 Replies

ActionScript 2.0 :: Setting Up Functions To Go With An Array?

Sep 7, 2009

I have an array that I have set up that would go with a series of movie clips, and I am trying to combine them with functions that upload xml pictures--firstImage(), secondImage(), and so forth.

Here is the array that I have:

Code:
var currentButtonId:Number = 0;
var buttons:Array = [btn1, btn2, btn3, btn4, btn5, btn6];
function buttonRelease() {

[Code]....

It enables and disables the movieclips depending on which one is clicked. But I want to make the xml functions (firstImage(), secondImage()...) go with the buttons in sequence. So once btn1 gets pressed the firstImage() xml function gets called.

View 1 Replies

Android :: Flash Player Doesn't Work When Setting A Custom User Agent In WebView

Jun 20, 2011

I am trying to use the Flash + Set the browser to a desktop agent on the Galaxy Tab.

mWebview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101019 Firefox/3.6.11");
mWebview.getSettings().setPluginsEnabled(true);

So the issues is, when the UserAgentString param is enabled, flash player wont load as many websites like Iplayer don't recognise the browser in the WebView.

This may be a bug in the Samsung browser. Anyone have any desktop agents that the WebView will accept whilst enabling flash?

View 1 Replies

ActionScript 3.0 :: BeginBitmapFill And Setting The Smooth Attribute To 'true' Causes The Player To Hang A Few Milliseconds At Random

Jun 4, 2008

Since i upgraded to Flashplayer 9.0.124.0 i've noticed that using textures on 3D Objects via the beginBitmapFill method and setting the smooth attribute to 'true' causes the player to hang a few milliseconds at random. Setting smooth to 'false', the player runs without any hang. I tested this on different machines. An upgrade to player 10 beta didn't cure the symptoms but the hangs appear less in time. Has anyone else such problems or an idea what is going on?

View 1 Replies

ActionScript 3.0 :: Setting Child Index From Within Array?

Sep 14, 2010

Here's what I'm trying to accomplish: I have as3 script that successfully displays an array of MovieClips, the MCs have variable xy positions, and in some cases they overlap each other. I have a function within the array that I can't quite figure out. Here's what I'd like the function to do: When the cursor rolls over a particular MC displayed by the array,I'd like that MC to be brought to the front of the others. This is my script:
 
var myArray:Array = new Array(); for(var i:int=0; i<8; i++) { myArray[i]= new myImage();addChild(myArray[i]);myArray[i].x = 180*i;myArray[i].y = 330;myArray[i].addEventListener(MouseEvent.ROLL_OVER , overlap);
function overlap (event:MouseEvent):void
{trace('function triggered on image ' + i);

[Code]...

View 3 Replies

ActionScript 2.0 :: Setting Dynamic Text Var From An Array?

Jul 22, 2009

I'm trying to create a dynamic text field which displays the first number contained in an array named _root.arr. I set var to "_root.arr[0]" to catch the first number in the array. Unfortunately it doesn't work because it shows just a blank text field.

I've also noticed that if I just set var to "_root.arr" all the numbers contained in the array will be displayed separeted by a comma.

So, how can I just display the first number in the array?

View 2 Replies







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