ActionScript 3.0 :: SoundMixer - Not Fast Enough For External Loading
Aug 2, 2010
Using AS3 here - [URL]. I've got lots of externally loaded videos on this site most of which are XML driven. The "SoundMixer.stopAll();" works as it should, basically. I include it on each destination frame. If you click the "Jump Creative" entry point a video is set to auto-load and play. Now try clicking away on News while the video is loading. If the user clicks away while the video is loading, the audio will kick in after navigating away and after it has loaded.
View 12 Replies
Similar Posts:
Oct 8, 2008
i visited the site [URL] its really attractive, i have doubt how they are loading external swf so fast? and its also not chaging the URL address also, How did hide the SWF from decompiler??
View 14 Replies
Jan 11, 2009
I have preloader.swf in html (as3) that loads 1.swf (as2) which is my main page, the problem appears when it is in half way of preloading - 1.swf is getting started, it runs several frames, stops and it waits until preloader loads to 100%. I want 1.swf to be started when preloader reaches 100% not earlier.
Code:
preloader.scaleX = 0;
var loader = new Loader();
loader.load(new URLRequest("1.swf"));
[Code].....
View 1 Replies
Jun 22, 2006
I have a master to wich I'm loading external swf's. The preloader begins fine but when it reaches 10-12 % loaded the swf that I'm loading shows up. This leaves the preloader in it's place continuing counting... I want the preloader to stay until 100 % and THEN I want the external swf to show. Anyone understand my problem?
The code I'm using is this;
import mx.transitions.Tween;
import mx.transitions.easing.*;
[code].....
View 1 Replies
Jan 8, 2010
I'm having a hell of a time optimizing my loading sequence for a gallery site I'm working on. This is the way it works:
1. I load and parse an XML containing the URLs to the thumbs and large versions of the photos. - This step is fast and works the way I want.
2. I load the thumbnails in sequence jumping back and forth between two functions - one initiating loading of a thumb, and the other the event handler for that particular thumb which iterates a value, and then calls the initiating function again. I suspect this is where the major slow down happens.
3. When the iterating value has reached the same number as the number of URLs to load, the class dispatches a complete event, and all is well - except so much time has passed that no one will ever have waited to see the content ...
[Code]...
View 7 Replies
Aug 3, 2010
I'm loading an external .swf using the following code:
voiceover = new Sound ();voiceover.loadSound("Audio/Test.mp3", true);
The audio plays fine. My question is how can I create a pause, resume, rewind, or fast forward button for an external mp3?
View 1 Replies
Apr 1, 2009
Problem is that my rewind and fast forward buttons do not work properly in the sense that they start to mess up when you fast forward or rewind past the current scene. It seems to just skip through the whole movie and totally mess up the animation.the code for the controls is on a single layer and reads as the following:
stop();
play_btn.onRelease = function (){
play();
[code].....
View 4 Replies
May 21, 2009
Using the example found in the class documentation, you'll notice the bass frequencies are crammed on the low end too much, and the higher frequencies will sometimes register even in the bytearray.position = 0 float. Is this a problem with the design of the computeSpectrum class? Because I can take the same file, put it in another spectrum analyzer and see the bass and treble spread more evenly.[URL]
View 4 Replies
Sep 2, 2010
when do we use SoundChannel and SoundMixer?
View 3 Replies
Jan 6, 2011
I'd like to record live to a server the audio produced by some kind of drum machine made in flash, is it possible with FMS to record audio which is NOT from a Microphone object but from flash' SoundMixer?
View 1 Replies
Mar 31, 2011
I connect to the sound of youtube website, how can I bond SoundMixer.computeSpectrum
[Code]...
View 6 Replies
Feb 19, 2009
I use the AS3.0 stated below to control a simple Flash play/stop button to play/stop a mp3 on a webpage. Since I am using about 15 of those players on one page and a lot of visitors are to lazy or unaware to press 'stop' before clicking 'play' on a next player, a 'stopallsounds' would be great: so, whenever a play-button is clicked all the 'earlier' sounds will stop playing.
So, the buttons seem to work fine but the line "SoundMixer.stopAll();" in the playfunction paragraph is not doing what i want it to do; other/earlier sounds just keep playing.
[Code]...
View 0 Replies
Oct 29, 2010
I been trying to find this but no luck so far. Is it possible to get different soundmixer values for two different sounds that are playing at the same time?
At the moment it seems to me that the soundmixer takes the combined sound output for analysis, which si not what I need.
View 2 Replies
Jul 8, 2009
For the past couple of weeks I've been wracking my brains over SoundMixer.computeSpectrum(), arguably the coolest method in ActionScript 3. It's the one that spits out the last 256 (or so) audio samples that hit the speakers, with the option of viewing that data in the time domain (waveform) or the frequency domain (Fourier transform). It's great for visualizing music, but its major drawback is that it only operates on global, playing audio, which means you cannot visualize different channels or preprocess the visualization.
Sound.extract(), a new method in Flash Player 10, gives you a Sound object's entire waveform at any time you want; I've managed to line up the waveform in Sound.extract() perfectly with the waveform in SoundMixer.computeSpectrum(), so they are literally neck-in-neck. In this SWF I'm drawing two lines- a blue line, which uses data from SoundMixer.computeSpectrum(), and a red line, which uses data from
[Code]...
View 11 Replies
Mar 31, 2011
I managed to run my youtube api and SoundMixer.computeSpectrum.SoundMixer.computeSpectrum are online, positionBar, player.getDuration (), player.getCurrentTime () does not work.Everything is running on localhost.I do not know is the security issue,
View 4 Replies
Jan 4, 2011
i'm wondering if there's a way to record live audio from flash' SoundMixer (NOT from the microphone).
View 1 Replies
Aug 31, 2009
I'm trying to use the code below to show a graphical representation of the sound from externally loaded FLVs, as they play.The code I have is below, can I change this to listen for whatever sounds Flash is playing at the moment and computeSpectrum from tha
Code:
var url:String = "song.mp3";
var request:URLRequest = new URLRequest(url);
[code]......
View 5 Replies
Mar 15, 2011
I need to mute the sound in my flash movie via html (flashVars parameter).My code in timeline is:[code]
View 6 Replies
Feb 20, 2012
I am trying to load multiple movies into a single swf. the problem is when I load another swf holding the movie... it keeps playing the sound from that movie even when I change to another one. what I have
ActionScript Code:
import flash.display.SimpleButton;
import flash.display.DisplayObject;
[code]......
View 9 Replies
Aug 25, 2010
I've currently got a flash site written in AS3, into which i'm loading an AS2 SWF that plays audio.The AS2 SWF is loaded into a container movieclip at Frame 10, when a specific navigation button is pressed, the playhead advances to this frame, and calls the SWF. When the user navigates away from this frame, SoundMixer.stopAll(); is called to kill the audio from the loaded AS2 SWF.
This works fine inside of Flash however, when deployed to the browser, the audio playing in the loaded AS2 SWF carries on playing.I've tried loading a new blank SWF in it's place to kill the audio, as well as a blank SWF with stopAll(), all of these solutions work within the Flash IDE (CS4) however the audio always persists in the browser.
Code:
var swfLoader:Loader = new Loader();
holderMC.addChild(swfLoader);
var bgURL:URLRequest = new URLRequest("ytPlayer.swf");
[code]....
View 1 Replies
Aug 10, 2010
am building eLearning courses using a Flash-based AS 3.0 course playerI use SoundMixer.stopAll to stop sounds when progressing through the course, pressing buttons etc also call SWFs made in Captivate into my courses. These SWFs have audio in them. But when I progress through these slides (by clicking a next button), the sound from the captivate made slides overlaps (keeps playing). SoundMixer.stopAll does not seem to work for captivate SWFs
View 1 Replies
Sep 10, 2009
I'm loading and progressively streaming an F4V Video using pure actionscript code (No playback component used) and after the video begins streaming I place a MUTE button on the stage that when clicked executes the SoundMixer.stopAll(); instruction.
When the movie completes playing I use the following code to monitor the NetStream state changes and place a NEXT button on the stage when the video finishes.
When the video completes there is a NetStream event.info.code issued - "NetStream.Play.Stop"
[Code]...
View 2 Replies
Dec 19, 2008
I'm running two flash items on one page, both have sound, and the AS3 swf uses computeSpectrum
I'm getting the following error message:
SecurityError: Error #2121: Security sandbox violation:
SoundMixer.computeSpectrum:
http://dev1.kbrcomm.com/OLA/soundSpectrum_rev2.swf
cannot access
http://dev1.kbrcomm.com/OLA/ICE_intro_rev9.swf.
[Code]...
View 5 Replies
Oct 11, 2009
I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
View 10 Replies
Jun 11, 2010
I am trying to develop a sound visualizer and i have developed OO solution but the problem is I get this error:
SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: widget5.swf cannot access . This may be worked around by calling Security.allowDomain.
at flash.media::SoundMixer$/computeSpectrum()
at widget5/onEnterFrame()
Also if I press continue I get other error
Error: Error #2030: End of file was encountered.
at flash.utils::ByteArray/readFloat()
at widget5/onEnterFrame()
View 3 Replies
Feb 23, 2011
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
View 1 Replies
Jun 4, 2004
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.
View 2 Replies
Nov 2, 2010
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();
[code].....
View 3 Replies
May 4, 2011
I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.
View 2 Replies
Jul 19, 2009
I want to load external png's through this code:
(for this code, check the mcBandPreloader in de .fla file)
Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {
[Code]....
Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?
.fla can be downloaded at [URL]
View 2 Replies