Php :: Playing MP3 Songs Without Disclosing The Path Of The File?

Jul 1, 2011

I am developing a shopping cart in PHP where i will sell the Songs in MP3 format. With product display i would like to provide the visitors/users to listen the Song 1 time only.So if i use players like JW player to play the song. The player disclose the file path in the source code of the web page and they can download the file directly.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Playing Several MP3 Songs?

Dec 15, 2009

I've been using the following code to load a mp3 song which works fine:

myTunes = new Sound(audio_mc);
myTunes.loadSound("ihearsymphony.mp3", true);
myTunes.onSoundComplete = function() {
myTunes.start();
}

Now, I have a list of 5 different mp3 songs that I'd like to play one after another automatically.

View 5 Replies

Professional :: Songs Not Playing When Upload Files To Web?

Jan 20, 2011

I'm using Flash CS4 and I have a jukebox coded in AS3 to play songs 1-4.
 
If I click publish preview>Flash, everything works fine.  The songs load, play, and can have their volumes adjusted.
 
If I export a swf file and the associated html file, along with the songs in the same directory structure as they were on my computer (in an audio folder in the same directory as the swf), the graphics show up, but the music doesn't play when I click the song buttons.
 
what I may have done wrong to go from a working publish preview of flash to a non-functional swf and html on the web?

View 1 Replies

ActionScript 3.0 :: Automatic Playing Of Songs In Playlist?

Oct 24, 2009

There are some songs in the playlist.The songs should automatically play in the sequence.Suppose ist song over then the next should automatically play and so on.I dont know how to do it,I was trying Timer Function .But How to know the duration of particular song and bind that with timer?

View 2 Replies

ActionScript 2.0 :: XML With Flash Project (organizing / Playing Songs)

Mar 5, 2010

I have a task. I must make an interface/application with a list of songs, alphabetically sorted by Genre / Mood. That also gives you the possibility to add more Genres/Moods and it should be easy to browse them. When a specific Genre/Mood is selected, the corresponding tracks appear, and when a specific track is selected, it should play in a player (see description below), and information about this track should also be displayed.

There should also be a Player included with Start/Pause/Stop buttons. It should be possible to see the full length of that track (time duration). There should be a loading bar and visible progression bar (like on Youtube) and it should be possible to drag in the progress bar to get to the specific point of the track. Is there a template for this sort of thing? Or how do I make this sort of menu? I guess it is some XML combined with some ActionScript?

View 0 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 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 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 3.0 :: Import File Names Of Songs Minus The .mp3 Extension Into Flash?

Jul 1, 2011

I'm wondering what the process would be for importing the filenames of songs minus the .mp3 extension into Flash would be? I want to import the filenames, and then create a for loop that goes through and adds some html tags to each name, and eventually I'll spit out a text file of it all for me to copy and import into a search function on a webpage. I think I can work through the latter, but I was wondering how to originally import the filenames into a swf?

View 5 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

ActionScript 2.0 :: CS3 FileReference - Know The 'file Path' When An User Selects A File From 'any Location' On His Hard Disk

Mar 7, 2009

I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?

