ActionScript 3.0 :: XML Driven Audio Virtualizer Code - Return Value ?

Sep 24, 2010

This is one of those projects I've been nursing for a while to help better myself with as3, but I've hit a point in the code where I'm just going around in circles now and can't seem to figure out how to get out of it.  This project still has a few more problems after that, but I'll deal with those, for now, the situation is, here is a compressed file of my files

it contains:
the flash file which just targets the main .as file
assets -> packages -> and three .as files
music.xml

to save space I left out the 2 .mp3 files, for testing purposes if you really need them, I'll host them up, but otherwise if you need to test it and you have some .mp3's lying around, the <fsong> in the xml file is the mp3 file name.

so here's the issue: What I'm building is a flash audio player and virtualizer that will feed off of the music.xml, parse the data into info at the bottom, and eventually those song links will actually be active and choose the song, but that is something I'll figure out later.Right now, if I hard code in the song title "currently symptoms is hard coded in" it plays fine no problems, however what I want it to read is the first [fsong] in the xml file, so that I don't have to mainly change the as files, and that's where I've been going around in a circle.if you look at LoadSongXML.as at the top inside the public class LoadSongXML extends Sprite .there is public var initSong:String = "symptoms"; and public const SOUND_URL:String = initSong + ".mp3"; to control what gets called and played initially.

