hello
I am nearing the end of a rather complex swf. attached fla(zipped)
The though process is the user selects values from 3 comboboxes each populated by an XML Connector
Either on the change event or on clicking a button a URL is sent to a PHP page with the three selected values. these three selected values determine a SQL query which intern populates a datagrid. on selecting a row in the datagrid labels are populated. its a modification on the adobe business directory. http://www.adobe.com/devnet/flash/ar…xmlphp_06.html
ALL is working hunky dory except the first step of selecting and allocating the 3 variables to the datagrids xml connector.
so far ive got the code: in a mc called get position.
price_xml.trigger();
publication_xml.trigger();
flight_xml.trigger();
pricecomboFunction = new Object();
pricecomboFunction.change = function (evt){
//evt.target.selectedItem.label;
drop_selection.htmlText = (“You selected <b>”+evt.target.selectedItem.label+"</b>");
trace(evt.target.selectedItem.label);
set(price, evt.target.selectedItem.label);
_root.business_mc.position_xml.trigger();
_root.details_mc.picture_imp_dir.load("");
_root.details_mc.template_imp_dir.text = “”;
_root.details_mc.Positionintemplate_imp_dir.text = “”;
_root.details_mc.Size_imp_dir.text = “”;
_root.details_mc.Images_imp_dir.text = “”;
_root.details_mc.ImageSize_imp_dir.text = “”;
_root.details_mc.NoOfDesc_imp_dir.text = “”;
_root.details_mc.NoOfSlogans_imp_dir.text = “”;
_root.details_mc.ContactDetails_imp_dir.text = “”;
_root.details_mc.Address_imp_dir.text = “”;
_root.details_mc.AuctionDate_imp_dir.text = “”;
_root.details_mc.Importance_imp_dir.text = “”;
_root.details_mc.Advert_Price_imp_dir.text = “”;
_root.details_mc.Pty_Price_imp_dir.text = “”;
}
price_cb.addEventListener(“change”, pricecomboFunction);
publicationcomboFunction = new Object();
publicationcomboFunction.change = function (publication){
drop_selection.htmlText = (“You selected <b>”+publication.target.selectedItem.label+"</b>");
trace(publication.target.selectedItem.label);
set(publication, publication.target.selectedItem.label);
_root.details_mc.picture_imp_dir.load("");
_root.details_mc.template_imp_dir.text = “”;
_root.details_mc.Positionintemplate_imp_dir.text = “”;
_root.details_mc.Size_imp_dir.text = “”;
_root.details_mc.Images_imp_dir.text = “”;
_root.details_mc.ImageSize_imp_dir.text = “”;
_root.details_mc.NoOfDesc_imp_dir.text = “”;
_root.details_mc.NoOfSlogans_imp_dir.text = “”;
_root.details_mc.ContactDetails_imp_dir.text = “”;
_root.details_mc.Address_imp_dir.text = “”;
_root.details_mc.AuctionDate_imp_dir.text = “”;
_root.details_mc.Importance_imp_dir.text = “”;
_root.details_mc.Advert_Price_imp_dir.text = “”;
_root.details_mc.Pty_Price_imp_dir.text = “”;
}
publication_cb.addEventListener(“change”, publicationcomboFunction);
flightcomboFunction = new Object();
flightcomboFunction.change = function (flight){
drop_selection.htmlText = (“You selected <b>”+flight.target.selectedItem.label+"</b>");
trace(flight.target.selectedItem.label);
set(flight, flight.target.selectedItem.label);
_root.details_mc.picture_imp_dir.load("");
_root.details_mc.template_imp_dir.text = “”;
_root.details_mc.Positionintemplate_imp_dir.text = “”;
_root.details_mc.Size_imp_dir.text = “”;
_root.details_mc.Images_imp_dir.text = “”;
_root.details_mc.ImageSize_imp_dir.text = “”;
_root.details_mc.NoOfDesc_imp_dir.text = “”;
_root.details_mc.NoOfSlogans_imp_dir.text = “”;
_root.details_mc.ContactDetails_imp_dir.text = “”;
_root.details_mc.Address_imp_dir.text = “”;
_root.details_mc.AuctionDate_imp_dir.text = “”;
_root.details_mc.Importance_imp_dir.text = “”;
_root.details_mc.Advert_Price_imp_dir.text = “”;
_root.details_mc.Pty_Price_imp_dir.text = “”;
}
flight_cb.addEventListener(“change”, flightcomboFunction);
then i need somthing to gather all selected items and return it to:
_root.business_mc.position_xml.direction = “receive”;
_root.business_mc.position_xml.URL = “position.php?description_run=”+flight+"&Publicati on_pub="+publication+"&Advert_Price_imp_dir="+pric e;
// this works fine… _root.business_mc.position_xml.URL = “position.php?description_run=week 1&Publication_pub=The Star&Advert_Price_imp_dir=R300”;
pritty please with a cherry ontop could you help me with this. ideally using the change fn or either on a button release event