polyGeek.com
polyGeek.com

AMF-PHP based poll in Flex

May 26th, 2008 . by polygeek

I have a new poll in my sidebar to the right that uses AMFPHP to read/write data to a MySQL database. The poll itself is based on an XML file. The Flex app reads the XML file and looks for the database/table that the XML file indicates. The nice thing is that if either the database or table don’t exist then the Flex app creates them.

So to make another poll all I have to do is create a new XML file and point at it. No messing around with MySQL admin and creating tables and such. Not that it’s hard but changing a few lines of XML is way easier. And in true geek manner I spent hours making the Flex app create everything from scratch rather than spend a few minutes here and there doing it manually.

The poll also stores your vote in a SharedObject so that you can only vote once. In the chart your vote choice is exploded out a bit. And as you roll over the labels in the poll results it dynamically explodes out that wedge of the chart.

If anyone has any suggestions for improvement let me know. I intend to tweak it a bit and release the code for others to use. Ultimately I think even people who have zero Flex/Actionscript experience should be able to implement this on their blog.

Oh, and don’t forget to vote.

Share and Enjoy:
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
  • Digg
  • Facebook
  • Slashdot

similar posts

8 Responses to “AMF-PHP based poll in Flex”


comment number 1 by: bjorn

neat, but I don’t see a poll …

comment number 2 by: bjorn

ah, there it is .. I was distracted by the tile-app at the top ;-)

comment number 3 by: Henrik

Can’t wait for the code! Simple and just works.

comment number 4 by: edward chowdhury

Been searching ages for something like that for my blog. Any word on when you’ll be releasing the code for it?


[...] AMF-PHP based poll in Flex [...]


[...] AMF-PHP based poll in Flex [...]

comment number 7 by: avish

hi

where can i find the code for this amazing poll widget

thanks

comment number 8 by: polyGeek

@avish, you know what? I think I'm going to do a little cleanup on that poll and submit it to FlexDen.net for sale. I plan on putting up a handful of components and I'll blog about it when I do.

I won't be able to do anything to help you with the Oracle/Java thing. Don't know anything about that. Sorry. But I'll supply the PHP files needed to make the poll work.

   Welcome back (Change)

Leave a Reply

comment feed RSS   subscribe to this comment thread

Recent Posts

   




© Copyright 2008 polyGeek.com / Dan Florio, All Rights Reserved Except Where Explicitly Stated
Web Developement Blogs - Blog Catalog Blog Directory
Ajax CommentLuv Enabled 816cf46662e57ab1b89821d8e1e32a6b
M2 Websites
Local Directory for Los Angeles, CA