ActionScript 3.0 :: Create An Audio That Only Uses The First Entry In A Xml File?

Nov 17, 2009

I am trying to create an audio that only uses the first entry in an xml file. I have most of the things working but I keep getting an error related to the audio file.

TypeError: Error #1034: Type Coercion failed: cannot convert "http://rivervalleychurch.net/sermonaudio/Podcast/06_Jesus_Save_Your_Church_First_Love.mp3" to flash.net.URLRequest.
at latestMessage_fla::MainTimeline/frame1()

I inserted the url for the file into error message so you can see if there is s problem with that. I was initially trying to use a variable to hold the url for me, because this xml file gets updated every week and I only want to access the most recent entry.

This is my first attempt at making an audio player in flash, so I am sure I have made a simple mistake, but for the life of me I cannot figure out what it is.

Here is the code I have so far: (Please Try not to Laugh, at least not out loud)

//Load the podcast.xml File
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();

[Code].....

One last question is in regards to using id3 tags versus xml tags to fill dynamic text fields in the player. Currently I am using the xml file to do this, are there any advantages one way or the other for this. The only reason I ask is that I am hoping to display an "album art" image from the id3 tag in the player. Would it be better to grab all of the information from the mp3 file?

View 4 Replies


Similar Posts:


Professional :: Cannot Seem To Get The Audio To Start Playing Upon Entry

Sep 9, 2011

I have a sound control file that works great, however, I cannot seem to get the audio to start playing upon entry. I have tried the using the code:: samplesound.play();and it plays but when you click the play button, the audio repeats and the sound file that started upon entry do not respond to the controls.URL...

View 3 Replies

ActionScript 3.0 :: Overwrite The Current Entry With A New Entry To Update The Score?

Feb 4, 2011

I have a database all set up and working between flash and SQL .The set up allows me to add entries and receive data.. all this works great..The only problem I'm having is that when I want to update the score when clicking on a button..I can only send or receive data, and what I actually want to do is overwrite the current entry with a new entry to update the score..

View 3 Replies

ActionScript 3.0 :: Load An Audio File And Then Create An Equalizer

Aug 5, 2009

I'm wondering if there's any way that i load an audio file and then create an equalizer like one that you can see in an usual application for edditing sounds. I found one method in Actionscript, [URL], but this only returns a value for the current moment of a sound, and i need, to create for the whole song.

View 5 Replies

Create A Music Player In Flash That Creates A Waveform Of The Audio File?

Jan 16, 2010

I have got three screenshots below of Flash-based audio players on various websites that draw a waveform of the clip it is going to play and moves along while it is playing and also allowing the user to click on a point on the audio file and it jumps to that point.I have very little Flash knowledge but is this easy to achieve? I would like to just show the Flash file an mp3 and it draws the waveform. I understand this could be quite intensive on CPU so would there be a way of caching the waveform data so it doesn't redraw each time the file is loaded?

View 5 Replies

Html :: Flash Audio Player For M4a (AAC) Audio File Embedded?

May 15, 2007

I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).

View 7 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

Actionscript 3 :: Use An Audio-file - Preload A Sound-file

Jan 21, 2011

I have AS3 project, made with FlashBuilder. I'm using MovieClips from an external .SWC-file. In a MovieClip from the .SWF-file, I want to use an audio-file. Is it possible to preload a sound-file (e.g. .MP3) in my FlashBuilder project, and access it in a MovieClip inside the .SWC?

View 1 Replies

ActionScript 3.0 :: How To Download Audio File And Video File

Sep 27, 2009

i am new to actionscript i need to download .mp3 and vedio file form my remote server how to do this give me any example source code for this.when i download .pdf its downloading properly. but not audio.

View 1 Replies

Create Audio Chat Rooms?

Apr 25, 2011

What is an expected way to create audio chatrooms? Either try to mix all published audio streams into single one and republish it under common name? Or just inform all clients about each other and allow each one to connect to a stream, published by each other?

Do I need to write custom webapplication with my own scripts in it, or this is some default functionality?

View 3 Replies

Create A Multitrack Audio Mixer?

May 31, 2009

how to create a multitrack audio mixer?

View 2 Replies

Professional :: How To Create Audio Waveform (Timeline)

Aug 19, 2010

