ActionScript 3 :: Generate Silence Audio Files With Adobe Air
Dec 13, 2011
I want to build an air app that takes input (for example a list of filenames to be generated) from the user and generates sound files with desired naming. The sound files should be an "empty/silence" sound (wav, aif or mp3). Is it possible the generate such a file? If not, can I use an existing sound and embed it into the app and have that as a source when generating the files? The purpose of this is to get a structure of files ready in the project that will be replaced by our Sound Director. This way, we can trigger all sounds before they are created.
I would like to generate a sound in Adobe Air using ByteArray. The sound should be a silence of x seconds. I found this code that I am using to generate the bytes:
private function encode(data : ByteArray) : ByteArray { var channels : uint = 2; var bits : uint = 16;
[Code].....
But when I save the file using Filereference and import it into a flash file I get an error message saying that there were problem reading the file.
this question/challenge is inspired by the 25 lines actionscript contest. i was thinking it would be neat to do an audio entry. but i think there is no way to generate audio using only actionscript. am i wrong? can we fool the player into playing image data?
I would like create a application that can can create folders and short cuts to folders in the file system. The user will click a button and it will put a folder on there desktop that has short cuts to files like //server/folder1/folder2 Can you create a desktop shortcut with code in adobe air? How would you do that? How do you create a folder? I keep thinking this should be easy but i keep missing it.
Why not have the Adobe Flash CS5 product directly generate mp4 and other formats in addition to SWF?From my chair (as an Adobe Flash CS5 user) it
-Going about using other additional software has direct effect on a software budget. -Costs extra manhours to gather information of how it is done. -Costs extra manhours/user time to process. -Perhaps even increases the likelihood for errors and noise in re-processing already processed files (SWF->{F4V,MOV,MP4}) (F4V->{MP4,MOV},)relative to the original source FLA file?
I have some files in my src directory, some are .class files (Java class files) and some are .properties files, when I create the Adobe air native installer these files are not included. Why is that? How can I work around that?
Also it excludes .mxml files, but that's good. I'm sure that's related, how to change what it includes or excludes?
I am looking for an automated/command line means ofgenerating .swf files for the media files I have in my application.At any given time there could be hundreds of videos in thedirectory and the application lets users upload media to theserver. I know how to create .fla, .as files etc for one file usingCS3, but I am hope there is an easier way to generate these swffiles. I am looking at Flex SDK (specifically mxmlc) to write a cronjob, but I wanted to see if people use other methods.
I need to generate SWF or FLA files programmatically using php. Because I want to create a movie(either swf or fla) using sequences of images at my sever.
How to generate .FLA or .SWF files programmatically using php?Are theres any libraries for that?Or at least any APIs for generating those files?
I'm trying to understand if it is possible to generate complex PDF files with Flex. By complex I mean add images, styled text (font-family, weight, columns) layout elements with large degree of control and so on. I was looking at AlivePDF library but cannot understand if it can handle more complicated PDF generation than plain text.
I've been giving a application to work on that uses a Java EE application for the backend, Flash for the front end, and BlazeDS to connect the two. I have never used Flash or BlazeDS, and am trying to get my head around how BlazeDS works.
So far, I understand that when you connect to BlazeDS in FlashBuilder, the remoting-config.xml file is scanned to determine what services exist on the Java end. FlashBuilder asks which of these services you want to import, and what "service package" and "data type package" you want to use.
When you select your Java ExampleService, BlazeDS will create _Super_ExampleService.as and ExampleService.as and put them in your "service package" location. ExampleService.as is empty but extends _Super_ExampleService.as (which basically is a Flash service that you can use to call the methods in your Java service). If you need to add extra methods, you would add them to ExampleService.as. (Hopefully this is all correct, please correct me if I'm wrong)
My problem is I cannot figure out what BlazeDS does for value objects. When you select ExampleService in FlashBuilder (let's assume it's a service for the Example entity), what value objects does BlazeDS create? I would expect Example.as and _SuperExample.as. However, _ExampleEntityMetadata.as also appears.
Is it possible to generate an executable file from a flash executable file? A client has requested a quote from that will allow them to do the following: This whole thing needs to reside on a CD/DVD.
There is a bank of 10 images. The user selects any 5 images they want. The user saves those 5 images as a slideshow / powerpoint / executable file?
Are there other utilities that can do this kind of thing? Is flash the wrong development tool? Are there other tools out there that perform this type of function?
Google has provided no results for me. I've often lurked through the forums here and I thought that maybe the community here may have some answers as I can't seem to find them anywhere.
I know Shared Objects are the standard way to store data from flash, but these seem to have a number of limitations.I'm wondering if it's possible for the flashplayer to manipulate regular files.It's my understanding that through FileReference you can load a file of the user's choice into memory. My question is, would it be possible to manipulate this file then present it back to the user for download? Possibly using javascript to assist?
I understand that it might be possible using server-side technology, but I'm wondering if it can be done without taking hard drive space and bandwidth from the server.
I was wondering if there is any Python library out there which would allow me to generate Flash files (a simple slide show of a bunch of images). I tried installing Ming but was running into some problems, so was wondering if there is any other library out there with better documentation.
I am trying to generate XML of a user selected folder and inner folders along with the files recursively. Structure of the XML generated should be as the user selected folder.
I am able to list all the folders and files in the selected folder. I am unable to find a way to generate the same structure, I am unable to think of a way to replicate the depth of folder in XML. Any ideas to find solutions??
I've got a Java/Flex project that I'm building using Maven. After doing some research I'm using the Flexmojos project [URL] for the Flex part, and almost everything seems to work fine so far (after a bit of struggling). I'm using version 4.0-alpha-5 (4.0-SNAPSHOT didn't seem to work for me).The Flex projects isn't recognized by Eclipse as Flex projects though. If I manually change the .project file and add .actionScriptProperties and .flexProperties files, Eclipse seems to recognize the projects as Flex projects.
I have a movie that consists of various audio files fading in and out of various scenes as the timeline progresses. The current mute button I've created only appears to stop the audio track currently playing when pressed. How do I silence the movie from the point of button release until the movie has played to the end? Just as an FYI, the audio files are loaded and managed manually on the timeline itself.
I would like to do some iPhone development from my Windows box using the Adobe iPhone packager. I get how to do pretty much everything except creating / obtaining the certificates and provisioning files needed to complete the packaging process. What is the easiest and quickest way to get up and running?
Im trying to capture mic data from a swf, stream it to adobe flash media server, and save it as a wav file. Currently I can only stream the mic data to the server and save it in FLV format. how I can covert it to a WAV or save it as a WAV?
When using sound in flash you can also do this with loading an external sound. my sound.load(new URLRequest("audio/mysound.wav")); But when you load an .mp3 file the effect of the sounds keeps playing too late. So I discovered that when you save a audio file to mp3 format there is automatically with any sound editor an insert of 1/2 to 1 second of silence. So i read on the web that this does not happen when you save it to .wav formatBut when saving it to wav format i don't hear the sound in flash anymore, only when i save the wav file, with a compression of MPG,but then there is also silence added automatically. What compression technique you should use when saving it to wav format?
I'm having trouble getting the Adobe Media Encoder CS4 to work properly. I have tried multiple files of different lengths but end up with the same output. Nice video encoding, but the audio starts and then cuts out after a couple of seconds. The longer the video, the shorter the audio works. The logs don't report any issues.
I have tried really hard to find an example showing how to play speex encoded audio in flash. I tried the following code -
var connect_nc:NetConnection = new NetConnection(); connect_nc.connect(null); var stream_ns:NetStream = new NetStream(connect_nc);
[Code]....
I tested the above code with .flv videos and AAC encoded audio files and it works just fine. But when I try stream_ns.play("sample.spx") I get a stream not found exception.
Am I using the wrong container (.spx) for speex audio. Is playing speex audio from a file supported?
I am making a game in AS3 / Adobe AIR that requires the user to react to certain sounds. Is there a way to inform the user up front if the system volume is muted? Moreover, is there a method to change the volume? If not, does an external cross-platform application exist that lets me monitor the volume and that I can call from Adobe AIR?
I'm building a mobile MP3 player with AIR, which streams audio using the Sound class's .load() function. I'd like to cache this audio as it's downloaded, to the the user's SD card. Is this possible without having to download the file twice??