Installation and setup
The Dreamsocket Actionscript Media Framework is available as an Adobe Flash Actionscript 2.0 component (Macromedia Flash MX 2004, Macromedia Flash 8, and Adobe Flash CS3), Adobe Flash Actionscript 3.0 component (Adobe Flash CS3), an Adobe Flex Actionscript 3.0 component (Adobe Flex 3), and as Actionscript source code. When used with a Flash IDE the component is bundled as an Adobe extension file (.mxp) and installed through the Adobe/Macromedia Extension Manager application. When used with the Flex 3+ SDK or Flex Builder 3+ the component is bundled as a .swc and can be linked in as an external library file.
You can download your purchased products in the file section of your Account page. All files come in a bundled (.zip) which opens to a folder when double clicked.
Flash Extension
The Adobe/Macromedia Extension Manager is required to install all Flash components. Each component (.mxp) file is located in Extensions folder within the desired/downloaded framework folder that comes packaged in your (.zip) download.
To install a Flash component, you should:
- Close Flash if it is currently running
- Double-click the (.mxp) file.
The Extension Manager will launch and step you through the install process. Once installed, you will see your Dreamsocket installed extension within the Extension Manager. At this point your component is installed and you may quit the Extension Manager and reopen the Flash IDE. The suite of components will now appear in your components panel, which is available in file menu via Window - Components. Note the AS2 and AS3 components need to be installed individually for them both to show up.
SWC (FLEX)
All Flex components are distributed as (.swc) files and require version 3 or above of the Flex SDK or Flex Builder. To install the Flex component (.swc) files for use in your Flex or AIR projects, you need to add them to your build path.
FLEX Builder
To use in Flex Builder you should:
- Select a project in the Flex Navigator view
- Select Project > Properties > Flex Build Path.
- Click on the Library Path tab.
- Select the appropriate option to add the (.swc) files:
- Add SWC Folder (if adding multiple components, lets you add a folder that contain SWC files)
- Add SWC (if adding a single component, adds a specific file)
FLEX MXMLC Compiler - commandline
To use with the mxmlc compiler you should:
- Specify the location of the (.swc) file with the library-path option
The following is an example of including the option in a command line call
mxmlc -library-path+=c:/tools/flex/libs/AS3_MediaDisplayUI.swc c:/myfiles/videoplayer/TestMediaDisplayUI.mxml
FLEX MXMLC Compiler - Ant Task
To use with the Flex Ant tasks you should:
- Create a build.xml to use with Ant
- Create a target that runs the mxml task
- Specify the (.swc) path in the compiler.library-path child node of the mxml task
The following is a sample build.xml file
TODO
At this point your components is installed for your project and is ready for use.
