Section 1
//MainTimeline (noobcube_loader_fla.MainTimeline)
package noobcube_loader_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var greyBg:MovieClip;
public var curF:Number;
public var loadingText:MovieClip;
public var sc:SoundChannel;
public var loader:Loader;
public var loadedBar:MovieClip;
public var allFilters:Array;
public var myLoadText_mc:MovieClip;
public var menuItem1:ContextMenuItem;
public var loadedBarMask:MovieClip;
public var dis_mc:MovieClip;
public var snd:tac;
public var customContextMenu:ContextMenu;
public var muted:Boolean;
public var vc:SoundTransform;
public var url:URLRequest;
public var mute_btn:MovieClip;
public var filter_mc:MovieClip;
public var defaultItems:ContextMenuBuiltInItems;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function loadProgress(_arg1:ProgressEvent):void{
var _local2:Number = (_arg1.bytesLoaded / _arg1.bytesTotal);
_local2 = Math.round((_local2 * 100));
myLoadText_mc.myLoadText.text = (String(uint(_local2)) + "%");
loadedBarMask.width = (_local2 * 2);
}
public function toggleMute(_arg1:MouseEvent):void{
if (muted){
vc.volume = 1;
sc.soundTransform = vc;
mute_btn.gotoAndStop(1);
muted = false;
} else {
if (!muted){
vc.volume = 0;
sc.soundTransform = vc;
mute_btn.gotoAndStop(2);
muted = true;
};
};
}
public function changeFilter(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 70){
curF++;
if (curF > 3){
curF = 0;
};
filter_mc.blendMode = allFilters[curF];
};
}
public function loadComplete(_arg1:Event):void{
loadingText.visible = false;
myLoadText_mc.visible = false;
loadedBar.visible = false;
loadedBarMask.visible = false;
greyBg.visible = false;
loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, loadComplete);
this.addChild(filter_mc);
}
function frame1(){
filter_mc.hitArea = dis_mc;
filter_mc.enabled = false;
filter_mc.blendMode = "erase";
curF = 0;
allFilters = ["erase", "invert", "difference", "hardlight"];
stage.addEventListener(KeyboardEvent.KEY_DOWN, changeFilter);
mute_btn.buttonMode = true;
muted = false;
snd = new tac();
sc = snd.play(0, 999);
vc = new SoundTransform();
mute_btn.addEventListener(MouseEvent.CLICK, toggleMute);
stop();
Security.loadPolicyFile("http://www.arkdesigns.ca/noobcube/crossdomain.xml");
Security.allowDomain("http://www.newgrounds.com", "http://www.arkdesigns.ca", "http://www.zoli.com");
menuItem1 = new ContextMenuItem("Noob Cube v1.2", false, false, true);
customContextMenu = new ContextMenu();
customContextMenu.hideBuiltInItems();
defaultItems = customContextMenu.builtInItems;
defaultItems.quality = true;
customContextMenu.customItems.push(menuItem1);
this.contextMenu = customContextMenu;
url = new URLRequest("http://www.arkdesigns.ca/noobcube/noobcube.swf");
loader = new Loader();
loader.load(url);
addChild(loader);
loadedBar.mask = loadedBarMask;
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
}
}
}//package noobcube_loader_fla
Section 2
//mute_btn_6 (noobcube_loader_fla.mute_btn_6)
package noobcube_loader_fla {
import flash.display.*;
public dynamic class mute_btn_6 extends MovieClip {
public var mute_mc:MovieClip;
public function mute_btn_6(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package noobcube_loader_fla
Section 3
//tac (tac)
package {
import flash.media.*;
public dynamic class tac extends Sound {
}
}//package