You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialise correctly.
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();
Then you can add actionscript code that reference any FlashOnDesktop API classes, like File, Window, etc.
import com.asyncria.windowsystem.Window;
import com.asyncria.logging.Log;
Log.log("this window will be maximized");
var window:Window = Window.getWindow();
window.maximize();
Log.log("this window has been maximized");
Now release the swf file, and set it to the main swf of a FOD project. test the generated program and you will see the effects of the code.
- asyncria's blog
- Login or register to post comments


Recent comments
8 weeks 2 hours ago
8 weeks 1 day ago
51 weeks 3 days ago