I'm trying to stream *.wav files on a webpage and looking for a flash program which will show the full audio waveforms. Something like this:
How to do this? Again, streamings not the heard part, I just need to allow users to see the waveform timeline.

View 4 Replies

Create Something Which Records Audio From User / Allows Them To Send It To Email

Oct 5, 2011

I know how to use AS3 to record sound from the user and enable them to save it to their computer. However, I would really like instead to allow them to either send it to an email address right after recording (without them having to save it to their computer first and find the file), OR to let them save it so that the site owner can access it (They would know that it was happening.).

View 1 Replies

ActionScript 3.0 :: Create A Player To Stream Audio Files?

Feb 22, 2011

need to create a player to stream audio files (mp3 and other audio extentions) in my website. To create this player I used flash cs3 and actionscript3.I found actionscript 2 is easyer to creat and get duration (mysound.duration) but in ac3 I can't get sound duration with this syntext : "mySound.duration"attention : In ActionScript3 BEFORE loading is completed , I need my audio file in player to show duration and displayed minute and second in the stage.I tried so many solutions in the internet but all of them provide sound duration AFTER loading is Completed (but I need sound duration BEFORE loading is Completed)attention : My audio files are multi bitrate rang exp.(24 kbs , 34kbs , 128kbs or higher).I am trying to get audio DURATION of audio "total bytes" but these solutions just are right for only 128kbs audios.

View 1 Replies

Create A Sound Spectrum Analyiser, Or As I Call It, Audio Visualization?

Sep 16, 2009

I am trying to create a sound spectrum analyiser, or as I call it, audio visualization. I have seen many examples, including the competition held on this site. However, I have yet to find anything on real time audio, whereby the spectrum reacts to sounds it hears rather than pre compiled songs. provide me with links to some tutorials on real time sound spectrums

View 2 Replies

Flash :: Ffmpeg On Windows: Use Mp3 As Audio Codec To Create Mp4 Files?

Nov 29, 2010

I'm using ffmpeg on Windows to create mp4 files for web distribution. As libfaac isn't available, I use libmp3lame to encode the audio tracks. The mp4 are played back with a falsh player (JWPlayer).I was wondering if there were any shortcomings to use mp3 instead of aac on certain devices?

View 1 Replies

Create A Flash Application Where Users Will Have Access To 10, 5 Seconds Audio Loops

Oct 8, 2010

I want to create a flash application where users will have access to 10, 5 seconds audio loops. They can choose any 4 tracks to make a 20 second track. I then want that mp3 to be stored somewhere or flash to create to a file which can be sent to friends in facebook where they can listen to that beat. There will be a little button at the bottom saying 'click here' to make your own beat.

View 1 Replies

Professional :: Create An Audio Player With Play, Stop, And Pause Buttons?

Apr 16, 2010

I want to do something that is probably very simple, but I'm having difficulty.
 
I want to create an audio player with play, stop, and pause buttons that I can then import into Fireworks/Dreamweaver. 

View 2 Replies

ActionScript 3.0 :: Create An Equelizer For Audio And Video Files In Flash/Flex?

Dec 9, 2011

I want to create an equelizer for audio and video files in Flash/Flex.
 
1) Is it possible for audio files other than MP3(i.e. FLV, MP4 etc.)

2) Is it possible for video file to display equilizer?

3) I am creating a voice and video recorder application using FMS 3.5.Now is it possible to display sound equilizer while recording as well as while playing the netstream ?

View 1 Replies

ActionScript 2.0 :: FREE Open-source Files To Create Audio-driven Flash?

Jan 31, 2002

I've created something that comes close.Download includes all open-source material and a manual to create your own audio-driven animations in Flash 5, and a player skinned by renascent of [URL]

View 8 Replies

ActionScript 3.0 :: Check For New Entry In Set?

Jun 11, 2011

I need to find the new item in a new set that is not in an existing set. here is an example:

// current set
{file, file, file, file, file}
// new set
{file, file, file, file, file, file}

- The current set contains a list of file objects (for example)

- The new set contains another set of file objects, however it contains most of the same files in the current set, but now includes a brand new file.The new file in the new set needs to be pushed onto the current set.

Restrictions:

- The new set cannot replace the current set, only the new file can be appended.

- The files cannot be directly compared because each file in the new set that references the same file as a reference in the current set is not the same instance. Therefore they need to be compared by property, in this case, teh file name.I have the general work out of the algorithm:

