Phoenix00017
6160 posts
|
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!
|
|
|
SavageWolf
767 posts
|
Wow! The API can do all that O_O
Maybe we should have a separate “Kongregate API” topic thingy?
|
|
|
UnknownGuardian
1704 posts
|
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.
|
|
|
skyboy
1230 posts
|
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)
|
|
|
jfabris
5 posts
|
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.
|
|
|
Gl1tch
76 posts
|
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?
|
|
|
rarapompoms
50 posts
|
You’re using import statements inside a class or interface definition, the clue is in the error.
|
|
|
Gl1tch
76 posts
|
No duh –_– . But where do I put them instead?
|
|
|
rarapompoms
50 posts
|
Outside the class or interface definition, the clue is in the error.
|
|
|
Gl1tch
76 posts
|
Screw you troll, get out of here.
|
|
|
Cloud_9ine
2242 posts
|
He wasn’t being a troll. A bit blatant maybe, but the answer was a little obvious.
|
|
|
Cloud_9ine
2242 posts
|
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.
|
|
|
Gl1tch
76 posts
|
Where is there in code besides the class?
Like, where do I put it?
|
|
|
Cloud_9ine
2242 posts
|
Inside the package, outside the class.
|
|
|
Gl1tch
76 posts
|
So, at the top of the .as? Before the actual class starts?
|
|
|
SuperMarioJump
223 posts
|
Yes. It’s really not that hard:
// outside class definition
public class Main extends MovieClip{
// inside class definition
}
|
|
|
jfabris
5 posts
|
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
|
|
|
Cloud_9ine
2242 posts
|
That’s what I’m looking for too, while this stuff works generally, there isn’t enough info!
|
|
|
Syurba
139 posts
|
|
|
|
UnknownGuardian
1704 posts
|
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.
|