Code:
var fileRef= new FileReference();
fileRef.addListener(mylistener);
mylistener.onOpen = function(file){
[Code]....

View 7 Replies

Flex :: Flash - Browse And Get The Full Path Of A File On Local Machine's File System?

Mar 29, 2010

I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this?

View 3 Replies

ActionScript 1/2 :: Opening File Browser And Getting Full File Name And Path?

Sep 14, 2009

I have managed to get it to open a file browser but all I can seem to get it to do is give me the NAME of the selected file *eg. selectedFile.name* I also need the path of the file as in C:examplefile.mp3.

The program I'm making plays an MP3 of your choice at a certain time, like an alarm clock. But I got tired of entering the file path of the MP3 EACH time so I wanted to have a browse feature.

View 1 Replies

ActionScript 3.0 :: Create A Pdf File From An Image Path Included Into Xml File

Nov 17, 2010

I'm in flash cs3 project. I need to create a pdf file from an image path included into an xml file or if easy also in a written path as the code below:[code]

View 0 Replies

ActionScript 3.0 :: Path Movement - Mc To Follow The Path Drawn Out By The Player's Mouse And When The Player Clicks Again, It Erases All Of The Path?

Jul 18, 2010

So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below

Code:
import flash.display.Sprite;
import flash.events.MouseEvent;[code].....

View 14 Replies

ActionScript 3.0 :: Get The Full File Path Of A File?

Aug 23, 2008

How can I get the full file path of a file? I have this so far:

ActionScript Code:
var fileRefList:FileReferenceList = new FileReferenceList();
fileRefList.addEventListener(Event.SELECT, selectHandler);
browse.addEventListener(MouseEvent.CLICK, brwoser);

[Code]....

I can only get the file name and that pretty useless for an upload to a server. I will be using php to ftp it to my server.

View 9 Replies

IDE :: Get The Path Of The File?

Apr 10, 2011

I want to get the path of the file (in which the script is run), with out the file name.

how to do that?

at present i have the following code:

Code:
var filename1=flash.documents[0].name;
fl.trace("this file name >>> "+filename1);
var filePath = flash.documents[0].path; // getting doc path
fl.trace("File path "+filePath);

and i get the following in output window

HTML Code:
this file name >>> testing2.fla
File path E:Flash JSFL est2 esting2.fla

View 2 Replies

ActionScript 3.0 :: Compile Package File - Error: A File Found In A Source-path Must Have The Same Package Structure?

Dec 19, 2011

I have an actionscript file,it has a package name,it locate C:demo directory,like follows:

package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............

Then I compile above code like following command,but it raise following error:

C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml

C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?

View 1 Replies

ActionScript 3.0 :: File Path To Our XML File?

Nov 11, 2010

Not sure if this is right?
 
// Setup our XML loader and tell it the file path to our XML file.// Also, add an event listener to call the loadComplete() function// when the loading of our XML file is complete.
var xmlURLLoader:URLLoader = new URLLoader();var xmlURLRequest:URLRequest = new URLRequest("loadImages.xml");xmlURLLoader.load(xmlURLRequest);
 
xmlURLLoader.addEventListener(Event.COMPLETE, loadComplete); function loadComplete(e:Event):void{  // Build new instance of XML object (imageList) and copy into  // it the data from e.target which is the xml_loader object (which  // contains the data loaded from our XML file).  var imageList:XML = new XML(xmlURLLoader.data);

[Code]...

View 14 Replies

ActionScript 3.0 :: Import Mp3 File Info To Be Shown Whilst File Is Playing?

Dec 2, 2010

Created an mp3 player that works fine, but i need the track name, artist name, track timer, to be shown aswell?and i dont have a clue how do go about doing this.

View 2 Replies

Get Path To A File Via Flash?

May 12, 2010

I'm not a flash dev, but I'm turning to it to try and meet a requirement. I'm to allow a user to select a file on their computer, then pass it to my web application. I know it's not possible to do this using Javascript, hence wanting to use flash.

View 2 Replies

ActionScript 2.0 :: Get The Path Of A File?

Feb 27, 2006

how am I going to get the path of a file that I've selected with a FileReference.browse()? I can get the name and stuff, but how can I get the whole path?

View 3 Replies

ActionScript 3.0 :: Playing A Sound File And Graphic Positioning In The Same File

Dec 15, 2009

I have a problem that I have not found a syntax error or logic error to explain. It appears to be an obscure problem related to playing a sound file and graphic positioning in the same file. My next step is to look for any known bugs. I have posted the file at. URL] When the page loads you will see a list of selections. Do not click any of the html Play buttons In the graphic arrow pointing to the right is the play button click it and a default file will start. Click the pause button (which will be green while the selection plays) Then click the play button again. The knob that moves while the song plays, will begin moving from the position it was at the time pause was clicked.

Click the stop button (arrow facing left with vertical line at tip) Choose a selection from the html list by clicking the Play button next to it. Then click the play button in the player display. The title of selection will appear in the title area. repeat the original steps (play, pause, play) This time the knob that moves while song plays, snaps back to the start and moves from start, rather than from the pausedposition.

[Code]...

View 7 Replies

Import An Image Path From A Xml File?

Feb 2, 2010

I am trying to import an image path from a xml file. I can trace out the correct file name but I can't seem to load the file into the holder.I get this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

I presume there's something else I need to add to the XML syntax.

Code:

// HOLDER:
var LoaderImagesMC:MovieClip = new MovieClip();
// LOADER:

[code]...

View 4 Replies

Actionscript :: Get Absolute Path Of My Swf File In It?

Aug 17, 2009

I would like to get the absolute path of my swf file from within Actionscript.[code]...

View 1 Replies

Actionscript 3 :: AIR - From A Swf Path File To A ByteArray

Mar 18, 2011

I am coding an AIR application.

I've got directly a path of a swf file (because it was stored in a xml file). Do yo know if it is possible to get the ByteArray from this file ?

I know that FileReference do that very well, but this class need a select event. But it isn't my case because I've allready got my path.

View 2 Replies

Actionscript 3 :: Getting Physical Path In SWF File?

May 19, 2011

I'm using UILoaders to load different .swf files into the main .swf and am having a problem when I try to load a specific .swf file after a series of steps.I wanted to know if there was a way to see which is the current path that the application is in so that I can know if my relative paths are working or if I have to change them.I want to do something in the likes of this.path, or anything that works that way.

View 1 Replies

ActionScript 2.0 :: Path To Xml File For Swf Inside Swf?

Mar 24, 2010

I'm trying to get a swf inside a swf to load xml data and I don't fully understand relative paths.I want to include all the necessary info.I have a main swf in my index.html page and a gallery.swf loaded into a container in the main swf, and I can't get the gallery.swf to load the xml data. See pic. I'm not sure if the path to XML file is wrong OR the paths to the image in the XML file are wrong.Here is the structure in the root:

root/index.html (contains main.swf)
root/flash/gallery.swf[code]....

I know the gallery swf IS loading into the main swf because for now I'm using the absolute path and I have typed "test" on the gallery stage and it shows up. (Once I get a grip on paths, I'll change the absolute path to a relative path, but for now, I need to reduce my variables for troubleshooting).I've think I've tried every path permutation for the load XML path inside the gallery swf:

