Hey There All!
Okay - been working on a project FOREVER & Im almost to the point where it's going to work but I need some serious help....
This is what I have so far.... (the notes are from another forum - not trying to cross post, I was just in the wrong place before)
Code:
// then where ever you are setting your variables do:
sender.id=#url.id#;
// send the id value to your cfm page using sendAndLoad, and returned xml will be loaded into the xml object x.
sender.sendAndLoad("info1.cfm",x,"GET");
};
and
Code:
var x:XML=new XML();
x.ignoreWhite=true;x.onLoad=function(done){
if(done){
trace('xml file is now loaded into '+this);
// now that it is loaded, process it the way you want.
};var sender:LoadVars=new LoadVars();
The problem ... you cant actually put #url.id# in actionscript - I need to identify the ID and then (so I've been told) it will be passed w/ the link to the cfm file as a url.id.
The question:
How do I make that sender.id dynamic based upon the url.id fed to the swf?
AKA
the url
somecoolsite.com?id=something_dynamic
the swf
gallery.swf?id=something_dynamic
the sender.id NEEDS TO BE
sender.id=something_dynamic;
so that the the files in the cfm page will be dynamically generated based upon that url.id & therefore the correct images will show.
*** yeah, I know I've put xml information in a cfm page - the .cfm is not messing up the xml or the flash... if I hard code the images into the .cfm page flash is fine w/ it... it's just passing the variable that's got me stumped.