PDA

View Full Version : my polling system has a little bit problem



Erica
November 30th, 2004, 08:41 AM
My friend and I created a polling system, everything is well except one thing.
Below are the codes for choosing answers and submit answers, this only problem occured in red:

//To Send Data to Php
testPHP= new LoadVars();
testPHP.choice=1;
//To Trace radio Button Event
teamListener= new Object();
teamListener.click = function (evt){
testPHP.choice=evt.target.selection.data;
}
team.addEventListener("click",teamListener);
// Submit Btn action
submitBtn.onRelease = function () {
testPHP.send("poll.php","POST")
gotoAndStop(2);
};
//View Result Btn action
viewResultBtn.onRelease = function () {
gotoAndStop(2);
}

The red code results when ppl click submit btn, the poll.php will be loaded in a popup window before the result showed in next frame of flash movie. But I don't want such popup window appears. How can we change the code to achieve that?

Digitalosophy
November 30th, 2004, 06:02 PM
you can use sendAndLoad();

look it up in the AS dictionary, or run a quick search in the Flash forums.

Erica
December 1st, 2004, 02:39 AM
you can use sendAndLoad();

look it up in the AS dictionary, or run a quick search in the Flash forums.Hi Digitalosophy, sendAndLoad(); is not working for that.

Digitalosophy
December 1st, 2004, 11:14 AM
hmm maybe attach your file so we can take a look.