Blogs

Async Flash Studio - Write A Sample Extension(Part 2)

In the first part(link here), we show you how to write a simple extension for AFS, and compile it in C++ environment. In this part, we will continue to interpret the usage of the compiled extension in Async Flash Studio.
Now we have got a dynamic linked library "Extension.ext", just copy the file into the "extensions" directory of AFS, typically

"C:\Program Files\aSyncRIA\Async Flash Studio\extensions\"

Usage of FlashOnDesktop component in Flash CS4

In this article, we will show you the usage of FlashOnDesktop component.
Firstly, In order to make Flash CS4 find FlashOnDesktop component, take the same steps as in this AFS tutorial, then launch Adobe Flash CS4, create a new flash file, and add FlashOnDesktop component to the library.
You must first init FlashOnDesktop framework, which is done by following code:

import com.asyncria.FOD;

FOD.init();

Async Flash Studio Tutorial - Write a sample extension (Part 1)

Introduction

Async Flash Studio(AFS) offers interfaces to extend its functions. There are two kinds of extensions, synchronous and asynchronous. Since synchronous extension may block UI actions, asynchronous extension is the recommended kind of extension.

An AFS extension is a dynamic linked library file that implements pre-defined interfaces. The interface header files are located at "sdk" sub-directory in AFS installed directory.

Request and Response

Async Flash Studio Tutorial - Debug in Flex Builder

Flex Builder is a great actionscript 3 developing environment. It provides plenty of functions to help debug your actionscript code, including Call Stack,BreakPoint,Expression Watching,etc. To use the debug function of Flex Builder, A swf or html file must be launched, as show in the following dialog.

For AFS, The swf file is embeded into an execution file. which is not accepted for debugging in Flex Builder. In order to debug your actionscript code in the swf file, you need to launch your execution file by yourself. The steps to do is:

Async Flash Studio Tutorial - Use AFS framework in Flash CS4

Most designers use Adobe Flash as their flash authoring tool. AFS framework supports Adobe Flash integration. You can use AFS framework as a component. Following are the steps to do in order to make AFS framework work in Adobe Flash CS4.

  1. Download and install Async Flash Studio.
  2. In the installing directory of AFS, find framework.swc in sdks/framework sub directory. Copy framework.swc to Flash CS4 component directory, typically common/Configuration/Components.

Async Flash Studio API Documentation

After refractoring of the API, and lots of bugs are fixed, the new version of Async Flash Studio is out finally. It is AFS 2.5 now. The new API documentation is also out, you can read it online or download it. You can also find the API documention in the installed directory of AFS after downloading and installing it.

Async Flash Studio Tutorial - Multiple Windows

In this tutorial, we will show you the "UNIQUE Multiple Window Support" in AFS. It gives the ability to inter-operate between multiple native windows, which is impossible with old flash projector creator except the new released Adobe AIR framework.

Prerequisite

Before you go further, ensure you have read Helloworld tutorial, and know how to build a flash projector with AFS.

Introduction

Async Flash Studio Tutorial - Hello World

In this tutorial, You will be shown how to build a simple desktop application with Async Flash Studio.

Prerequisite


This tutorial assumes that you have some basic knowledge of, or programming experience with, the following technologies.

  • Flex 3 and actionscript 3

Software Needed for This Tutorial


Before you begin, you need install following software on your computer

  • Async Flash Studio(AFS) 2.0.1 download

Finally, Async Flash Studio 2.0 is out

Download and Try AFS 2.0 Now!

It is over 3 months since the release of Async Flash Studio(AFS) 1.1. Here comes the breaking news: AFS 2.0 is released finally. There are a lot of changes and improvements, and following is the release notes.

  • The core code is completely refractored.
  • New UI is adopted, and Project Wizard is added.

Passing Data to Swf Loaded by SWFLoader

SWFLoader can be used to load an external flash movie file into the current stage. All that you need to do is to set the source property of SWFLoader. What's more, if you want to passing additional data to the being loaded swf, try passing the data as query strings.

<mx:SWFLoader source="player.swf?movie=video.flv" />

Well, until now it works fine, but how can we pass more data into the swf? You may do as follows.

<mx:SWFLoader source="flvplayer.swf?movie=video.flv&autoplay=true" />
Syndicate content