[NEW!!!] Official API Documentation

Subscribe to [NEW!!!] Official API Documentation 20 posts, 10 voices

Sign in to reply


 
avatar for Phoenix00017 Phoenix00017 6160 posts
Flag Post

As some of you may have noticed, BenV completely rewrote our documentation for our APIs in our new Kongregate APIs page. You can get to this page easily by using the link in the Developers sub navigation bar at the top of the screen.

These new pages contain the most up-to-date information and are more concise and specific than the old threads have become. Because a number of changes have been made in how we handle our APIs and what features we have, we’ve decided to un-sticky and lock the older threads – too much of the information is just simply wrong at this point that we worry that keeping them around will continue to confuse people.

After reading the docs, we highly encourage you to continue posting questions about the APIs in this forum. We’ll let you guys decide on a format for these posts, be it one thread per API or a thread per question or whatever.

We’re trying to avoid mammoth threads on the topic, so please don’t post all API questions in this one. However, if you have any questions specific to the documentation pages (possible typos, missing information, etc.) do please let us know in this thread. Thanks!

 
avatar for SavageWolf SavageWolf 766 posts
Flag Post

Wow! The API can do all that O_O

Maybe we should have a separate “Kongregate API” topic thingy?

 
avatar for UnknownGuardian UnknownGuardian 1700 posts
Flag Post

Whoa! Microtransactions! IFrames! Chat! Nice APIs.

EDIT: Error on this page where in the first paragraph(overview) you say “support for the AS2 drawing API.”, while everywhere else you talk only about AS3.

 
avatar for skyboy skyboy 1230 posts
Flag Post

i would like to point out that on those pages the screen shot is of the old flash chat, which can no longer receive messages (everything else works, including sending, and logging in did a few months back… i still have a copy of it that’s included into the chat exe i had made)

 
avatar for jfabris jfabris 5 posts
Flag Post

I have been looking for 20 minutes and I can’t find any API.
An API is a list of all the classes and functions in a library.
All I can find is some explanations of some of the features, with very little example code.

 
avatar for Gl1tch Gl1tch 76 posts
Flag Post

So, I read that whole thing, or I tried to. My eyes glazed over and was very confused. So I entered the code in the onLoad of one of my .as’s and got these errors:

Import statements are not allowed inside class or interface definitions.

I got this error every time I tried to use any of the “import flash.something or others” (import flash.display.LoaderInfo;)

What am I doing wrong?

 
avatar for rarapompoms rarapompoms 50 posts
Flag Post

You’re using import statements inside a class or interface definition, the clue is in the error.

 
avatar for Gl1tch Gl1tch 76 posts
Flag Post

No duh –_– . But where do I put them instead?

 
avatar for rarapompoms rarapompoms 50 posts
Flag Post

Outside the class or interface definition, the clue is in the error.

 
avatar for Gl1tch Gl1tch 76 posts
Flag Post

Screw you troll, get out of here.

 
avatar for Cloud_9ine Cloud_9ine 2242 posts
Flag Post

He wasn’t being a troll. A bit blatant maybe, but the answer was a little obvious.

 
avatar for Cloud_9ine Cloud_9ine 2242 posts
Flag Post

Also, I liked the old API format the felt like an F1 Docsfile in flash. I feel it can help in showing little bits here and there and helps make experimenting a bit easier.

 
avatar for Gl1tch Gl1tch 76 posts
Flag Post

Where is there in code besides the class?

Like, where do I put it?

 
avatar for Cloud_9ine Cloud_9ine 2242 posts
Flag Post

Inside the package, outside the class.

 
avatar for Gl1tch Gl1tch 76 posts
Flag Post

So, at the top of the .as? Before the actual class starts?

 
avatar for SuperMarioJump SuperMarioJump 223 posts
Flag Post

Yes. It’s really not that hard:

// outside class definition
public class Main extends MovieClip{

    // inside class definition

}
 
avatar for jfabris jfabris 5 posts
Flag Post

Could someone please post the link of the exact page where the API is, by API I mean a list of all the classes and functions in the Kongregate API

 
avatar for Cloud_9ine Cloud_9ine 2242 posts
Flag Post

That’s what I’m looking for too, while this stuff works generally, there isn’t enough info!

 
avatar for Syurba Syurba 139 posts
Flag Post

yay documentations!

 
avatar for UnknownGuardian UnknownGuardian 1700 posts
Flag Post
Originally posted by Cloud_9ine:

That’s what I’m looking for too, while this stuff works generally, there isn’t enough info!

There is plenty. Look under the statistics API. You load Kongregates’ API througth a .swf and call functions from it.

Sign in to reply


Click Here