This page describes important details about using id.net for Flash. It provides code that can be used in a AS3 application. We also have AS2 and AS3 example projects.
This SDK uses Flash Player 11 JSON features that are not available prior to Flash CS6. A workaround for CS5 and CS5.5 can be found on Adobe's website here. For Flash Develop, make sure you have the latest Flex SDK. Otherwise, please consider using the Flash CC trial or getting a 1 month subscription.
To avoid security warnings while downloading the SDK from a desktop enviroment, use the flash IDE, or add the output folder to flash's trusted locations.
How it Works
Each time a game is loaded, a small file is downloaded containing the id.net interface. The code on this page explains how to load the id.net file into a Flash project. Complete the following 3 steps to begin using id.net for Flash.
Make a new text file named IDI.as and paste the first code sample in it. Save it to your project's root folder.
Change the appId variable inside the IDI file.
Copy the second code sample into the beginning of your application or on the first frame.
Step 1 and 2
If your app has problems recognizing the IDI file, try importing it on the first line using an import statement. Otherwise, you can try adding it to your library.
See all functions available on the reference page or continue reading about the other features from the main navigation.