- Package: com.newgrounds.components
- Class: APIConnector
The APIConnector component connects your movie or game to the Flash API. It should be placed on the first frame of your movie to ensure that the connection is established when the movie loads.
The APIConnector's API ID and Encryption Key parameters must be set with your movie's API ID and Encryption Key. For more info, see Getting Started with the API
The APIConnector can optionally display a FlashAd and a Preloader. This is controlled by the connectorType setting.
The APIConnector component is intended for Flash IDE users. Users with a code-based workflow can instead call API.connect