Trying to import an outside .swc into a .as file but I keep getting this error when using the functions. Here is my code:
Code:
package{
import flash.geom.*
import flash.text.*
import flash.display.*;
import flash.events.*;
import flash.utils.Timer;
import flash.media.Sound;
import flash.media.SoundChannel;
import main;
import com.differencegames.dggameapi.events.DGGameEvent;
import com.differencegames.dggameapi.DGGameAPI;
//var n:DGGameAPI
//var t:DGGameEvent
//logDisplay.text="Waiting for API.";
DGGameAPI.create(this.stage,"differencegames.gardendifferences").addEventListener(DGGameEvent.CONTAINER_READY,onApiReady);
public function onApiReady(e:Event=null):void
{
//gotoAndPlay(1,"mainmenu");
}
5006: An ActionScript file can not have more than one externally visible definition
Whats the issue?