actionscript Code:

for each(var currentFile:FileInfo in currentSet) {  for each(var newFile:LocalFileInfo in newSet) { if(newFile.name == currentFile.name) { }}

But i just cant work out how to extract the new file. I will get it eventually, but im kinda hoping that someone will find a better solution entirely. one that might not even require so many loops.

View 2 Replies

Php :: Overwrite Entry Only If New One Is Higher?

Jun 6, 2011

I have table named "highscore" like this:

nameQL scoreQL
piotr 50

And flash game with NAME and SCORE exported to PHP with this names.How to make this in PHP file:

IF (NAME exists in database (nameQL)AND SCORE> this.name.scoreQL){Raplace scoreQL with SCORE WHERE nameQL=NAME}

IF (NAME doesn't exists){Create new row with NAME and SCORE)

View 1 Replies

ActionScript 3.0 :: Looping Entry Into SharedObject?

Jul 4, 2009

This is my flow chart for the project:

Frame 1;

1. User enter in a textinput named "studentname"

2. username is stored in a sharedobject (studentlist)

3. Show data of what previous students entered by evoking studentlist

Frame 2:

3. Current user enter other details, then movie loops back to Frame 1..

How do i store the a list of all students who entered their names in studentlist?

View 2 Replies

ActionScript 3.0 :: How To Display Specific XML Entry

Jul 7, 2009

I have a very simple line of code that i'm trying to modify to display a specific entry in a xml file:

AS3 Code:
// The first step is to activate the XML object
AmbientSettingsXML = new XML();
With the XML Object now active you must now load an XML foramtted document.
Any DTD or XLS formatting will be ignored.
AmbientSettingsXML.onLoad = myLoad;
[Code] .....

So the question is, how do I display the "event_title" entry only? (String)

View 5 Replies

ActionScript 3.0 :: Getting Undefined Attached As Last Entry Of Xml?

Dec 3, 2009

can anyone see why i'm getting an "undefined" at the the end of this xml list using this code:

PHP Code:
var vetXML:XML;
var vetLoader:URLLoader = new URLLoader();

[code]......

View 2 Replies

ActionScript 2.0 :: Limiting Form Entry To Once A Day?

Oct 24, 2002

I need to limit form data entry to once a day. I have created a login and a PHP script that writes variables to a txt file. However, I want to limit the users ability to enter data to the server date, so that they can only enter in data once per day. For example, a poll that allows a user base to vote once per day. I need to do it using Actionscript, PHP, CGI, or javascript.

View 2 Replies

AS3 :: Added Narrated Audio File To Fla?

Sep 8, 2009

I find myself inbetween the AS2 and AS3 world with this project. I added an audio file in a project which is a narrated presentation. If I play the timeline the audio plays but when I stop the playhead the audio continues to play. To tell you the truth I could not even remember having to do this in AS2 not alone in AS3. I have the audio preferences set to specch to make the file smaller, have the frame rae up to 30 frames per second as I'm using FlashEff for text and movieclip effects.

Is there away to be able to stop the audio so i can see and hear where I am when I start dropping the text and pics in the project?

View 1 Replies

ActionScript 3.0 :: Mp4 File With 2 Audio Tracks?

Sep 22, 2010

A quick question. Is it possible to play a mp4 video file with 2 audio tracks in it and switch between the two audio tracks? In stead of subtitles we want to provide the user with audio in their own language. As a test I received a mp4 video file with 2 audio tracks, an English and a German. When I load and play the mp4 video file I default hear the English audio track. Is it possible to switch to the German audio track?

View 5 Replies

Flash - Possible To Change SWF Audio File

May 1, 2011

I am not familiar with flash, and I would like to change an audio file from an annoying noise to a silent (aka, blank) file. Before you ask "why use it at all" - It is used for an online chat client, and invokes a Jquery error if the file is not present. The current file. It would be outstanding if someone could whip-up an error.swf file that is silent.

View 1 Replies

Recording Audio And Converting Into MP3 File

Oct 1, 2009

I have an assignment to create an mp3/wav file using flash. This player is expected to record voice from a speech mic and also be controlled by a foot pedal. How to record voice data and convert it into .mp3 file but haven't found anything yet.

View 1 Replies







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