home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
HexiomConnect.swf
/
scripts
/
Links.as
< prev
next >
Wrap
Text File
|
2008-08-29
|
2KB
|
68 lines
package
{
import flash.display.Stage;
import flash.events.Event;
import flash.external.ExternalInterface;
import flash.net.URLRequest;
import flash.net.navigateToURL;
public class Links
{
private static var submittedMochibot:Boolean = false;
public static var stage:Stage;
public function Links()
{
super();
}
public static function sponsorLink(param1:Event = null) : void
{
if(!submittedMochibot)
{
submittedMochibot = true;
trace("Submit Mochibot");
MochiBot.track(stage,"24287def");
}
openURL("http://www.kongregate.com/?gamereferral=hexiomconnect");
}
public static function unlockLink(param1:Event = null) : void
{
if(!submittedMochibot)
{
submittedMochibot = true;
trace("Submit Mochibot");
MochiBot.track(stage,"24287def");
}
openURL("http://www.kongregate.com/games/moonkey/hexiom-connect/?gamereferral=hexiomconnect\t\t");
}
public static function rigLink(param1:Event = null) : void
{
openURL("http://rig.newgrounds.com/");
}
public static function biclopsLink(param1:Event = null) : void
{
openURL("http://www.biclopsgames.com");
}
public static function openURL(param1:String) : void
{
var url:String = param1;
try
{
ExternalInterface.call("window.open",url,"_blank","");
}
catch(error:Error)
{
navigateToURL(new URLRequest(url),"_blank");
}
}
}
}