in public funciton completeListener(event:Event){

I have var initSong:String = songFile[1]; I can trace that value as you see in the line below just fine, but when I try to return the value so I can actually use it, I can't seem to access it, and I don't know how to get that function to return the value up so that I can actually access it.I've tried moving the various xml arrays out of the function so that they are in the same level, but that ends up breaking it.I originally had the public const SOUND_URL:String = initSong + ".mp3"; line in SpectrumDisplay.as and tried to pull the data to that, but to no avail, even tried adding the xml parser to that actionscript, but that ends up breaking over there as well.

View 1 Replies


Similar Posts:


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 1/2 :: Captivate SWF Audio Can't Return After Muted And Unloaded In Flash

May 4, 2010

I'm having a problem with audio of Captivate demos created in Captivate 4 loaded into a Loader component using Flash 8 and AS2. Problem is if someone is viewing a Captivate demo and hits the Audio On/Off button on the playbar to turn the audio off and then returns to the menu, the next Captivate demo loaded has no audio until the user click the audio Off/On button a couple of times. Even though when loaded, the playbar audio is shown as on.
I've already tried cpCmndMute and cpCmndVolume to no avail. Is there another audioOn variable I'm missing?[url]...

View 2 Replies

ActionScript 3.0 :: Auto Return To Menu/home At End Of Audio Or Video?

Nov 18, 2009

Basically I'm building CD extras for a band, and they have a bunch of videos that are embedded in the timeline that need to automatically return the menu when they finish playing.I have the menu working fine, and all the videos are linked and playing; is it just a simple matter of replacing the "gotoAndStop" command or is it more complicated?

View 2 Replies

ActionScript 3.0 :: Load Xml Driven Swf In A Xml Driven Flash Site?

Aug 23, 2009

I bought a flash site template that loads xml driven swfs inside the main swf as different menu items are clicked. The modules that come with the template work fine, but I don't know how to add a third party xml driven swf, so that it shows up properly. While the third party swf works fine as a standalone, the embedded version loads just an empty movie.

View 4 Replies

ActionScript 3.0 :: Prize For Code Button / Video / Return To Frame?

Sep 10, 2009

I need code that makes a button gotoAndPlay (211) which is a movie in an FLVPlayer that I "imported" as an external file that will play as a progressive file, and then, when that movie clip has finished playing, I need code to make it go back to frame 210, which has the menu with all the buttons on it that will launch other documents and movies on 212 and 213. The big problem is getting Flash to know to go back to my menu page when the video stops playing...All in ActionScript 3. If I can get working code by 8am tomorrow - Thurs 9/10/09, I will pay for the first posted that works. Say, $150. call the button button1 and the video video1.

View 9 Replies

ActionScript 2.0 :: Hit Return With The Keypress Code It Wipes The .swf File And Goes Blank?

Oct 22, 2007

I have code on my flash that allows the user to tab to certain buttons and press enter to enter it... but when ever I hit return with the keypress code it wipes the .swf file and goes blank... is this something to do with refreshing?

Code:
var EscapeListener:Object = new Object();
EscapeListener.onKeyDown = function() {
if (Key.getCode() == 27) {[code]....

View 1 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.0 :: Audio-code Is On A Movieclip Within A (Base)movieclip?

Mar 31, 2011

I have a problem concerning sound. Sound and AS3 to be more specific.my shoddy description of the problem, but here it is: How do I stop() an AS3 INTERNAL sound from another movieclip?

This following Audio-code is on a movieclip within a (Base)movieclip. It stops playing/looping when a button is pressed that gotoAndStops on another frame within the same (Base)movieclip. But when a button is pressed outside the movieclip and (Base)movieclip, which gotoAndStops on another movieclip on the timeline, it continues playing.

[Code]...

View 3 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies

Asp.net :: Skinnable Audio Player (or Something Similar To Windows Vista Audio Control In Task Bar) For The Web?

Mar 11, 2010

Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?

A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.

View 1 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

View 1 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

Php :: Recording Audio On Website: Red5 Stream Or Posting The Audio Data?

Sep 6, 2011

Let me first establish what I want to do:My user is able to record voicenotes on my website, add tags to said notes for indexing as well as a title. When the note is saved I save the path of the note along with the other info in my DB.Now, I have 2 choices to do the recording, both involve a .swf embedded in my site:

1) I could use Red5 server to stream the audio to my server and save the file and return the path to said file to my app to do the DB saving, seems rather complicated since I would have to convert the audio and move it to the appropriate folder that belongs to the user in a server side Red5 app, which I'm not very aware of how to build.

2) I could simply record the audio and grab its byte array, do a Base64 encoding on it and send it to PHP along with the rest of the data that is necessary (be it by a simple POST or an AJAX call), decode it on the server and make the file with the appropriate extension, audio conversion would also occur here using ffmpeg, this option seems simpler but I do not know how viable it is.

View 1 Replies

Media Server :: Stream And Audio Line Level Feed Rather Than The Audio From A Computer's Microphone?

Apr 1, 2012

Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?

View 1 Replies

ActionScript 1/2 :: Audio To Not Play When Moved To New Position For Audio Player

Aug 25, 2009

I have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
 
[Code]...

View 5 Replies

Get The Audio Level Chart From The Library Into View Along The Audio Timeline?

Oct 25, 2009

The images for animation load okay. The sound loads okay.  But the animation images need to be inserted in coordination with the sounds, which is difficult using only the ears  There is a visual graph of audio levels in the library window, which I have seen appear in the timeline also but only momentarily.  I do not know how to keep the audio graph on the timeline so as to know where to put the images.  I can keep the graph open on the little library window when it is open but not on the timeline. how to keep the graph open on the audio track while I work on the image tracks.

View 1 Replies

Flash :: Audio Player That Can Play Binary Audio Streams?

Apr 13, 2011

My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.

What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.

Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.

View 1 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 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

IDE :: Progress Bar For An Audio Player Streaming Audio From Wowza Server?

Feb 24, 2011

I am new in action script 3.0. i am trying to build an audio player which will stream audio(mp3 etc.) from wowza media server. the player needs to have a play button, stop/pause button, a play progressbar and a volume scroll bar. i am using NetStream object to paly the audio

View 1 Replies

ActionScript 3.0 :: Inheritance / Interface - Override A Function That Return An Object Of Class A And Make It Return An Object Of Class B Which Extends A?

Aug 4, 2009

I'm having some troubles with the use of interface and inheritance in AS3. I've done lots of OOP in the past and what I'm trying to do seems obvious to me, but doesn't work in AS3. The question is : Is it possible to override a function that return an Object of class A, and make it return an Object of Class B which extends A ? It seems not to be possible, since I'm getting a signature error in Flash, when compiling. For example, the following set of class do not compile (the code in function definition doesn't matter):

