Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Polls System

This is a discussion on Polls System within the FlepStudio utilities forums, part of the Tutorials category; Hello again, I have successfully installed php on my local machine, and i have my poll.php in the same ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 31-01-08, 14:10
Junior Member
 
Join Date: Jan 2008
Posts: 6
Rep Power: 0
sadiesunglow is on a distinguished road
Re: Polls System

Hello again,
I have successfully installed php on my local machine, and i have my poll.php in the same file as poll.xml and the swf file, and i still cant get it to work. When i vote it just says saving response, no errors, it seems that the php and xml files are not communicating with each other correctly. Is there any code I should change. Also how can i remove the cookie so i can vote continuously. Sorry if i appear stupid.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 31-01-08, 14:31
Member
 
Join Date: Jan 2008
Posts: 38
Rep Power: 0
Maldor is on a distinguished road
Riferimento: Polls System

yeah you gotta change two lines of the code ........sorry if you already did this.......

in the main.as file you have to change the private const PHP:String to reflect where your php file is located.....
i.e private const PHP: "http://www.flepstudio.com/poll.php"
you also have to alter the loadxml.as file to reflect where your xml resides....


its this line you have to alter...

private const url:String='http://www.flepstudio/prova/poll/poll.xml';

ill take a look at disabling the vote only once poll thign but this should at least get you going for now...


no stupid questions exist so dont worry about asking! its the only way to learn!!!!!!!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 31-01-08, 16:04
Junior Member
 
Join Date: Jan 2008
Posts: 6
Rep Power: 0
sadiesunglow is on a distinguished road
Re: Polls System

Well i am well and truly stuck now, i had already made those changes, as they are all in the same folder i changed the file in main.as to:
private const PHP:String='poll.php';

and the file in loadingXML.as to:
private const url:String='poll.xml';

And it still doesnt work. I have set the permissions on the poll.php so i can read write & execute, and still the same problem.
Are there any other possibilities.
Thanks,
Sadiesunglow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 31-01-08, 16:41
Member
 
Join Date: Jan 2008
Posts: 38
Rep Power: 0
Maldor is on a distinguished road
Riferimento: Polls System

hi sadie...those are looking for URL strings...i.e. its looking for HTTP://www.soemthing.bla.xml ......so at this point one i would try to enter the FULL path because its not just looking for the name...im not sure how you have your hosting account set up but it is a matter of writing in C://programs/bla/bla/polls.xml and not simply the name of the file....i always use a server to do this type of testing as i find it to be easier.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 31-01-08, 18:44
Junior Member
 
Join Date: Jan 2008
Posts: 6
Rep Power: 0
sadiesunglow is on a distinguished road
Re: Polls System

Hello,
I have tried that and no luck im afraid, all i get is a blank screen. I have noticed that if i use my browser to open the poll.php file ie http://localhost/poll/poll.php the browser window displays the word 'error'.
Could this be causing the problem or is this what should happen?
Thanks,
Sadiesunglow
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #16 (permalink)  
Old 01-02-08, 08:38
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: Polls System

Hi sadiesunglow

You must use absolute web url's for xml and php file.
When you change something into Main.as file you must re-publish the SWF too.
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #17 (permalink)  
Old 25-05-08, 19:56
Junior Member
 
Join Date: Feb 2008
Posts: 12
Rep Power: 0
cutmim is on a distinguished road
Re: Polls System

The poll only permit one vote per ip adress...how to do to permit 1 vote per day? its possible to do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #18 (permalink)  
Old 25-05-08, 20:07
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: Polls System

Hi cutmim,
the poll does not recognize IP address.
It works with SharedObjects class of Actionscript ( like cookies in PHP ).
You should customize the data you write in the shared object and check it when user clicks to vote.
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #19 (permalink)  
Old 27-05-08, 22:14
Junior Member
 
Join Date: Feb 2008
Posts: 12
Rep Power: 0
cutmim is on a distinguished road
Re: Polls System

Quote:
Originally Posted by Flep View Post
Hi cutmim,
the poll does not recognize IP address.
It works with SharedObjects class of Actionscript ( like cookies in PHP ).
You should customize the data you write in the shared object and check it when user clicks to vote.
Thanks...but i don't konw how to do that...i'm basic in programming.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #20 (permalink)  
Old 28-05-08, 22:19
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,486
Rep Power: 6
Flep is on a distinguished road
Re: Polls System

Have a look:

SharedObject with Actionscript 3.0
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 3 Menu System Code Help! xmartyxcorex Flash CS3 eng 0 03-11-08 02:33
Flash PHP Create Library book system for Flash PHP clonez Flash CS3 | PHP | mySQL 0 21-10-08 16:11
Need help in navigation system rashid Flash CS3 eng 1 04-06-08 14:54
Eseguire un proiettore nella system tray bar rtrimarchi Actionscript 3.0 avanzato 0 28-09-07 13:40


All times are GMT. The time now is 17:21.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406