When writing applications that work with audio, it's often useful to be able to draw a waveform of the audio. (That is, a static amplitude-vs-time graph, rather than a dynamic graph of frequencies while the audio plays)
Solution
I've written a component that takes an MP3 file and draws its waveform.
The new Flash Player 10.1 NetGroup class supports object replication. You can use this feature to build peer-to-peer file-sharing applications. Has anyone built an app with this functionality?
You'll need the following:
1. http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/
2. http://labs.adobe.com/technologies/flashplayer10/
3. http://labs.adobe.com/technologies/stratus/ OR http://www.adobe.com/products/livecycle/collaborationservice/
Solution
Using the Stratus service you can connect to a peer by passing ID's to one another.
Sending files happen over the netStream class.
Adobe Catalyst Beta is out and although it allows manipulating and creating some great skins, programmers are not off the hook just yet. Sometimes you need that extra knowledge on how to skin Spark component to get your component to look and behave exactly as you need. In this tutorial I will show you how to skin the ButtonBar component so it has a label text and an icon.
Solution
Implementation, which includes the ButtonBar tag pointing to our VerticalButtonBarSkin skin and a click event once the user selected an item. Notice that we define the data we will be passing to the skin, which includes the label text and the icon we will be using to create the button bar image icon.
You want to load a local file to a byte array, without first uploading the file to the server then having to download it back as you have to in Flash Player 9.
Solution
Use the new load() method and data property in the FileReference API of Flash Player 10.
To create a custom context menu in Flex 4, fetching the captions from an XML file.
Solution
Custom items in a context menu can be added the same way in Flex 4 as they are in Flex 3 - by declaring your own ContextMenuItem(s) and adding them to your context menu. The ContextMenuItem can be given a caption as well as an event listener. The captions can be fetched from an XML file using HTTPService.
An SWC library complied with Flex 3 SDK, being added to Flex 4 project and conflicts with Flex 4 namespaces. Similarly, legacy Flex 3 SWF file has to be used within Flex 4 application. Latter can be found in large/legacy applications.
Solution
Implement legacy code within separate Flex application, compile with Flex 3 SDK and embed into Flex 4 application.
If you are not embedding your Pixel Bender, you'll need to load it dynamically and apply it to a display object. This is just a sample code shows you how.
Solution
Use an URL Loader object to load the bytecode. Once it is loaded, use the bytecode to create a Shader object. Create a ShaderFilter object using the Shader object and apply it to a Flash Display object using the filter property setter.