[Code].....

View 3 Replies

ActionScript 1/2 :: Audio Communication Application - Echo In Audio

Jun 15, 2009

I am creating an audio communication application. In that two users are able to communicate. But the problem is that some time in audio I am facing an echo problem.

View 2 Replies

ActionScript 2.0 :: Possible To Have Audio 'scrubbing' That Allows To Hear Audio As Scrub?

Jul 21, 2009

I was wondering if anyone could help me get some information on audio limitations in flash. Is it possible to have audio "scrubbing" that allows you to hear the audio as you scrub? Currently the only way I know to do this is by having it on the timeline, and set to stream. Using this method seems to be causing more issues than it solves. Preferably I would just like to load the audio in dynamically and then scrub through it. Is it possible to use that method and then still retain the ability to hear it as you scrub through it?I am having with the audio on the timeline. The main issue with this is that I have to manually add frames to the timeline, in addition to that I can not dynamically load the audio through xml. Well not that I know of.I think the best route is probably loading in the audio dynamically.

View 0 Replies

Audio Keeps Getting Stuck When Streaming Two Audio Feeds At Once

Sep 13, 2011

I am streaming to live videos with audio to our webpage, each with it's own accompanying audio.   On my laptop, I could stream them without any trouble but it would overheat so I had two new computers built just for encoding.   Now, on the new computers, the 2 videos stream fine but only on audio file works at a time. The other just gets hung up on one note of sound and repeats very annoyingly over and over.

View 2 Replies

Streaming Audio / Loading Audio Into Swf First / Then Playing It?

Jan 28, 2012

I think it is loading the whole audio first into the swf, but I would like to get confirmation from someone more knowledgible.[code]I want it to stream the audio when the button is clicked only so that 100 of these swf will not slow down a whole webpage from loading.[code]I only start getting concerned when I noticed that on FF and Chrome, the page loads really quick but when I open the page in IE, it takes a very long time for the page to appear.

View 3 Replies

Actionscript 3 :: How To Decoding Audio / Audio Playback

Jul 3, 2010

I'm interested in learning how to decode and playback audio in ActionScript 3. I understand how to write bytes to a Sound object using the SAMPLE_DATA event, so that's not really a problem. What I want to understand is how I could implement alternate audio formats for native playback inside of Flash Player. I guess what I'm asking is: how do I take something in X format and "convert/decode" it to WAV format and write the bytes to a Sound object, playing back the audio? I'm interested in writing a decoder for FLAC audio and possibly OGG audio, as these seem to be some of the most widely used open source audio formats

View 2 Replies

External Controls For Xml Driven Swf?

Oct 30, 2009

I have an swf with xml and external content for which I need play, stop and sound volume controls at least. The swf doesn't have them and it's action script 3 so I can't even get it opened in flash cs2.

Is it possible to create external controls or do I have to pay someone to create a new swf to go with the xml and css files?

can create a new fla/swf file that I could later edit for size, colors etc in the case where I need to create a new one. and how much... If not I may still need someone to create the controls for me and run me through the process of getting them to work with my current files.

View 1 Replies

ActionScript 3.0 :: SEO For XML Driven Page

Jun 17, 2009

ive made a huge xml driven site (navi and content) but now i dont know how to seo it. all the data comes from a database so it would be a problem to insert it in my html, but i load my html only once and after that flash does the hole change subpages thing.

View 5 Replies

ActionScript 3.0 :: Tag Driven XML Structure?

Dec 28, 2009

I have a XML file with images and tags which should be loaded into movieclips.The tags are separated in maintags and normal tags. Maintags are describing the image itself and "normal" tags are referring to other images. If you click on an image/movieclip its normal tags should be read and referring to other images' maintags which now should be loaded into the movieclips.Sounds complicated but actually it's easy. Theoretically I understand what to do, but I'm not able to express it in Actionscript.Here's my(rudimentary) code:

PHP Code:
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;[code]......

View 7 Replies







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