ActionScript 3.0 :: Get A Handle On Embedded Sound Files?
May 7, 2009
From the Sound Class information, it says to use the SoundMixer Class to handle embedded Sound Files. I have two sound files embedded, that I have setup in 2 separate layers, starting at frame one in the main timeline. I needed to do this so I could see the wave files, and coordinate text with the waves. I do not want to load these files into the .swf file at runtime using URLRequest. How do I get a handle on those as they exist, to make each controllable by separate volume and mute controls for each sound?
This will be a challenging question, because, "it can't be done" doesn't work for me. I managed to create a way to use an external classfile to control the main timeline, the ROOT timeline, without having to create a sub movie to root. I can use my component to call play(); as though it were in code in a frame. But it isn't, it's in an external classfile. I passed root to the classfile and told the classfile to think of it as a movieclip - that put the handle on it. I tried similar way with root as a Sound, but that isn't detailed enough - I need to get a handle on the frame that contains the embedded sound file. I embedded, attached it, using the properties view for the frame.
I've attached, or whatever you want to call it, these sound files to a frame, and this frame is or should be attached to the layer I've created. So, under the assumption that the ROOT has everything attached to it in some manner (it is after all the foundation for the COM), the stage of the root contains the visual components, so ROOT has to have the layer objects attached to it, which should have the frame objects attached to the layers. I have two layers that each have a .wav file attached to frame one. Somehow Flash keeps track of that - I want to know how Flash does it so I can read what flash reads.
View 1 Replies
Similar Posts:
Oct 24, 2011
I have a winForm panel that has a flash ative x control embedded in it. This works pretty well.I load the form, add the flash control to the form, then load the .swf file that I wish to play. However, I have a few issues. There is a button in the swf file that is loaded that is marked with an 'x' to denot that it should close the flash plugin.When this button is clicked it pops an internet explorer window and then shows an error dialog box that says: "Internet Explorer cannot download . Unspecified error"There is also a 'Continue' button in the flash movie that shows when the movie is over, and it produces the same behavior when the button is clicked.
For this project we are trying to aviod the usage of the WebBrowser control to host the flash video.Does anyone have any solutions that would allow the application to handle a call that opens a new internet explorer window?EDIT: I have found more details as to what specifically the issue is. The flash file (.swf) has an embedded call to IE:javascript:window.close()This particular call is causing the IE window to pop and then fail. We do not have the ability to change the flash file, is there anyway to handle this call from the windows form and stop it from happening?
View 1 Replies
Feb 25, 2010
In my AS2 Flash game, I play a number of sound files and wait for the "onSoundComplete" message/function before proceeding.The problem is if there is no sound card in the system (or it is disabled in device manager) - everything acts like it is working (no errors, onLoad handler gets "true") - but the sound never actually gets played, and as such, my event never gets triggered.I had planned on dealing with this by hooking into my sound code, and if I detect no sound card, just kick off a timer to wait a few seconds before manually firing the "onSoundComplete" function.The only problem is that I can't reliably find a way to determine if there is a sound card in the system! AS3 seems to handle this quite nicely by passing back a NULL soundchannel - unfortunately I am stuck in AS2.0
View 1 Replies
Feb 9, 2010
I am facing a problem with multiple sound file in one flash file. I have added a background music in my flash and on one of the page, I have published a video. However both sound files are clashing with each other. If I will do stopAllsounds(); on the video frame then while moving on next section the sounds still remains stop.
View 1 Replies
Oct 8, 2009
A gentleman doing the sound track for the video I want to do on Flash has asked me what audio files Flash will handle? I have looked at Adobe and Macromedia and many other Flash websites and, of course, Flash itself, and cannot find any enumeration of what video files Flash handles, much less any mention of what audio files.
View 4 Replies
Jan 20, 2012
I know global variables are supposed to be bad but is it possible to create global classes? I am creating an application and I want to have one class that handles sound. From any class I would like to be able to say soundhandler.playSound(); without having to pass references all over the place. It should just know it is there.
View 1 Replies
Sep 24, 2004
[URL]
can i handle multiple sound through one volume slider by passing parameters and MC instance name?
View 1 Replies
Jun 15, 2010
Can anyone improve on this? Requires Sysinternals Strings
date /T >N:output.txt
net use z: /delete
net use z: \svr-002
[Code].....
Basically it mounts a share as a network drive then runs through the share looking for swf files inside office documents.
View 1 Replies
Feb 27, 2012
We use f4vpp to process MP4 files after they are recorded by FMS. A couple of times now we have noticed that the output of f4vpp stops at exactly 2GB.
Have others here seem this same problem? Is this a limitation of f4vpp? Is it a bug or dependent on our system perhaps?In case it matters: we use f4vpp on linux.
View 8 Replies
May 27, 2010
Is there an open source Flash uploader that can handle files larger than 2 GB? ASP.net implementations like SlickUpload are not an option, and SWFUpload (and others that I've seen) do not handle files larger than 2 GB. Nor is requiring the user to have Java installed to run applets. This would be for both IE and Firefox.
I've seen a couple "large file transfer" sites that have a Flash uploader and claim to go past the 2GB limit (which is the limit for http uploads for most browsers) so I know it is technically possible.
View 2 Replies
Jul 29, 2010
I am looking for a javascript based preloader that can handle .SWF (flash) files. I'm very much aware that it is possible to preload a flash file by using another flash file, but I was wondering if anyone knows about an AJAX preloader that can load swfs (also, a progressEvent would be a nice extra) and then add the flash file to the HTML document. I did quite some googling but it seems that there is no such thing out there. Is it überhaupt possible?
View 2 Replies
Nov 20, 2009
Am making an xml-driven boardgame and was wondering if there is an established methodology for handling fairly large amounts of xml? I'm pretty familiar with working with small amounts of xml and have my loader class in place, etc. However, I'm unsure as how best to handle the sequencing of loading in several xml files, where to store the data once it is loaded and then cascade it down to the various classes which will use the data.
View 1 Replies
Feb 6, 2010
I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).
[Code]....
View 7 Replies
Sep 15, 2008
I wonder if there is a way to detect if an FLV has sound embedded in it. I have various videos that I am streaming in and some have sound and some don't. Those that don't, I want to hide the volume controls and mute button and (you guessed it) those that do have sound, I want to show the volume controls, etc...
I know that I could make an extra flag in my XML file that describes the videos but I am wondering if there is any fancy pants way of using some sort of built-in, unpublished sound detection within the NetStream or NetStatus Event.
View 3 Replies
Sep 14, 2005
I've been sent a FLA with some voice overs in and need to edit a few words out. The original MP3 files are not available so how I can edit the voice overs in flash without the original mp3 files?
View 5 Replies
Sep 1, 2009
I have a simple MP3 file that I am attaching from a library and playing using Sound object.When testing SWF on it's own, it works fine, but I have to embed the SWF into another SWF (container) using loadMovie, AND, the sound not playing??? What can be wrong?
child.swf code:
var mySound:Sound = new Sound();
// in the library MP3 is set for export as "voiceoverclip"
[code]....
View 2 Replies
Feb 23, 2011
Searching for how to change the volume of sounds, I always get this irritating snd=new Sound(URLRequest), followed by snd.setVolume(val). Oh, fine, but my sound is not an URLRequest, it's an embed.
I've made a lot of random attempts (1) to no avail. How am I supposed to do that instead?
(1) including casting my class to Sound, creating a Sound with the embed class as argument, creating a SoundTransform and setting it to the channel, etc.
View 1 Replies
Aug 28, 2009
Is there any way we can stop the sound embeded in timeline directly?
We have an application that load SWF dynamically. These external SWF are not created by our company and other company has embed the sound in timeline. without use of any actionscript or anything.
Now we need to provide the MUTE option for our user, is there any way We can simply disable all kind of sound in any mode from our ActionScript code.
View 2 Replies
Feb 24, 2010
I'm using SWFKit to create a native windows app from flash project. I want to embed video in project via SWFKit and then use it in flash.
Looks like I've found a way to embed external file but I can't find manual about how to access this embedded file via ActionScript in flash movie.
So the question is how can I access file "bridge.flv" in compiled project using ActionScript?
View 1 Replies
Oct 3, 2005
Is there a way to control the sound of an embedded flv in a flash movie? I haven't seen any tutorials on controlling the sound volume for an embedded video vs. netstream.
View 5 Replies
Jul 1, 2009
I've got a game I made just to play with AS3. But I'm having an issue with the sound. Playing the swf file will play the sound, but when embedded I hear nothing. The code for calling the sound:
Code:
import flash.media.SoundMixer;
SoundMixer.stopAll();
import flash.media.Sound;
import flash.media.SoundLoaderContext;
import flash.net.URLRequest;
[Code] .....
View 4 Replies
Jan 12, 2011
how to disable sound from an embedded flash object with html?
View 1 Replies
Feb 25, 2009
I am developing a flash web site using ACTIONSCRIPT 3. There is a menu of small icons that, when one of them is clicked, the program loads the correspondent SWF into a loader and then presents it in a "virtual screen" ( a rectangular area ) in the web page. The problem is that some of these child SWFs have an embedded background sound and I DO NOT KNOW how to mute them from the main SWF when a user decides to do so by clicking a "mute" button.
Each SWF embedded sound has its own layer in its timeline and is set as Sync: Event, Repeat:1.
View 3 Replies
Apr 29, 2009
I tried to emded a youtube movie into a flash file, and that all seems to be working:
Code:
createEmptyMovieClip("video_mc", 10000);
video_mc._x = 150;
video_mc._y = 5;
[Code].....
So basically the question is: how can I stop streaming sound from keeping on playing even when jumping to another frame?
View 1 Replies
Dec 10, 2006
I can't seem to download the flash files from the address.i click on page info and find the embeded flash,but can't download it. Another, how can I convert flash files from youtube to my ipod? I found an excellent flv converter, but not knew if it could convert flash from youtube.How to make flash suitalbe for youtube?
View 4 Replies
Sep 4, 2009
I am new to Flash and this may sound, well dumb but here it goes. I have taken some video files from Final Cut Pro converted them to FLV's imported them and embedded them into flash to create some banners for the web. I need to know what settings I should use to get these out of Flash for the web.
Also I need to send them to someone to look at before publishing. What would be the best format to do that in and how to do it.
Also has anyone has any experience creating banners in or online ads in a Video format like FCP and embedding them into a flash file to export them in flash for we publishing. Sorry again for the dumb question, just new to Flash.
View 4 Replies
Dec 11, 2009
I have a Flash site that has two separate areas of navigation: "root.swf" is the main file and by default loads "welcome.swf". If you click on one of three other links in "root", it takes you to one of those three pages.
I need to have various .flv files play individually on command from the timeline (when separate buttons are clicked), but I need those to load externally but appear as though they are a part of "welcome.swf". [code]...
View 3 Replies
Jan 19, 2011
I need to protect images embedded in a swf file. I've noticed Swf Encrypt scrambles the images, like so:
How is something like this achieved ? How does image scrambling work ? I've noticed the image is stored a bitmap. Not sure how information is stored.I imagine it would be possible to use something like AS3SWF to access the content of a swf, but what would I need to change for the image swf tags ? I don't know much about security/obfuscation/encryption, so any tips will be handy. The programming language for this shouldn't matter much.
View 1 Replies
Apr 20, 2011
Quote:
Originally Posted by northmantif
do you get any error? If #2044 you need to understand that path you give for the request is not always the same testing in flash, and on the server, because if you put your movie.swf to the index.html then, your domino.jpg file needs to be in the same directory as index.html. And does not matter if swf still is placed in the same dir as images, because now your swf moves to different location (index.html)
I'm not getting an error message, so I assume the AS is written correctly. That's what's so confusing. The files are not upload to a server yet -- everything is local. What happens is, let's say, I use FF to view the html file, after clicking a thumbnail, it directs to a page that reads: File not found Firefox can't find the file at /Users/name/Desktop/SITES/grdn_page/elleJapan.jpg.
I put the jpegs and the html in the same folder?
View 2 Replies
Mar 12, 2011
In Flash MX 2004 Pro. I have embedded the video in which needs to load several external FLV files. These are the problem: In my main file I have a sound object (music) and then load the video when I reduce the volume of the music of the main file to 0 that the louder the sound from FLV videos. The problem is that when the music died down to 0 to mute the sound with FLV videos to 0.How to separate audio from FLV videos from sound of music and how to separately control the volume loaded FLV file?This is the code that I use:
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
[code].....
View 1 Replies