Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 15th, 2003, 02:58 PM
IonZoft IonZoft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 26 IonZoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 6 m 11 sec
Reputation Power: 0
Post Flash/PHP

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.

Reply With Quote
  #2  
Old December 16th, 2003, 04:09 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,714 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 10093 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 8 m 12 sec
Reputation Power: 580
Facebook MySpace
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.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old December 18th, 2003, 07:57 AM
StealthElephant's Avatar
StealthElephant StealthElephant is offline
Shes dancing (obviously)
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2002
Location: the far side
Posts: 526 StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level)StealthElephant User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 14 m 22 sec
Reputation Power: 8
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash/PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT