|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hey,
I'm trying to create a flash based survey and I'm having some problems. Here is what I've got... I've got a bunch of variables coming into Flash from a php script...survey questions and corresponding choices. A question could have up to 10 possible choices. I want to set up the file so that if a question only has, say 3 answers, only 3 buttons are visible on the stage. I can't seem to get that part to work. Also, once a user clicks on an option, how do I send what they clicked on BACK to php. Thanks for helping. |
|
#2
|
|||
|
|||
|
Hi, not to sure about the checking bit, you could try something like:
if(question2Answer == null || question2Answer == "") { button2._y = -500; } Thats only really for the checking part. Hide the button as you please, chaning its _y was just a suggestion. null might have a capital n, Null or NULL...cant remember off the top of my head. different things, different languages etc. As for posting the variables back to php take a look at LoadVars. Theres quite alot of material about on how to use it. |
|
#3
|
||||
|
||||
|
in actionscript (1.0) its "undefined" u should be checking against
sending back to the server var x = new LoadVars(); x.myvar1 = 11; x.myvar2 = "hello"; x.Send("addressofphp","post"); ur php as normal $incoming1 = intval($_POST['myvar1']); $incoming2 = $_POST['myvar2'];
__________________
microsofts butterfly is their way off telling u their systems have a **** load of buggs Advocating Linux Guide Lesbian Linux Great & Practical Computer Books like the links? Last edited by StealthElephant : December 18th, 2003 at 08:00 AM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Flash/PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|