ActionScript 2.0 :: Random Audio Funtion?
Oct 11, 2004I used a script like this to randomise a background graphic:
function randomBg() {
randFrame = random(3)+1;
bg_graphics.gotoAndStop(randFrame);
[code]....
I used a script like this to randomise a background graphic:
function randomBg() {
randFrame = random(3)+1;
bg_graphics.gotoAndStop(randFrame);
[code]....
Flash cs4.
What I need to do is make a search function that will find items within the site it self.
Example...
if I have like 100 folder and all are numbered but I dont want to scroll I want to just type 86 and it should go there.
so i have a flash script that was working fine but now i got an error that i dont realy get
Code:
TypeError: Error #1006: appendText is geen functie.
at Twitter_Main/loaded2()
[code].....
I am just simplifying my senario here.I have function that loads movieclip in loops[code]...
View 5 Repliesloader_ary[i].contentLoaderInfo.addEventListener(Event.COMPLETE, loadyLoaded);I would like to have access to the variable "i" inside the function loadyLoaded.what code would i need to useto return i or atleast the name of loader_ary[i] and slice it or something.
View 9 Replieshow a function can be called at regular interval for limited times in AS3.0 and one more thing the timer should not be started automatically. I have to trigger that method.
View 7 RepliesI have a scolling menu, that works wraps around and everything, all nice and pretty.When I place a get url on the button state the url opens,When I place a goto on the button state nothing happens, the supposed scene is a no show.(I have also tried this on the mouse down in the MC state with the same results)I started the scrolling images as buttons then f8'd again and converted to MC's...the MC's have a zoom funtion on them, btu i removed it to see if that was a possible cause to no avail.
View 7 RepliesI've got a simple program that consist of a document class and a buttonTemplate constructor class. I need to call a function called updateText that should be in the document class, when someone clicks on a button. My event listeners for the buttons are in the buttonTemplate class. My question is, how do you call a function in the document class from a constructor class? Here is my simplified code below
DOCUMENT CLASS
Code:
package {
import flash.display.MovieClip;
import flash.text.TextField;
[Code].....
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 RepliesI 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.
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.
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 RepliesBecause 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 RepliesLet 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.
Is there a way to stream and audio line level feed rather than the audio from a computer's microphone?
View 1 RepliesI 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]...
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 RepliesMy 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.
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.
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 RepliesI 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 RepliesI 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 RepliesI 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 RepliesI 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 RepliesI 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 RepliesI'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 RepliesIs it putting the first random var and then the second, like this?
frases.push(myXML.pais.frase1[ps][r]);
Is there any tool can help me rip audio from SWF file and ave it in MP3 format separately in another folder, and extract audio stream to MP3, AAC, M4A, WAV, WMA, AC3, MP2 formats?
View 3 RepliesI want a movieclip consisting of a dynamic text box that, from the time it's loaded onto the stage, loads a randomly selected text string from an array, and continues to loop until the clip is removed from the stage. I also want the text strings to appear in the text box for random intervals between 500 and 3000 milliseconds.
While I've found tutorials here and elsewhere on loading one element from an array, usually triggered by a button, I don't know how to combine/alter it with the other elements.So I want this movieclip on the stage randomly flashing phrases from an array, some for a barely perceptible time, and others for a readable time.
why is this code NOT loading a random image, despite tracing random number?
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
import flash.display.MovieClip;
[Code]...