LOGIN Don't have an account yet?   Register

Forgot password?
 
XML Flash Voting Poll

XML Flash Voting Poll screenshot

Demo:     Preview:   Downloads: 10173

Last update (6):Fri, Feb 5th 2010, 00:00

 

 
Search comments:
has downloaded icon

 
[deleted]olikvalera

Olik Valera

on 3/4/10

 
Hello
I have a support ticket.
I installed and configure your flash poll. What amazing product you have created!

Now, it's works perfectly on almost all major browser: safari, opera, firefox, chrome. It's works even on Explorer 6 and 7 but for a odd reason i cant' figure out why it doesn't works at all in Explorer 8. The page stop loading and give me a javascript alert: 'J.Parent node' null.

What i shall do?
Thanx by the way my website is eleccionesparaguay2013.com

Olik Valera
 
andrei.neamtu

has downloaded iconAndrei Neamtu

on 4/4/10

olikvalera,

Please check the html code and add this

"if(swfmacmousewheel)"

in front of

"swfmacmousewheel.registerObject(attributes.id);".

That should solve the problem.

Happy Easter!!!
 
[deleted]olikvalera

has downloaded iconOlik Valera

on 4/4/10

Hello again.
The code you suggest was already there. I've changed the swfobject.js version 2.1 by a 1.5 version and now it's works well on explorer 8 but it never finish to load on version 7.

The flash poll is on my main site again. You can check the source code if you want in order to detect what's wrong with microsoft internet explorer.

www.eleccionesparaguay2013.com

Thanx!
has downloaded icon

 
AWP

AWP

on 6/4/10

 
Hi,

I made some changes to source code "sample.as", and now it works very well.
See below for the modified source :

                 
package
{
	/*
	 * FLASH IMPORTS
	 */
	import com.vuzum.poll.Poll;	

	import flash.display.DisplayObject;	
	import flash.display.Stage;
	import flash.display.StageScaleMode;
	import flash.display.StageAlign;
	import flash.display.MovieClip;
	import flash.events.Event;
		
	/*
	 * OTHER IMPORTS
	 */
	import caurina.transitions.*;
	import caurina.transitions.properties.*;	
	
	/*
	 * MY IMPORTS 
	 */
	import com.vuzum.utils.*;

	/**
	 * THE MAIN CLASS
	 */
	public class Sample extends MovieClip 
	{
		/**
		 * COMPONENT INSIDE
		 */
		public var mcPoll : Poll;

		/**
		 * COMPONENT'S VARS
		 */
		public var componentWidth : Number;
		public var componentHeight : Number;
		//
		public var pollId : Number = 0;
		//
		private var pathToFiles : String = "swf/votePoll/poll/";
		//
		private var xmlPath : String = "xml/settings.xml";
		private var xmlContentPath : String = "xml/content.xml";
		//
		public var checkIpScriptPath : String = "php/checkIP.php";
		public var voteScriptPath : String = "php/vote.php";		

		/**
		 * CONSTRUCTOR
		 */
		public function Sample() 
		{
			// Stage settings
			/*stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			stage.showDefaultContextMenu = false;
			*/
			// init and start the component
			addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		/**
		 * INITIALIZE THE APPLICATION
		 */
		private function init(e = null) : void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// READ FLASHVARS
			// component dimensions
			componentWidth = Prototypes.readNumberVar(600);
			componentHeight = Prototypes.readNumberVar(408);

			// read the poll id
			pollId = Prototypes.readNumberVar(stage.loaderInfo.parameters.id, pollId);			
			
			// path to files
			pathToFiles = Prototypes.readPathTo(stage.loaderInfo.parameters.pathToFiles, pathToFiles);
			
			// settings xml path
			xmlPath = Prototypes.readStringVar(stage.loaderInfo.parameters.xmlPath, xmlPath);
			
			// content xml path
			xmlContentPath = Prototypes.readStringVar(stage.loaderInfo.parameters.xmlContentPath, xmlContentPath);
						
			xmlPath = Prototypes.readStringVar(stage.loaderInfo.parameters.xmlPath, xmlPath);
						
			// read the path to the php scripts
			checkIpScriptPath = Prototypes.readStringVar(stage.loaderInfo.parameters.checkIpScriptPath, checkIpScriptPath);
			voteScriptPath = Prototypes.readStringVar(stage.loaderInfo.parameters.voteScriptPath, voteScriptPath);
			
						
			// SAMPLE INIT OF THE COMPONENT
			mcPoll.init(componentWidth, componentHeight, pollId, pathToFiles, xmlPath, xmlContentPath, checkIpScriptPath, voteScriptPath);
		}
		
		
	} // FROM CLASS
} // FROM PACKAGE

                



AWP

has downloaded icon

 
diegobec

diegobec

on 16/4/10

 
hi!
i have a little problem, I need to allow multiple votes from the same computer, how i do that?, how can I edit the PHP code to make available this option?
thanks!
 
bobocel

has downloaded iconhas support ticket iconAndrei Potorac

on 19/4/10

Please check the FAQ tab. ;)
has downloaded icon

 
creartdc

creartdc

on 11/5/10

 
Hello, I neeed help, It´s posible don´t show the vote numbers, only the %? I need it because I don´t want to show the votes (are so little and % it´s look like better. Thanks :-)
 
