Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-09-2002, 09:56 PM   #1
greenplasticcup
Registered User
 
Join Date: Apr 2002
Location: arkansas
Posts: 5
Default using the checkbox component w. MX

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.
greenplasticcup is offline   Reply With Quote
Old 04-10-2002, 03:01 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is offline   Reply With Quote
Old 04-10-2002, 04:15 PM   #3
greenplasticcup
Registered User
 
Join Date: Apr 2002
Location: arkansas
Posts: 5
Default

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?
greenplasticcup is offline   Reply With Quote
Old 04-11-2002, 12:22 AM   #4
Dravana
Registered User
 
Join Date: Apr 2001
Location: Australia
Posts: 8
Send a message via ICQ to Dravana
Default

http://www.macromedia.com/support/fl...reating_forms/

has a tutorial how to make a form in MX with MX components
Dravana is offline   Reply With Quote
Old 04-11-2002, 09:52 AM   #5
thellama
Registered User
 
Join Date: Aug 2001
Location: UK
Posts: 28
Default

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
thellama is offline   Reply With Quote
Old 04-11-2002, 03:16 PM   #6
Dravana
Registered User
 
Join Date: Apr 2001
Location: Australia
Posts: 8
Send a message via ICQ to Dravana
Default

just goto the site and read through the steps

it will become clear
Dravana is offline   Reply With Quote
Old 04-11-2002, 04:11 PM   #7
greenplasticcup
Registered User
 
Join Date: Apr 2002
Location: arkansas
Posts: 5
Default

it looks like that tutorial is just for cold fusion and asp server-side scripts isn't it?
greenplasticcup is offline   Reply With Quote
Old 04-12-2002, 08:54 AM   #8
Dravana
Registered User
 
Join Date: Apr 2001
Location: Australia
Posts: 8
Send a message via ICQ to Dravana
Default

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
Dravana is offline   Reply With Quote
Old 04-12-2002, 09:39 AM   #9
thellama
Registered User
 
Join Date: Aug 2001
Location: UK
Posts: 28
Default

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
thellama is offline   Reply With Quote
Old 04-12-2002, 02:56 PM   #10
skandibal
Registered User
 
Join Date: Apr 2002
Posts: 1
Default php and MX

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....
skandibal is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 02:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.