QuickPoll Template Tutorial
QuickPoll Component Tutorial
Skinning the QuickPoll Component
squareActionscript options
arrowRequirements


Actionscript Options
 



QuickPoll.gotoResults()

 

Description:
This method will skip the voting process and take you directly to the results

Usage:
myButton.onRelease = function(){
  QuickPoll.gotoResults()
}

QuickPoll.voteComplete()

 

Description:
This event will execute after a vote has been made. This will also execute if the property "onlyOneVote" is set to true and the user returns to the poll after voting. This is useful if you want to display a message when the results are displayed.

Usage:
QuickPoll.voteComplete = function(){
  trace("voting is complete")
}

QuickPoll.submitClicked(Boolean)

 

Parameter:
Returns true or false. If an answer is not selected, this returns false.

Description:
This event will execute when the submit button is clicked.

Usage:
QuickPoll.submitClicked = function(hasVoted){
    if(!hasVoted){
      trace("you have not voted yet!")
    }

}

 




Disclaimer and Privacy Policy