For everyone's future reference (if you from the future stumble upon this thread with a similiar problem), the solution is using the flashvars function to pass the variables along.
(Once I found out about flashvars, there was a goood number of other threads on the website there to help me out...)
PHP Code:
<div id=\"top\">
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"250\" height=\"59\" id=\"Untitled-1\" align=\"left\">
<PARAM NAME=\"flashvars\" value=\"$flashheader\">
<param name=\"allowScriptAccess\" value=\"sameDomain\" />
<param name=\"movie\" value=\"graphics/left_header.swf\" />
<param name=\"quality\" value=\"high\" />
<param name=\"wmode\" value=\"transparent\" />
<param name=\"bgcolor\" value=\"#00ff66\" />
<embed flashvars=\"$flashheader\" src=\"graphics/left_header.swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#00ff66\" width=\"250\" height=\"59\" name=\"Untitled-1\" align=\"left\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />
</object>
<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"250\" height=\"59\" id=\"Untitled-1\" align=\"right\">
<param name=\"allowScriptAccess\" value=\"sameDomain\" />
<param name=\"movie\" value=\"graphics/right_header.swf\" />
<param name=\"quality\" value=\"high\" />
<param name=\"wmode\" value=\"transparent\" />
<param name=\"bgcolor\" value=\"#00ff66\" />
<embed src=\"graphics/right_header.swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#00ff66\" width=\"250\" height=\"59\" name=\"Untitled-1\" align=\"right\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />
</object>
</div>";
ActionScript Code:
on (press) {
//_global.offset = this.offset
var stringcallpage = "callpage=" + this.callpage;
trace(stringcallpage);
var inURL = "http://www.ubcatering.com/index.php";
var outURL = "http://www.ubcatering.com/index.php?"+stringcallpage+"&level=full_service"+"&";
trace(inURL);
trace(outURL);
lvTest = new LoadVars();
lvTestOut = new LoadVars();
lvTest.onLoad = function(success) {
if (success) {
trace("true from onLoad");
// lvTestOut.aVariableSetByMe = "somecgifunction";
// lvTestOut.isCallpage = this.isCallpage;
// lvTestOut.isLevel = this.isLevel;
// lvTestOut.callpage = this.callpage;
// lvTestOut.offset = this.offset;
lvTestOut.send(outURL,"_self", "get");
} else {
trace("false from onLoad");
}
};
lvTest.load(inURL);
}
I'm not an actionscript expert, but I'm starting to have a much better understanding of how this stuff works.