bobocel

has downloaded iconhas support ticket iconAndrei Potorac

on 11/5/10

Hi. You need to edit the FLA file and the source code for that. Do you have Flash?
has downloaded icon

 
creartdc

creartdc

on 12/5/10

 
Hi I have flash CS4, thank
 
bobocel

has downloaded iconhas support ticket iconAndrei Potorac

on 12/5/10

Ok. Please make sure you get a support ticket in order to receive support from our Development Team, and get in touch at [email protected] with your issue.
has downloaded icon

 
soopaman11

Bob Hunter

on 21/5/10

 
Hello, I have installed the poll and have it ready to go. Great work guys !!!! but I have a fundamental question:

How do you start it and reset the votes ?

Thank you in advance for your help !
 
bobocel

has downloaded iconhas support ticket iconAndrei Potorac

on 21/5/10

Hi. You are welcome! :)

To reset the votes, you need to edit the XML file. For setting the voting period complete, you also need to edit the XML file.
                
<voting_session openVoting = "true" 
openVotingMessage = "Please select one option below." 
closedVotingMessage = "The voting session is closed now." 
questionResultMessage = "Thank you for your vote!" />

                
 
soopaman11

has downloaded iconBob Hunter

on 21/5/10

Thank you Bobocel, but that's where I get lost... I reset the votes editing the xml file, but can't get the poll to start counting votes again. I place a cuople of votes but the count number still "0" what do I need to do for the poll to come "live" ? Thank you !
 
bobocel

has downloaded iconhas support ticket iconAndrei Potorac

on 21/5/10

Note you also need to clear the IP list, so you can vote again from the same IP.
has downloaded icon

 
rdagnolo

rdagnolo

on 8/6/10

 
hi there, this xml voting poll is fantastic!
i'm trying to use the poll with a windows hosting, but the votes aren't registered and i just get the server error message. what i have to do? thanks!
 
Hi. If you went through the FAQ section on this page, and those from the footer and still haven't figured it out, please contact us at support.

Please note that in order to receive support from our Development Team you need a Support Ticket:
http://www.flabell.com/buySupportTicke...
has downloaded icon

 
venteens

venteens

on 2/7/10

 
Hello, Nice work!

I got a questiong regarding the voting poll configuration....


How to set up the poll to reset all IP addresses every 10 hours... ?

It means that every IP address could have the chance to vote once again after 10 hours later.

Thanks in advance

Best regards^^

Josh.
 
Hello,
You will need to setup a cron job on your server that will call a php script to delete the IP's of the users that voted 10 hours ago.
Obs. The current script doesn't save the time when the user voted, only his IP.
 
venteens

has downloaded iconventeens

on 6/7/10

Hi, Thanks for your reply^^

...You said "...You will need to setup a cron job on your server that will call a php script to delete the IP's of the users that voted 10 hours ago..."

Do you mean that "vote.php" needs to be set up as Command to run in my cron job?...or Do I need another type of php script for to do that???

Thanks in advance.

Josh.
 
Hi,
You will need to edit the vote.php file to save the time when the vote has been submited, and create a new script that is called by with Cron Job to delete the data after 10 hours.
has downloaded icon

 
ghost77

ghost77

on 4/7/10

 
Hi, thanks for the great poll, working very good.
I have one question to ask:
I'm trying to load the preview.swf in my site.swf, using
var myLoader:Loader = new Loader(); addChild(myLoader); var url:URLRequest = new URLRequest("preview.swf"); myLoader.load(url);
But i have this error :
TypeError: Error #1009

Can you help me please ?
 
Hi,
Can you send me the full error report?
 
ghost77

has downloaded iconghost77

on 5/7/10

Sure , here it is :

TypeError: Error #1009: Cannot access a property or method of a null object reference.

Thanks for the help
 
The path to the preview.swf file isn't correct.
has downloaded icon

 
enakoeln

enakoeln

on 6/7/10

 
Hey there! Great thing!
One question: how can I make the poll not show the results by clicking "vote" but just restart the voting or go to another flashframe?

Thank you very much!
 
Hi,
To add the functions you require you will need to edit the AS3 code. From the files you downloaded open project/source/com/vuzum/poll/Vote.as.
On line 294 you have mcPoll.showResults();. Replace this line of code with a new action, after vote is registered.
9...76543...1

Post a comment


Please login to join the discussions. Don't have an account? Register (it takes 30 seconds)


Similar flash components

XML Survey with Multiple Questions

XML Survey with...

Simple and neat Flash XML Survey with multiple questions and variable... read more


Simple XML Quiz

Simple XML Quiz

This quiz allows for an unlimited number of questions and answers to be... read more


General Videos

  • How to buy?
    watch movie
  • Embed a Flash Component in your Flash Project
    watch movie
  • How to embed a Flash Component in the same HTML page twice?
    watch movie
  • How to embed two different Flash Components in the same HTML page?
    watch movie

Showcase

Send us a link to the page you used this product on, and we'll post the link to your site on our blog if you customized it nicely.

Need support?

Support ticketGet a support ticket
read more

Share this

If you enjoyed this product, please consider sharing it via a social network, or leaving a comment. Thanks!