All,
I have a button on my page and when I click it, I’d like a sendAndLoad event to happen. The button’s instance name is button. I’m not sure how to get the sendAndLoad to be activated when the button (in this case a submit button) is pressed. I know that sendAndLoad is with the LoadVars class so I’m not sure it can even be called within a button actions. Any advice is greatly appreciated.
Here is the sendAndLoad I’m trying to use:
var send_mc:LoadVars = new LoadVars();
send_mc.name_field = this.name_field;
send_mc.memory= this.memory;
send_mc.sendAndLoad("http://localhost/xampp/site/new_memory.php", send_mc, "POST");
Thanks in advance!