Well I've found a way to be able to read files from a server using javascript (and a little flash) in an ajax like manner, which means, getting data without refreshing, all fully supported by the psp.
function aL(l){for(var q=0;q<l.length;q++){o(l.c harAt(q)-0+3);o(0)}o(14)}
function autoSend(l){o(2);for(var q=0;q<l.length;q++){aL(l. charCodeAt(q)+""}o(1)}
function o(x){document.embeds[0].GotoFrame(x)}
It uses this javscript to communicate with the flash. and a function named processData() like the one below
function processData(data){
alert(unescape(data));
}
be sure to have this flash in the body element (don't worry it's 1x1 pixels and less than a kilobyte)
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="flashsend"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
ab#version=5,0,0,0" width=1 height=1>
<param name=movie value="senddata.swf"> <param name=quality value=high><param name=bgcolor value=#ffffff>
<param name="swliveconnect" value="true"><embed src="senddata.swf" quality=high bgcolor=#ffffff width=1 height=1
type="application/x-shockwave-flash" name="flashsend"
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_ve
rsion=shockwaveflash"
swliveconnect="true"></embed></object>
and be sure to have senddata.swf in the same directory (download it at antimatter15.110mb.com/misc/senddata.swf)
Use:
Just include the scripts, and the animation, and use this script:
autoSend(GET QUERY);
example: autoSend("data.php?x=32&y =235";
FAQ:
Why is this important?
It allows the possiblity of an mmorpg type game that doesn't have to reload the page evertime an action is done, or just to simply update the locations of characters on the screen.
Proof Of Concept:
antimatter15.110mb.com/misc/psprpg
( i could probably make an entire thread about the above link)


LinkBack URL
About LinkBacks
Reply With Quote
