Flash CS3 and the AS3 api: A working example?
Posted: 29 Aug 2007, 15:16
Has anyone managed to get a simple example of the AS3 api working in the Flash CS3 authortime? I want to get a quick Papervision3D multiplayer game built, but it's not happening!
I've got the api all set up at it.gotoandplay.smartfoxserver
and my flash class goes something like this...
... but I get a compilation error. Namely...
I've run into this sort of thing before, and it is usually that the library api is designed for Flex, which seems to use a lot of mx... classes.
Has anybody had better luck? Any inkling at all? AS3 documentation is sparse as hell!
I've got the api all set up at it.gotoandplay.smartfoxserver
and my flash class goes something like this...
Code: Select all
package
{
import it.gotoandplay.smartfoxserver.SmartFoxClient;
import flash.display.MovieClip;
public class Test1 extends MovieClip
{
public function Test1()
{
var sfs:SmartFoxClient = new SmartFoxClient();
}
}
}occuring in it.gotoandplay.smartfoxserver.util.Entities1172: Definition mx.charts:AreaChart could not be found.
I've run into this sort of thing before, and it is usually that the library api is designed for Flex, which seems to use a lot of mx... classes.
Has anybody had better luck? Any inkling at all? AS3 documentation is sparse as hell!