File: superflash.swf-(2 KB, 550x400, Other)
[_] The one flash to rule them all Anonymous 01/12/16(Tue)04:36:37 No.2997212
>> [_] Anonymous 01/12/16(Tue)04:38:41 No.2997213
You could do lower than 2KB. What's hiding in this flash?
>> [_] Anonymous 01/12/16(Tue)04:41:24 No.2997214
it doesn't work properly outside of the local flash player - any ideas on how to fix it?
>> [_] Anonymous 01/12/16(Tue)04:46:07 No.2997217
Sauce code:
var info:LoaderInfo = loaderInfo;
var selfURL = info.loaderURL;
trace(selfURL);
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("https://a.4cdn.org/f/catalog.json"));
loader.addEventListener(Event.COMPLETE, ParseJSON);
function ParseJSON(e:Event):void {
//trace(e.target.data);
var decoded : Object = JSON.parse(e.target.data);
for each(var thread in decoded[0].threads) {
var threadURL = "https://i.4cdn.org/f/" + encodeURIComponent(thread.filename) + ".swf";
var threadURL2 = "http://i.4cdn.org/f/" + encodeURIComponent(thread.filename) + ".swf";
if (threadURL != selfURL && threadURL2 != selfURL) {
trace(threadURL);
var floader:Loader = new Loader() ;
floader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler );
floader.load(new URLRequest(threadURL));
}
}
}
function completeHandler( eventOBJ : Event ) : void
{
eventOBJ.target.content.alpha = 0.5;
addChild( eventOBJ.target.content );
};
>> [_] Anonymous 01/12/16(Tue)04:49:39 No.2997218
>>2997214
oh.. OK
>> [_] Anonymous 01/12/16(Tue)05:07:26 No.2997219
>>2997212
It's not loading
>> [_] Anonymous 01/12/16(Tue)05:08:34 No.2997221
Holy shit. A SWF that exists only to be considered a valid SWF. That shit is zen.
>> [_] Anonymous 01/12/16(Tue)05:17:41 No.2997225
Security.allowDomain("*");
Security.allowInsecureDomain("*");
import flash.system.SecurityDomain;
import flash.system.ApplicationDomain;
import flash.system.LoaderContext;
var loaderContext:LoaderContext = new LoaderContext();
loaderContext.applicationDomain = ApplicationDomain.currentDomain;
loaderContext.securityDomain = SecurityDomain.currentDomain; // Sets the security
var info:LoaderInfo = loaderInfo;
var selfURL = info.loaderURL;
trace(selfURL);
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("https://a.4cdn.org/f/catalog.json"));
loader.addEventListener(Event.COMPLETE, ParseJSON);
function ParseJSON(e:Event):void {
//trace(e.target.data);
var decoded : Object = JSON.parse(e.target.data);
for each(var thread in decoded[0].threads) {
var threadURL = "https://i.4cdn.org/f/" + encodeURIComponent(thread.filename) + ".swf";
var threadURL2 = "http://i.4cdn.org/f/" + encodeURIComponent(thread.filename) + ".swf";
if (threadURL != selfURL && threadURL2 != selfURL) {
trace(threadURL);
var floader:Loader = new Loader() ;
floader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler );
if(Security.sandboxType == Security.REMOTE){
floader.load(new URLRequest(threadURL),loaderContext);
}else{
floader.load(new URLRequest(threadURL));
}
}
}
}
function completeHandler( eventOBJ : Event ) : void
{
eventOBJ.target.content.alpha = 0.5;
addChild( eventOBJ.target.content );
};
Tried this shit and it still doesn't work. Does Flash have no way to load other SWFs without
special security policy settings?