Section 1
//Action_4 (thefinalsnowgame_fla.Action_4)
package thefinalsnowgame_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class Action_4 extends MovieClip {
public function Action_4(){
addFrameScript(0, frame1);
}
public function onComplete(_arg1:Event):void{
MovieClip(parent).gotoAndPlay("loaded");
}
public function progressHandler(_arg1:ProgressEvent):void{
var _local2:int;
_local2 = Math.round(((_arg1.target.bytesLoaded / _arg1.target.bytesTotal) * 100));
MovieClip(parent).gotoAndStop(_local2);
}
function frame1(){
MovieClip(root).stop();
if (root.loaderInfo.bytesLoaded == root.loaderInfo.bytesTotal){
MovieClip(parent).gotoAndPlay("loaded");
};
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);
root.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
}
}//package thefinalsnowgame_fla
Section 2
//loadED_5 (thefinalsnowgame_fla.loadED_5)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class loadED_5 extends MovieClip {
public function loadED_5(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package thefinalsnowgame_fla
Section 3
//NG_AD_OBJECT_WITH_PRELOADER_1 (thefinalsnowgame_fla.NG_AD_OBJECT_WITH_PRELOADER_1)
package thefinalsnowgame_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.net.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.xml.*;
public dynamic class NG_AD_OBJECT_WITH_PRELOADER_1 extends MovieClip {
public var ng_ad:MovieClip;
public var NG_Button:SimpleButton;
public function NG_AD_OBJECT_WITH_PRELOADER_1(){
addFrameScript(0, frame1);
}
public function loadNGSite(_arg1:Event){
NewgroundsAPI.loadNewgrounds();
}
public function startAd(_arg1){
var _local2:URLLoader;
_local2 = new URLLoader(new URLRequest(_arg1));
_local2.addEventListener(Event.COMPLETE, ad_Loaded);
}
function frame1(){
Security.allowDomain("70.87.128.99");
Security.allowInsecureDomain("70.87.128.99");
Security.allowDomain("ads.shizmoo.com");
Security.allowInsecureDomain("ads.shizmoo.com");
Security.allowDomain("www.cpmstar.com");
Security.allowInsecureDomain("www.cpmstar.com");
Security.allowDomain("server.cpmstar.com");
Security.allowInsecureDomain("server.cpmstar.com");
if (NewgroundsAPI.getAdURL()){
startAd(NewgroundsAPI.getAdURL());
};
NewgroundsAPI.addEventListener(NewgroundsAPI.ADS_APPROVED, startAd);
NG_Button.addEventListener(MouseEvent.CLICK, loadNGSite);
stop();
}
public function ad_Loaded(_arg1:Event){
var _local2:*;
var _local3:Loader;
_local2 = String(_arg1.target.data);
_local3 = new Loader();
_local3.load(new URLRequest(_local2));
ng_ad.addChild(_local3);
}
}
}//package thefinalsnowgame_fla
Section 4
//NG_TANK_9 (thefinalsnowgame_fla.NG_TANK_9)
package thefinalsnowgame_fla {
import flash.events.*;
import flash.display.*;
public dynamic class NG_TANK_9 extends MovieClip {
public var NG_Logo:SimpleButton;
public function NG_TANK_9(){
addFrameScript(0, frame1);
}
public function loadNGSite(_arg1:Event){
NewgroundsAPI.loadNewgrounds();
}
function frame1(){
NG_Logo.addEventListener(MouseEvent.CLICK, loadNGSite);
}
}
}//package thefinalsnowgame_fla
Section 5
//Timeline_14 (thefinalsnowgame_fla.Timeline_14)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_14 extends MovieClip {
public var bar:MovieClip;
public var bargfx:MovieClip;
public var tank:MovieClip;
public function Timeline_14(){
addFrameScript(50, frame51);
}
function frame51(){
stop();
}
}
}//package thefinalsnowgame_fla
Section 6
//Timeline_18 (thefinalsnowgame_fla.Timeline_18)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_18 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc5:MovieClip;
public var mc2:MovieClip;
public var mc0:MovieClip;
public var mc4:MovieClip;
}
}//package thefinalsnowgame_fla
Section 7
//Timeline_21 (thefinalsnowgame_fla.Timeline_21)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_21 extends MovieClip {
public var mc1:MovieClip;
public var mc0:MovieClip;
}
}//package thefinalsnowgame_fla
Section 8
//Timeline_23 (thefinalsnowgame_fla.Timeline_23)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_23 extends MovieClip {
public var mc0:MovieClip;
}
}//package thefinalsnowgame_fla
Section 9
//Timeline_24 (thefinalsnowgame_fla.Timeline_24)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_24 extends MovieClip {
public var mc1:MovieClip;
public var mc2:MovieClip;
public var mc0:MovieClip;
}
}//package thefinalsnowgame_fla
Section 10
//Timeline_28 (thefinalsnowgame_fla.Timeline_28)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_28 extends MovieClip {
public var mc1:MovieClip;
public var mc3:MovieClip;
public var mc2:MovieClip;
public var mc0:MovieClip;
}
}//package thefinalsnowgame_fla
Section 11
//Timeline_33 (thefinalsnowgame_fla.Timeline_33)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_33 extends MovieClip {
public var mc0:MovieClip;
}
}//package thefinalsnowgame_fla
Section 12
//Timeline_38 (thefinalsnowgame_fla.Timeline_38)
package thefinalsnowgame_fla {
import flash.display.*;
public dynamic class Timeline_38 extends MovieClip {
public function Timeline_38(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package thefinalsnowgame_fla
Section 13
//X_LOAD_2 (thefinalsnowgame_fla.X_LOAD_2)
package thefinalsnowgame_fla {
import flash.events.*;
import flash.display.*;
public dynamic class X_LOAD_2 extends MovieClip {
public var NGButton:SimpleButton;
public function X_LOAD_2(){
addFrameScript(100, frame101, 150, frame151, 164, frame165);
}
function frame151(){
NGButton.addEventListener(MouseEvent.CLICK, PlayMovie);
}
function frame165(){
stop();
}
public function PlayMovie(_arg1:Event){
gotoAndStop("end");
MovieClip(root).play();
}
function frame101(){
play();
}
}
}//package thefinalsnowgame_fla
Section 14
//clear (clear)
package {
import flash.display.*;
public dynamic class clear extends MovieClip {
}
}//package
Section 15
//main (main)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
public class main extends MovieClip {
public var size:Number;// = 0
public var finalscore:TextField;
public var backgrounda:BitmapData;
public var backgroundb:MovieClip;
public var bg:Bitmap;
public var timer:int;// = 1500
public var key:userinteract;
public var guy:MovieClip;
public var ground:MovieClip;
public var score:int;// = 0
public var playe:MovieClip;
public var scorebox:TextField;
public var ball:MovieClip;
public function main(){
guy = new player();
ball = new snowball();
playe = new MovieClip();
size = 0;
key = new userinteract(stage);
backgrounda = new BitmapData(550, 350, false, 4294967295);
backgroundb = new clear();
ground = new snowground();
bg = new Bitmap(backgrounda);
score = 0;
timer = 1500;
super();
addFrameScript(0, frame1, 14, frame15, 23, frame24, 38, frame39);
}
public function nextscreen(_arg1:MouseEvent){
play();
stage.removeEventListener(MouseEvent.MOUSE_DOWN, nextscreen);
}
function startgame(){
var _local1:Timer;
size = 0;
score = 0;
timer = 3500;
backgrounda.draw(backgroundb, backgroundb.transform.matrix);
addChild(bg);
bg.visible = true;
playe.x = 300;
playe.y = 200;
addChild(playe);
ball.x = 0;
ball.y = 0;
ball.scaleX = size;
ball.scaleY = size;
playe.addChild(ball);
guy.x = 0;
guy.y = 20;
playe.addChild(guy);
_local1 = new Timer(20);
_local1.addEventListener(TimerEvent.TIMER, loop);
_local1.start();
}
function frame1(){
NewgroundsAPI.linkAPI(this);
NewgroundsAPI.connectMovie(4575);
}
function frame24(){
stop();
startgame();
}
function tellscore(){
finalscore.text = (("your snowball weights " + score) + " pounds");
}
function frame15(){
stop();
clicktoplay();
}
function frame39(){
stop();
clicktoplay();
tellscore();
}
function endgame(){
playe.removeChild(ball);
playe.removeChild(guy);
bg.visible = false;
play();
}
public function loop(_arg1:TimerEvent){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
if (timer < 1){
endgame();
_arg1.target.removeEventListener(TimerEvent.TIMER, loop);
};
ground.x = playe.x;
ground.y = playe.y;
ground.scaleX = size;
ground.scaleY = size;
timer = (timer - 1);
backgrounda.draw(ground, ground.transform.matrix);
score = (size * 100);
scorebox.text = ((("Snowball size: " + String(score)) + " Time Left: ") + String(timer));
ball.scaleX = size;
ball.scaleY = size;
guy.y = (20 * size);
_local2 = Math.sin((((playe.rotation + 90) / 180) * Math.PI));
_local3 = Math.cos((((playe.rotation + 90) / 180) * Math.PI));
_local4 = Math.sin((((playe.rotation + 110) / 180) * Math.PI));
_local5 = Math.cos((((playe.rotation + 110) / 180) * Math.PI));
_local6 = Math.sin((((playe.rotation + 70) / 180) * Math.PI));
_local7 = Math.cos((((playe.rotation + 70) / 180) * Math.PI));
if (key.L){
playe.rotation = (playe.rotation - 5);
};
if (key.R){
playe.rotation = (playe.rotation + 5);
};
if (key.U){
if (backgrounda.getPixel(((playe.x - (_local3 * 2)) - ((_local3 * 20) * size)), ((playe.y - (_local2 * 2)) - ((_local2 * 20) * size))) == 0xFFFFFF){
if (backgrounda.getPixel(((playe.x - (_local5 * 2)) - ((_local5 * 20) * size)), ((playe.y - (_local4 * 2)) - ((_local4 * 20) * size))) == 0xFFFFFF){
if (backgrounda.getPixel(((playe.x - (_local7 * 2)) - ((_local7 * 20) * size)), ((playe.y - (_local6 * 2)) - ((_local6 * 20) * size))) == 0xFFFFFF){
ball.play();
playe.x = (playe.x - _local3);
playe.y = (playe.y - _local2);
if (size > 0.2){
size = (size + 0.001);
} else {
size = (size + 0.002);
};
};
};
};
};
}
public function clicktoplay(){
stage.addEventListener(MouseEvent.MOUSE_DOWN, nextscreen);
}
}
}//package
Section 16
//NewgroundsAPI (NewgroundsAPI)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public class NewgroundsAPI {
public static const ADS_APPROVED:Number = 3;
public static const bridge:Sprite = new Sprite();
private static const STAT_NEW_VERSION:Number = 4;
private static const STAT_AUTHOR_SITE:Number = 2;
private static const GATEWAY_URL:String = "http://www.ngads.com/gateway.php";
private static const NEWGROUNDS_URL:String = "http://www.newgrounds.com";
private static const STAT_CUSTOM_STATS:Number = 50;
private static const STAT_MOVIE_VIEWS:Number = 1;
private static const STAT_NEWGROUNDS:Number = 3;
public static const NEW_VERSION:Number = 2;
public static const DENY_HOST:Number = 1;
private static var tracker_id:Number;
private static var movie_options:Object = new Object();
private static var connected:Boolean;
private static var custom_events:Object = new Object();
private static var host:String;
private static var linked:Boolean;
private static var events:Object = new Object();
private static var debug:Boolean;
private static var version:String;
private static var custom_links:Object = new Object();
public static function getNewVersionURL(){
return (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + STAT_NEW_VERSION));
}
private static function ReadGatewayData(_arg1:Object){
var _local2:*;
var _local3:String;
var _local4:*;
var _local5:URLLoader;
for (_local2 in _arg1) {
_arg1[_local2] = unescape(_arg1[_local2]);
movie_options[_local2] = _arg1[_local2];
};
if (_arg1["settings_loaded"]){
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage((("Movie Identified as '" + movie_options["movie_name"]) + "'"));
if (movie_options["message"]){
SendMessage(movie_options["message"]);
};
if (movie_options["ad_url"]){
SendMessage("Your movie has been approved to run Flash Ads");
if (events[ADS_APPROVED]){
var _local6 = events;
_local6[ADS_APPROVED](movie_options["ad_url"]);
} else {
onAdsApproved(movie_options["ad_url"]);
};
};
if (((movie_options["movie_version"]) && (!((String(movie_options["movie_version"]) == String(version)))))){
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
if (events[NEW_VERSION]){
_local6 = events;
_local6[NEW_VERSION]({version:movie_options["movie_version"], real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onNewVersionAvailable(movie_options["movie_version"], getMovieURL(), getNewVersionURL());
};
};
if (movie_options["deny_host"]){
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
if (events[DENY_HOST]){
_local6 = events;
_local6[DENY_HOST]({host:host, real_url:getMovieURL(), redirect_url:getNewVersionURL()});
} else {
onDenyHost(host, getMovieURL(), getNewVersionURL());
};
};
if (movie_options["request_portal_url"]){
_local3 = bridge.root.loaderInfo.url;
_local4 = ((((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_local3));
_local5 = new URLLoader(new URLRequest(_local4));
};
if (events[69]){
_local6 = events;
_local6[69]();
};
} else {
if (!movie_options["settings_loaded"]){
SendError("Could not establish connection to the API gateway.");
};
};
}
public static function setMovieVersion(_arg1){
if (!_arg1){
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = String(_arg1);
};
}
public static function loadCustomLink(_arg1:String){
if (!_arg1){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else {
if (!custom_links[_arg1]){
SendError(("Attempted to open undefined custom link: " + _arg1));
} else {
SendLink(custom_links[_arg1]);
};
};
}
public static function addCustomLink(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(((("Created custom link " + _arg1) + ": ") + _arg2));
};
};
}
public static function getMovieURL(){
if (movie_options["movie_url"]){
return (movie_options["movie_url"]);
};
return ("Newgrounds.com");
}
public static function debugMode(){
debug = true;
}
public static function getAdURL(){
return (movie_options["ad_url"]);
}
private static function SendStat(_arg1:Number, _arg2:Boolean, _arg3=null){
var target_url:*;
var XML_Loaded:Function;
var x:*;
var request:URLRequest;
var gateway_loader:URLLoader;
var stat_id = _arg1;
var open_in_browser = _arg2;
var extra = _arg3;
if (!tracker_id){
SendError("You must call NewgroundsAPI.connectMovie() with a valid movie id before using API features!");
} else {
XML_Loaded = function (_arg1:Event){
var _local2:XML;
var _local3:Object;
var _local4:XMLList;
var _local5:XML;
var _local6:*;
var _local7:*;
XML.ignoreWhitespace = true;
_local2 = XML(_arg1.target.data);
_local3 = new Object();
_local4 = _local2.children();
for each (_local5 in _local4) {
_local6 = _local5.localName();
_local7 = _local5.attribute("value");
if (_local7 == Number(_local7)){
_local7 = Number(_local7);
};
_local3[_local6] = _local7;
};
ReadGatewayData(_local3);
};
target_url = (((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id) + addSeed());
if (extra){
for (x in extra) {
target_url = (target_url + ((("&" + escape(x)) + "=") + escape(extra[x])));
};
};
if (debug){
target_url = (target_url + "&debug=1");
};
if (open_in_browser){
request = new URLRequest((target_url + addSeed()));
navigateToURL(request, "_blank");
} else {
gateway_loader = new URLLoader(new URLRequest((target_url + addSeed())));
gateway_loader.addEventListener(Event.COMPLETE, XML_Loaded);
};
};
}
public static function onAdsApproved(_arg1:String){
}
public static function loadMySite(_arg1:Event=null){
SendLink(STAT_AUTHOR_SITE);
}
private static function SendMessage(_arg1:String){
}
public static function linkAPI(_arg1){
_arg1.addChild(bridge);
linked = true;
}
public static function loadNewgrounds(_arg1:Event=null, _arg2:String=null){
var _local3:URLRequest;
var _local4:*;
if (!tracker_id){
_local3 = new URLRequest(((NEWGROUNDS_URL + "/") + _arg2));
navigateToURL(_local3, "_blank");
} else {
_local4 = null;
if (_arg2){
_local4 = new Object();
_local4.page = _arg2;
};
SendLink(STAT_NEWGROUNDS, _local4);
};
}
private static function SendLink(_arg1, _arg2=null){
SendStat(_arg1, true, _arg2);
}
public static function logCustomEvent(_arg1:String){
if (!_arg1){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else {
if (!custom_events[_arg1]){
SendError(("Attempted to log undefined custom event: " + _arg1));
} else {
SendEvent(custom_events[_arg1]);
};
};
}
private static function SendError(_arg1:String){
}
public static function addCustomEvent(_arg1:Number, _arg2:String){
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
if (!_arg2){
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[_arg2] = (STAT_CUSTOM_STATS + _arg1);
SendMessage(("Created custom event: " + _arg2));
};
};
}
private static function addSeed(){
return (("&seed=" + Math.random()));
}
public static function addEventListener(_arg1:Number, _arg2:Function){
events[_arg1] = _arg2;
}
private static function SendEvent(_arg1){
SendStat(_arg1, false);
}
public static function onNewVersionAvailable(_arg1:String, _arg2:String, _arg3:String){
var sw:*;
var sh:*;
var tw:*;
var th:*;
var mg:*;
var _root:*;
var overlay:MovieClip;
var overlay_x:*;
var overlay_y:*;
var close_x:*;
var blankarea:TextField;
var header:TextField;
var header_format:TextFormat;
var msgtext:TextField;
var msgtext_format:TextFormat;
var msgtext_link:TextFormat;
var version = _arg1;
var movie_url = _arg2;
var redirect_url = _arg3;
sw = bridge.stage.stageWidth;
sh = bridge.stage.stageHeight;
tw = 350;
th = 160;
mg = 20;
_root = bridge.root;
overlay = new MovieClip();
overlay.graphics.beginFill(0, 0.6);
overlay.graphics.lineStyle(0, 0);
overlay.graphics.drawRect(0, 0, sw, sh);
overlay.graphics.endFill();
overlay_x = Math.round(((sw - tw) / 2));
overlay_y = Math.round(((sh - th) / 2));
overlay.graphics.beginFill(102);
overlay.graphics.lineStyle(10, 0);
overlay.graphics.drawRect((overlay_x - mg), (overlay_y - mg), (tw + mg), (th + mg));
overlay.graphics.endFill();
overlay.close = function (_arg1:Event){
_root.removeChild(overlay);
};
close_x = new MovieClip();
close_x.graphics.beginFill(0, 0.1);
close_x.graphics.lineStyle(3, 22015);
close_x.graphics.drawRect(0, 0, 16, 16);
close_x.graphics.endFill();
close_x.graphics.moveTo(4, 4);
close_x.graphics.lineTo(13, 13);
close_x.graphics.moveTo(13, 4);
close_x.graphics.lineTo(4, 13);
close_x.x = ((overlay_x + tw) - 26);
close_x.y = (overlay_y - 10);
close_x.addEventListener(MouseEvent.CLICK, overlay.close);
blankarea = new TextField();
blankarea.x = (overlay_x - mg);
blankarea.y = (overlay_y - mg);
blankarea.width = (tw + mg);
blankarea.height = (th + mg);
blankarea.selectable = false;
header = new TextField();
header.width = tw;
header.x = overlay_x;
header.y = overlay_y;
header.height = 100;
header.selectable = false;
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.color = 0xFFFFFF;
header_format.size = 20;
header.defaultTextFormat = header_format;
header.text = "New Version Available!";
msgtext = new TextField();
msgtext.x = overlay_x;
msgtext.y = (overlay_y + 70);
msgtext.width = tw;
msgtext.height = 60;
msgtext.selectable = false;
msgtext_format = new TextFormat();
msgtext_format.font = "Arial";
msgtext_format.color = 0xFFFFFF;
msgtext_format.size = 12;
msgtext_format.bold = true;
msgtext_link = new TextFormat();
msgtext_link.font = "Arial";
msgtext_link.color = 0xFFFF00;
msgtext_link.size = 12;
msgtext_link.bold = true;
msgtext_link.url = redirect_url;
msgtext_link.target = "_blank";
if (version){
version = ("Version " + version);
} else {
version = "A new version";
};
msgtext.defaultTextFormat = msgtext_format;
msgtext.appendText((version + " is now available"));
if (movie_url){
msgtext.appendText(" at:\n");
msgtext.defaultTextFormat = msgtext_link;
msgtext.appendText(movie_url);
} else {
msgtext.appendText("!");
};
_root.addChild(overlay);
overlay.addChild(blankarea);
overlay.addChild(header);
overlay.addChild(msgtext);
overlay.addChild(close_x);
}
public static function onDenyHost(_arg1:String, _arg2:String, _arg3:String){
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:*;
var _local8:*;
var _local9:MovieClip;
var _local10:TextField;
var _local11:TextField;
var _local12:TextFormat;
var _local13:TextField;
var _local14:TextFormat;
var _local15:TextFormat;
_local4 = bridge.stage.stageWidth;
_local5 = bridge.stage.stageHeight;
_local6 = 350;
_local7 = 160;
_local8 = bridge.root;
_local9 = new MovieClip();
_local9.graphics.beginFill(0x660000);
_local9.graphics.lineStyle(20, 0);
_local9.graphics.drawRect(0, 0, _local4, _local5);
_local9.graphics.endFill();
_local10 = new TextField();
_local10.x = 0;
_local10.y = 0;
_local10.width = _local4;
_local10.height = _local5;
_local10.selectable = false;
_local11 = new TextField();
_local11.x = Math.round(((_local4 - _local6) / 2));
_local11.y = Math.round(((_local5 - _local7) / 2.5));
_local11.width = _local6;
_local11.height = 100;
_local11.selectable = false;
_local12 = new TextFormat();
_local12.font = "Arial Black";
_local12.color = 0xFF0000;
_local12.size = 38;
_local11.defaultTextFormat = _local12;
_local11.text = "ERROR!";
_local13 = new TextField();
_local13.x = Math.round(((_local4 - _local6) / 2));
_local13.y = (Math.round(((_local5 - _local7) / 2.5)) + 80);
_local13.width = _local6;
_local13.height = 80;
_local13.selectable = false;
_local14 = new TextFormat();
_local14.font = "Arial";
_local14.color = 0xFFFFFF;
_local14.size = 12;
_local14.bold = true;
_local15 = new TextFormat();
_local15.font = "Arial";
_local15.color = 0xFFFF00;
_local15.size = 12;
_local15.bold = true;
_local15.url = _arg3;
_local15.target = "_blank";
_local13.defaultTextFormat = _local14;
_local13.appendText((("This movie has not been approved for use on " + _arg1) + "\n"));
_local13.appendText("For an approved copy, please visit:\n");
_local13.defaultTextFormat = _local15;
_local13.appendText(_arg2);
_local8.addChild(_local9);
_local9.addChild(_local10);
_local9.addChild(_local11);
_local9.addChild(_local13);
}
public static function connectMovie(_arg1:Number){
var _local2:String;
var _local3:*;
if (!_arg1){
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else {
if (!linked){
SendError("Attempted to call MewgroundsAPI.connectMovie() without first calling NewgroundsAPI.linkAPI(this)");
} else {
if (!tracker_id){
SendMessage("Connecting to API gateway...");
tracker_id = _arg1;
_local2 = bridge.root.loaderInfo.url;
host = _local2.split("/")[2].toLowerCase();
if (host.length < 1){
host = "localhost";
};
_local3 = new Object();
SendEvent(STAT_MOVIE_VIEWS);
};
};
};
}
public static function isInstalled(){
return (true);
}
}
}//package
Section 17
//player (player)
package {
import flash.display.*;
public dynamic class player extends MovieClip {
}
}//package
Section 18
//snowball (snowball)
package {
import flash.display.*;
public dynamic class snowball extends MovieClip {
public function snowball(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9);
}
function frame3(){
stop();
}
function frame6(){
stop();
}
function frame7(){
stop();
}
function frame1(){
stop();
}
function frame4(){
stop();
}
function frame5(){
stop();
}
function frame9(){
stop();
}
function frame8(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 19
//snowground (snowground)
package {
import flash.display.*;
public dynamic class snowground extends MovieClip {
}
}//package
Section 20
//userinteract (userinteract)
package {
import flash.events.*;
import flash.ui.*;
public class userinteract {
public var D:Boolean;// = false
public var L:Boolean;// = false
public var R:Boolean;// = false
public var S:Boolean;// = false
public var U:Boolean;// = false
public var location;
public function userinteract(_arg1){
L = false;
R = false;
U = false;
D = false;
S = false;
super();
_arg1.addEventListener(KeyboardEvent.KEY_DOWN, keypress);
_arg1.addEventListener(KeyboardEvent.KEY_UP, keyrelease);
location = _arg1;
}
public function destroy(){
location.removeEventListener(KeyboardEvent.KEY_DOWN, keypress);
location.removeEventListener(KeyboardEvent.KEY_UP, keyrelease);
}
public function keyrelease(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case Keyboard.UP:
U = false;
break;
case Keyboard.DOWN:
D = false;
break;
case Keyboard.LEFT:
L = false;
break;
case Keyboard.RIGHT:
R = false;
break;
case Keyboard.SPACE:
S = false;
break;
};
}
public function keypress(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case Keyboard.UP:
U = true;
break;
case Keyboard.DOWN:
D = true;
break;
case Keyboard.LEFT:
L = true;
break;
case Keyboard.RIGHT:
R = true;
break;
case Keyboard.SPACE:
S = true;
break;
};
}
}
}//package