| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Apr 2002
Location: arkansas
Posts: 5
|
I'm struggling with trying to send the value of a checkbox component to a php script. It picks up the text from a couple input text areas just fine, but nothing from my checkbox.
This is what I have for my submit button: on (release) { loadVariablesNum("emailform.php", "0", "POST"); gotoAndStop(2); } I've tried lots of additions to this and other frames and the component itself, but nothing seems to work. Can anybody help me find the way to send the value of the checkbox along with it? I'd be happy to build my own checkbox if that's what I need to, but I wouldn't know what to do with it when I get it built. thanks a ton. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
LoadVariables will only send the variables on the timeline it's executed on. I remember from my one experiment with Flash 5 check boxes that they used local variables rather than adapting variables on the _root level. You'll have to ensure the variables are all being established on the same timeline (whether it's _root or another child) and run your load action from there.
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2002
Location: arkansas
Posts: 5
|
I want to do that, I just dont know how. I've tried a few things but I feel like I'm shooting in the dark.
So you know what it looks like, I have an MC with a couple text input fields, the checkbox (maybe a few more checkboxes if I get it working) and a submit button. I've tried various things along this line (on the submit button): on (release) { myVariable.getValue(); loadVariablesNum("emailform.php", "0", "POST"); gotoAndStop(2); } the name myVariable is the instance of the checkbox component. Nothing to any avail. What am I missing? |
|
|
|
|
|
#4 |
|
Registered User
|
http://www.macromedia.com/support/fl...reating_forms/
has a tutorial how to make a form in MX with MX components |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Aug 2001
Location: UK
Posts: 28
|
Hello,
I'm trying to do the same thing, with no avail!!!! how do i capture the onstate of a check box and sent that as a variable to my perl script. The macromedia "tuturorial" left me even more confused!!! Has it got something to do with the change handler (whatever that is)???? If so what? I'm sure things were a lot simplier when I was a lad!!!! (well flash 5 anyway) If anybody can help I will appreciate it!!! Thanks in advance Steve |
|
|
|
|
|
#6 |
|
Registered User
|
just goto the site and read through the steps
it will become clear |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Apr 2002
Location: arkansas
Posts: 5
|
it looks like that tutorial is just for cold fusion and asp server-side scripts isn't it?
|
|
|
|
|
|
#8 |
|
Registered User
|
no it has a bit on that but you can take bits of the coding and use it to your own uses
that is what i have done |
|
|
|
|
|
#9 |
|
Registered User
Join Date: Aug 2001
Location: UK
Posts: 28
|
erm...not exactly clear though is it?
can someone explain what a change handlet is and how I can use it to pass variables? Pllllleeeeeeaaaaassssseeeeee!!! Thanks in advance steve |
|
|
|
|
|
#10 |
|
Registered User
Join Date: Apr 2002
Posts: 1
|
I made a flash interface that receives records from mySQL and PHP.
I just wrote a function getRecords() in the _root which collects some variabels in flash and post them to PHP. I then uses load variables to recieve some values from PHP. Make sure PHP returns a variable like this: <? // set variable value list="the records retrieved from a mySQL db or any other value I want to retrieve"; //echo the value print "&list=". urlencode($list) . "&"; ?> In my _root I have a dynamic textfield named "list". After I call the function getRecords(); the "list "textfield now gets update from PHP. Hope this helps. It shouldn't be to hard to get the value from a select box.... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| checkbox problem in flash MX | tonyGasparich | Components | 1 | 12-13-2004 04:21 PM |
| Checkbox component inside movieclip...how to click the checkbox? | mrand01 | ActionScript 2.0 | 3 | 04-08-2004 08:52 PM |
| Help Required - Flash MX Checkbox & Dynamic Text. | Kashmere | ActionScript 1.0 (and below) | 0 | 04-22-2003 06:43 AM |
| MX checkbox component...HELP! | InspectorFegter | ActionScript 1.0 (and below) | 0 | 05-12-2002 07:08 AM |
| Flash MX seminar | Tink | ActionScript 1.0 (and below) | 5 | 03-17-2002 05:41 AM |