import fog.as3.FogDevAPI;
var FogAPI:FogDevAPI = new FogDevAPI( { id:'YOUR_ID_HERE', root:root } );
FogAPI.Preloader.Start();
| Method | Description |
|---|---|
| SiteLock() |
This method will lock the game to Free Online Games only
|
| isFogDomain() |
This function will return true if the game is being played on a Free Online Games domain, otherwise false.
|
| LibraryCall('SuggestedGamesClip', options:Object) |
@options Object containing settings for displaying suggested games, including position and simple control over color scheme
position Controls the position, variables 'top' or 'bottom'
bar_color Controls the background color (uint)
text_color Controls the text color (uint)
line_color Controls the line color (uint)
Returns
MovieClip
|
| LibraryCall('ScoresUpdate', options:Object) |
@options Object containing the users score
|
| Tracking.GotoURL(url:String) |
@url Full absolute url where you wish to send the player. Must include protocol
|
| Preloader.SetBackground(movie:MovieClip) |
This will set the preloader background to the MovieClip that you specify
|
| Preloader.SetBackgroundColor(color:uint) |
This will set the preloader background color to the a solid color that you specify
|
| Assets.MiniLogo() |
This will return a MovieClip instance of our minilogo
|
| Constant | Description |
|---|---|
| Tracking.HomeURL |
Link: Sends user to Free Online Games Homepage
|
| Tracking.WalkthroughURL |
Link: Sends user to the walkthrough for the current game, if one exists
|
| Tracking.TagURL |
Link: Sends user to the game tag page to play more related games
|
| Tracking.TagURL |
Link: Sends user to the game tag page to play more related games
|
| Tracking.DevURL |
Link: Sends user to FogDev Homepage
|
| Tracking.FGFYWURL |
Link: Sends user to Free Games for your Website Homepage
|