This is the kind of stuff I stare at all day:
// AMF PHP script
import mx.remoting.*;
import mx.rpc.*;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;
//Change the gateway URL as needed
var gatewayUrl:String = "http://davidcool.com/amfphp/gateway.php";
var service:Service;
NetDebug.initialize();
service = new Service(gatewayUrl, null, "getInfo");
//Gets the people between age min and age max
function getThumb(subcat_ID)
{
//trace('in getThumb');
var pc:PendingCall = service.getThumb(subcat_ID);
pc.responder = new RelayResponder(this, "handlegetThumb");
}
function handlegetThumb(re:ResultEvent)
{
//trace('in handlegetThumb');
//Implement custom callback code
//trace(re.result.getItemAt(0).og_thumb_name);
//dgPersons.dataProvider = re.result;
//imgGal = re.result.getItemAt(0).og_thumb_name;
//loadMovie("/gallery/thumb/"+imgGal, "subImg");
//imgGal1 = re.result.getItemAt(1).og_thumb_name;
//loadMovie("/gallery/thumb/"+imgGal1, "subImg1");
dgPersons.dataProvider = re.result;
for (y=0; y<10; y++) {
imgGal = re.result.getItemAt(y).og_thumb_name;
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc:MovieClip) {
target_mc.onRelease = function() {
getURL("http://www.davidcool.com/gallery_view.php?CID=7&SCID=83&AID=1&IMGID=1011", "_self");
}
target_mc._x = 0;
target_mc._y = 0;
}
var logo:MovieClipLoader = new MovieClipLoader();
logo.addListener(listenerObject);
logo.loadClip("/gallery/thumb/"+imgGal,
this.createEmptyMovieClip("adobe_mc" + y, this.getNextHighestDepth()));
}
}
getThumb(4);
Why do I do this to myself? I hate Flash and actionscript... Why can't it just work????