ActionScript Code:
myXML.load("scripts/xml/gallery.xml");
myXML.load("./scripts/xml/gallery.xml");[code]....

I've also tried every permutation for the paths to the images, but unfortunately BOTH need to be right for the pics to show up!

Code:
<image image_small="gallery/thumbs/kirk_ross_01.jpg"
<image image_small="./gallery/thumbs/kirk_ross_01.jpg"[code].......

View 6 Replies

ActionScript 3.0 :: NetStream Have A Different File Path?

Jan 31, 2011

I have a swf that is in a different directory then the index. so I make sure that the xml has the proper relative path to the location of the index. which works fine for all the images that I load in.. simple enough right?but for some reason the NetStream seems to want to use the base url location as the location of the swf instead of the index.. to apply the relative url too..I have never seen this behavior before and was wondering if this is how its supposed to be..I already double checked my xml to make sure it was not doubling up the folder name..but basically the xml is like so..

<video src="foldername/videos/file.flv" />
but when i view it online. the browser is looking for the file here..
domain.com/content/foldername/foldername/videos/file.flv

[code].....

View 4 Replies

ActionScript 2.0 :: How To Use Load() With Path File

Mar 11, 2011

I have a code like this...

Code:
var _fileSelect:String = "";
OpenFile.onRelease = function(){
var fileRef:FileReference = new FileReference();

[Code]......

View 0 Replies







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